/* ==========================================================================
   pingworld.co — liquid glass, quietly neonwave.
   Apple-adjacent glass surfaces over a slow aurora field, with the brand
   magenta (#EA00D9, sampled from the app icon) doing the Y2K work.
   Mobile first. No JavaScript. All motion respects prefers-reduced-motion.
   ========================================================================== */

:root {
  color-scheme: light dark;

  /* brand */
  --magenta:    #EA00D9;
  --cyan:       #00E5FF;
  --violet:     #8B5CF6;

  /* light ground */
  --paper:      #FAF7FD;
  --paper-2:    #F1ECF8;
  --ink:        #14101C;
  --ink-soft:   #554E66;
  --ink-faint:  #6B6480;
  --accent:     #B0009F;
  --accent-ink: #FFFFFF;
  --rule:       rgba(20, 16, 28, .10);
  --rule-soft:  rgba(20, 16, 28, .06);

  /* glass */
  --glass:      rgba(255, 255, 255, .62);
  --glass-2:    rgba(255, 255, 255, .42);
  --glass-edge: rgba(20, 16, 28, .09);
  --glass-hi:   rgba(255, 255, 255, .85);
  --blur:       saturate(180%) blur(22px);

  --chrome: linear-gradient(115deg, #B0009F 0%, #6D28D9 46%, #0E7490 100%);
  --glow:   0 0 44px -8px rgba(234, 0, 217, .38);

  --shadow-sm: 0 1px 2px rgba(20, 16, 28, .05);
  --shadow:    0 2px 6px rgba(20, 16, 28, .05), 0 18px 44px -28px rgba(20, 16, 28, .40);
  --shadow-lg: 0 3px 10px rgba(20, 16, 28, .07), 0 30px 70px -34px rgba(76, 0, 90, .45);

  /* illustration surfaces */
  --art-tint-a:  rgba(234, 0, 217, .10);
  --art-tint-b:  rgba(139, 92, 246, .09);
  --art-tint-c:  rgba(0, 229, 255, .10);
  --art-glass-a: rgba(255, 255, 255, .82);
  --art-glass-b: rgba(255, 255, 255, .48);
  --art-stroke:  rgba(20, 16, 28, .12);
  --art-line:    rgba(20, 16, 28, .34);
  --art-shadow:  rgba(58, 20, 78, .22);

  --sans: "Geist", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --gutter: 20px;
  --measure: 34rem;
  --radius: 18px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-soft: cubic-bezier(.33, .72, .12, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper:      #07050D;
    --paper-2:    #0E0A18;
    --ink:        #F4F0FA;
    --ink-soft:   #B3AAC6;
    --ink-faint:  #8B82A0;
    --accent:     #FF3DEA;
    --accent-ink: #17000F;
    --rule:       rgba(255, 255, 255, .12);
    --rule-soft:  rgba(255, 255, 255, .07);

    --glass:      rgba(255, 255, 255, .055);
    --glass-2:    rgba(255, 255, 255, .03);
    --glass-edge: rgba(255, 255, 255, .13);
    --glass-hi:   rgba(255, 255, 255, .34);

    --chrome: linear-gradient(115deg, #FF3DEA 0%, #A78BFA 48%, #22D3EE 100%);
    --glow:   0 0 56px -6px rgba(234, 0, 217, .55);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .6);
    --shadow:    0 2px 6px rgba(0, 0, 0, .5), 0 18px 44px -28px rgba(0, 0, 0, .9);
    --shadow-lg: 0 3px 10px rgba(0, 0, 0, .55), 0 30px 70px -34px rgba(0, 0, 0, .95);

    --art-tint-a:  rgba(234, 0, 217, .16);
    --art-tint-b:  rgba(139, 92, 246, .14);
    --art-tint-c:  rgba(0, 229, 255, .13);
    --art-glass-a: rgba(255, 255, 255, .17);
    --art-glass-b: rgba(255, 255, 255, .05);
    --art-stroke:  rgba(255, 255, 255, .22);
    --art-line:    rgba(255, 255, 255, .42);
    --art-shadow:  rgba(0, 0, 0, .55);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* ---------- the aurora field: three slow neon blooms behind everything ---------- */

body::before {
  content: "";
  position: fixed;
  inset: -20vmax;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(38vmax 32vmax at 14% 8%,  rgba(234, 0, 217, .20), transparent 62%),
    radial-gradient(34vmax 30vmax at 88% 22%, rgba(0, 229, 255, .16), transparent 60%),
    radial-gradient(42vmax 36vmax at 52% 96%, rgba(139, 92, 246, .18), transparent 64%);
  filter: blur(28px);
  animation: drift 34s var(--ease) infinite alternate;
}

/* faint scan grid — the y2k texture, almost subliminal */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .5;
  background-image:
    repeating-linear-gradient(to bottom, rgba(128, 90, 160, .05) 0 1px, transparent 1px 4px);
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 20%, transparent 78%);
}

@media (prefers-color-scheme: dark) {
  body::before {
    background:
      radial-gradient(38vmax 32vmax at 14% 8%,  rgba(234, 0, 217, .30), transparent 62%),
      radial-gradient(34vmax 30vmax at 88% 22%, rgba(0, 229, 255, .20), transparent 60%),
      radial-gradient(42vmax 36vmax at 52% 96%, rgba(139, 92, 246, .26), transparent 64%);
  }
  body::after { opacity: .8; background-image: repeating-linear-gradient(to bottom, rgba(190, 150, 255, .045) 0 1px, transparent 1px 4px); }
}

@keyframes drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(2.5%, -2%, 0) scale(1.06); }
  100% { transform: translate3d(-2%, 2.5%, 0) scale(1.02); }
}

img, video, svg { max-width: 100%; height: auto; display: block; }

/* ---------- skip link / focus ---------- */

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--magenta); color: #17000F;
  padding: 12px 18px; border-radius: 0 0 var(--radius) 0; font-weight: 600;
}
.skip:focus { left: 0; }

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

/* ---------- layout ---------- */

.wrap { width: 100%; max-width: 68rem; margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 44rem; }

main > section { padding-block: 60px; }
main > section + section { border-top: 1px solid var(--rule-soft); }

/* ---------- header: the glass bar ---------- */

.site-head {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 72%, transparent);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border-bottom: 1px solid var(--glass-edge);
  box-shadow: inset 0 1px 0 var(--glass-hi);
}
.site-head .wrap {
  display: flex; flex-direction: column; align-items: stretch;
  gap: 7px; padding-block: 10px;
}

.wordmark {
  position: relative;
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 19px; font-weight: 600; letter-spacing: -0.03em;
  color: var(--ink); text-decoration: none;
  margin-right: auto;
}
.wordmark img {
  width: 26px; height: 26px;
  filter: drop-shadow(0 0 9px rgba(234, 0, 217, .55));
  transition: transform .7s var(--ease-soft), filter .7s var(--ease-soft);
}
.wordmark:hover img { transform: scale(1.06) rotate(-3deg); filter: drop-shadow(0 0 15px rgba(234, 0, 217, .78)); }

.site-nav ul {
  display: flex; flex-wrap: nowrap; gap: 18px;
  list-style: none; margin: 0; padding: 0;
  overflow-x: auto; scrollbar-width: none;
  -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
}
.site-nav ul::-webkit-scrollbar { display: none; }
/* the strip scrolls on small screens — fade the edge so that's discoverable */
.site-nav {
  -webkit-mask-image: linear-gradient(to right, #000 84%, transparent 100%);
  mask-image: linear-gradient(to right, #000 84%, transparent 100%);
}
.site-nav li { white-space: nowrap; }
.site-nav a {
  display: inline-block; position: relative; padding: 4px 0;
  font-size: 15px; color: var(--ink-soft); text-decoration: none;
  border-bottom: 1.5px solid transparent;
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
/* 44px touch targets, without making the header taller */
.site-nav a::after,
.wordmark::after,
.site-foot nav a::after {
  content: "";
  position: absolute;
  left: -7px; right: -7px;
  top: 50%;
  transform: translateY(-50%);
  height: 44px;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--magenta);
  text-shadow: 0 0 18px rgba(234, 0, 217, .35);
}

/* ---------- type ---------- */

h1, h2, h3, h4 {
  font-weight: 600; letter-spacing: -0.035em; line-height: 1.08;
  text-wrap: balance; margin: 0 0 16px;
}
h1 { font-size: clamp(2.15rem, 8.6vw, 3.9rem); font-weight: 700; }
h2 { font-size: clamp(1.55rem, 5.4vw, 2.25rem); }
h3 { font-size: 1.18rem; letter-spacing: -0.025em; }
h4 { font-size: 1rem; margin-bottom: 8px; }

p, li { max-width: var(--measure); }
p { margin: 0 0 16px; }

/* no single-word last lines: `pretty` for body, `balance` for short display text */
p, li, dd, figcaption, .facts dd, .limits dd { text-wrap: pretty; }
.lede, .nots, .keyline p, .pillar .proof, .grid p, .art figcaption,
.cta-note, .site-foot .fine, .faq p, .steps p { text-wrap: balance; }

.lede {
  font-size: clamp(1.12rem, 4.3vw, 1.34rem);
  line-height: 1.45; color: var(--ink-soft); max-width: 38rem;
}
.eyebrow {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 14px;
}
a { color: var(--accent); text-underline-offset: 3px; }
strong { font-weight: 600; }
ul.plain { list-style: none; padding: 0; }

/* ---------- glass surface, used by every card ---------- */

.pillar, .grid > li, .note, .faq > div, .field {
  background: var(--glass);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--shadow), inset 0 1px 0 var(--glass-hi);
}

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

.hero { padding-block: 44px 40px; position: relative; }
.hero h1 { margin-bottom: 18px; }
.hero .lede { margin-bottom: 28px; }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; margin-bottom: 14px; }
.cta-row > a { padding-block: 10px; }

.badge {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 24px; border-radius: 999px;
  font-size: 16px; font-weight: 600; text-decoration: none;
  background: linear-gradient(135deg, var(--magenta), var(--violet));
  color: #17000F;
  border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: var(--glow), inset 0 1px 0 rgba(255, 255, 255, .45);
  transition: transform .55s var(--ease-soft), box-shadow .8s var(--ease-soft);
}
.badge:hover { transform: translateY(-2px); box-shadow: 0 0 56px -6px rgba(234, 0, 217, .6), inset 0 1px 0 rgba(255, 255, 255, .5); }
/* the chrome sheen sweep */
.badge::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .55) 50%, transparent 62%);
  transform: translateX(-120%);
  animation: sheen 4.6s ease-in-out infinite;
}
@keyframes sheen {
  0%, 62% { transform: translateX(-120%); }
  86%, 100% { transform: translateX(120%); }
}

.badge--pending {
  background: var(--glass-2);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  color: var(--ink-soft);
  border: 1px solid var(--glass-edge);
  font-weight: 500;
  box-shadow: inset 0 1px 0 var(--glass-hi);
}
.badge--pending::after { animation-duration: 7s; opacity: .5; }

.cta-note { font-size: 14px; color: var(--ink-faint); margin: 0; }

/* ---------- pillars ---------- */

.pillars { display: grid; gap: 18px; padding: 0; margin: 0; list-style: none; }
.pillar {
  position: relative;
  border-radius: var(--radius); padding: 22px; max-width: none;
  transition: transform .7s var(--ease-soft), border-color .7s var(--ease-soft);
}
.pillar:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--magenta) 34%, transparent);
}
.pillar h3 { margin-bottom: 10px; }
.pillar p:last-child { margin-bottom: 0; }
.pillar .proof {
  font-size: 15px; color: var(--ink-soft);
  border-top: 1px solid var(--rule-soft);
  padding-top: 12px; margin: 14px 0 0;
}

/* the glow is its own layer, faded in — box-shadow itself animates badly */
.pillar::after, .grid > li::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  box-shadow: var(--shadow-lg), var(--glow);
  transition: opacity .85s var(--ease-soft);
}
.pillar:hover::after, .grid > li:hover::after { opacity: 1; }

/* ---------- feature grid ---------- */

.grid { display: grid; gap: 16px; padding: 0; margin: 0 0 8px; list-style: none; }
.grid > li {
  position: relative;
  border-radius: var(--radius); padding: 20px; max-width: none;
  transition: transform .7s var(--ease-soft), border-color .7s var(--ease-soft);
}
.grid > li:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--cyan) 32%, transparent); }
.grid h3 { margin-bottom: 6px; }
.grid p { margin-bottom: 0; color: var(--ink-soft); font-size: 16px; }

/* ---------- the blunt list ---------- */

.nots {
  font-size: clamp(1.3rem, 5.8vw, 2rem);
  font-weight: 600; letter-spacing: -0.035em; line-height: 1.4;
  max-width: 30rem; margin: 0;
}
.nots span { white-space: nowrap; }
.nots .sep {
  color: var(--magenta); font-weight: 400;
  text-shadow: 0 0 14px rgba(234, 0, 217, .6);
}

/* ---------- steps ---------- */

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps > li {
  counter-increment: step; position: relative;
  padding-left: 50px; margin-bottom: 32px; max-width: 40rem;
}
.steps > li::before {
  content: counter(step);
  position: absolute; left: 0; top: -1px;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--magenta), var(--violet));
  color: #17000F; font-size: 15px; font-weight: 600;
  font-variant-numeric: tabular-nums;
  box-shadow: var(--glow), inset 0 1px 0 rgba(255, 255, 255, .45);
}
.steps h2 { font-size: clamp(1.3rem, 4.6vw, 1.7rem); margin-bottom: 6px; }
.steps p:last-child { margin-bottom: 0; }

/* ---------- illustrations ---------- */

.art {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--glass-edge);
  box-shadow: var(--shadow), inset 0 1px 0 var(--glass-hi);
  line-height: 0;
}
.art__svg { width: 100%; height: auto; display: block; }
.art figcaption { line-height: 1.5; padding: 0 4px; }
figcaption { font-size: 15px; color: var(--ink-soft); max-width: var(--measure); margin-top: 14px; }

/* text one side, illustration the other */
.split { display: grid; gap: 26px; align-items: center; }
.split > * { min-width: 0; }
.split h2 { margin-bottom: 14px; }
.split p:last-child { margin-bottom: 0; }
@media (min-width: 52em) {
  .split { grid-template-columns: 1fr 1fr; gap: 52px; }
  .split--flip > .art { order: -1; }
}

/* ---------- note / keyline ---------- */

.note { border-radius: var(--radius); padding: 20px 22px; margin: 0 0 18px; }
.note > :last-child { margin-bottom: 0; }
.note h3 { font-size: 1.05rem; }

.keyline {
  position: relative; padding-left: 20px; margin: 26px 0;
  border-left: 2px solid;
  border-image: linear-gradient(180deg, var(--magenta), var(--violet), var(--cyan)) 1;
}
.keyline p { margin-bottom: 0; font-size: 1.08rem; }

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

.facts { margin: 0; }
.facts div { padding: 15px 0; border-bottom: 1px solid var(--rule-soft); }
.facts div:first-child { border-top: 1px solid var(--rule-soft); }
.facts dt { font-weight: 600; margin-bottom: 3px; }
.facts dd { margin: 0; color: var(--ink-soft); max-width: var(--measure); }

.faq { margin: 0; display: grid; gap: 12px; }
.faq > div { border-radius: var(--radius); padding: 20px 22px; }
.faq h3 { margin-bottom: 8px; }
.faq p { color: var(--ink-soft); margin-bottom: 0; }

/* ---------- price ---------- */

.price {
  font-size: clamp(3.4rem, 17vw, 5.6rem);
  font-weight: 700; letter-spacing: -0.055em; line-height: 1;
  margin: 0 0 14px;
  background: var(--chrome);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  background-size: 220% 100%;
  animation: chrome 9s var(--ease) infinite alternate;
}
@keyframes chrome { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }

.limits { margin: 0; }
.limits div {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  gap: 4px 20px;
  padding: 14px 0; border-bottom: 1px solid var(--rule-soft); max-width: 30rem;
}
.limits dt { color: var(--ink-soft); margin: 0; }
.limits dd {
  margin: 0; font-weight: 600; font-variant-numeric: tabular-nums;
  text-align: right; margin-left: auto;
}

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

.site-foot {
  border-top: 1px solid var(--rule);
  padding-block: 40px 60px; margin-top: 24px;
  font-size: 15px; color: var(--ink-soft);
}
.site-foot nav ul {
  display: flex; flex-wrap: wrap; gap: 18px 20px;
  list-style: none; margin: 0 0 24px; padding: 0;
}
.site-foot nav a { position: relative; display: inline-block; }
.site-foot a { color: var(--ink-soft); }
.site-foot a:hover { color: var(--accent); }
.site-foot .fine { font-size: 13.5px; color: var(--ink-faint); margin: 0; max-width: 40rem; }

/* ==========================================================================
   Motion. Everything below is additive — with motion off, or in a browser
   without scroll-driven animations, the page renders complete and static.
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {

  @keyframes rise-in {
    from { opacity: 0; transform: translateY(18px); filter: blur(6px); }
    to   { opacity: 1; transform: none; filter: none; }
  }

  /* hero arrives on load, staggered */
  .hero > .wrap > * { animation: rise-in .85s var(--ease) both; }
  .hero > .wrap > :nth-child(1) { animation-delay: .04s; }
  .hero > .wrap > :nth-child(2) { animation-delay: .12s; }
  .hero > .wrap > :nth-child(3) { animation-delay: .20s; }
  .hero > .wrap > :nth-child(4) { animation-delay: .28s; }
  .hero > .wrap > :nth-child(5) { animation-delay: .36s; }
  .hero > .wrap > :nth-child(6) { animation-delay: .44s; }

  /* everything else arrives as it scrolls into view */
  @supports (animation-timeline: view()) {
    main > section:not(.hero) h2,
    .pillar, .grid > li, .note, .art, .faq > div,
    .steps > li, .facts div, .keyline, .nots, .price, .limits div {
      animation: rise-in linear both;
      animation-timeline: view();
      animation-range: entry 4% entry 62%;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- wider screens ---------- */

@media (min-width: 34em) {
  :root { --gutter: 28px; }
  body { font-size: 17.5px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .faq { gap: 14px; }
}

@media (min-width: 52em) {
  :root { --gutter: 40px; }
  .site-nav { -webkit-mask-image: none; mask-image: none; }
  main > section { padding-block: 88px; }
  .hero { padding-block: 84px 72px; }
  .pillars { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .grid { grid-template-columns: repeat(4, 1fr); }
  .site-head .wrap { flex-direction: row; align-items: center; gap: 28px; padding-block: 13px; }
  .site-nav ul { overflow-x: visible; }
  .site-nav a { font-size: 15.5px; }
  .wordmark { font-size: 20px; }
  .wordmark img { width: 28px; height: 28px; }
}

@media (min-width: 68em) { body { font-size: 18px; } }

/* ---------- legal documents: a reading rhythm, not a marketing one ---------- */

.legal > section { padding-block: 30px; }
.legal > section + section { border-top: 0; }
.legal > section.hero { padding-block: 44px 22px; }
.legal h2 {
  font-size: clamp(1.25rem, 4vw, 1.55rem);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule-soft);
}
.legal h3 { font-size: 1.02rem; margin-top: 24px; }
.legal .facts dd, .legal p, .legal li { color: var(--ink-soft); }
.legal .facts dt, .legal strong { color: var(--ink); }
.legal .note h3 { margin-top: 0; }

@media (min-width: 52em) {
  .legal > section { padding-block: 38px; }
  .legal > section.hero { padding-block: 72px 30px; }
}
