/* Pip — the family page (same design as Pip Studio). Light page with dark and grey bands, system type, generous space. */
:root {
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --bg: #ffffff;
  --light: #f5f5f7;
  --dark: #000000;
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --link: #0066cc;
  --green: #30d158;
  --g1: #2997ff;
  --g2: #7d5cff;
  --g3: #e94dd1;
  --g4: #ff7a59;
  --grad: linear-gradient(95deg, var(--g1) 0%, var(--g2) 40%, var(--g3) 75%, var(--g4) 100%);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, Inter, Arial, sans-serif;
  --radius: 28px;
  --nav-h: 52px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid rgba(0, 113, 227, .55); outline-offset: 3px; border-radius: 8px; }

.container { width: min(1040px, 100% - 44px); margin: 0 auto; }
.container.narrow { width: min(760px, 100% - 44px); }
.center { text-align: center; }
.muted { color: var(--muted); }
.nb { white-space: nowrap; }

.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-dark { background: linear-gradient(95deg, #6cb6ff, #a98bff 45%, #ff8fe0 80%, #ffb38a); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ------------------------------------------------------------------ nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.nav.scrolled { border-bottom-color: rgba(0, 0, 0, .08); }
.nav-inner { width: min(1040px, 100% - 44px); height: 100%; margin: 0 auto; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 21px; color: var(--ink); letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand-dot { width: 18px; height: 18px; border-radius: 50%; background: conic-gradient(from 200deg, var(--g1), var(--g2), var(--g3), var(--g4), var(--g1)); box-shadow: 0 0 12px rgba(125, 92, 255, .45); flex: none; display: inline-block; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { color: var(--ink); opacity: .8; font-size: 13px; letter-spacing: -0.01em; }
.nav-links a:hover { opacity: 1; text-decoration: none; }

/* ------------------------------------------------------------------ buttons */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--blue); color: #fff; border: 0; cursor: pointer;
  padding: 12px 24px; border-radius: 980px; font-size: 17px; font-weight: 400; line-height: 1.2;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.pill:hover { background: var(--blue-hover); text-decoration: none; }
.pill:active { transform: scale(.97); }
.pill-sm { padding: 5px 13px; font-size: 13px; margin-left: 4px; }
.link-arrow { font-size: 19px; }
.link-arrow::after { content: " ›"; }

/* ------------------------------------------------------------------ sections */
.section { padding: 130px 0; }
.section.light { background: var(--light); }
.section.dark { background: var(--dark); color: #f5f5f7; }
.eyebrow { font-size: 21px; font-weight: 600; color: var(--muted); margin: 0 0 10px; letter-spacing: -0.01em; }
.headline { font-size: clamp(40px, 6.2vw, 72px); line-height: 1.05; font-weight: 700; letter-spacing: -0.035em; margin: 0 0 26px; }
.lede { font-size: clamp(19px, 2.2vw, 24px); line-height: 1.42; color: var(--muted); margin: 0 auto; font-weight: 500; letter-spacing: -0.02em; }

/* ------------------------------------------------------------------ hero */
.hero { text-align: center; padding: 90px 22px 40px; overflow: hidden; }
.hero .eyebrow { font-size: 24px; color: var(--ink); }
.hero-title { font-size: clamp(48px, 9vw, 104px); line-height: 1.02; font-weight: 700; letter-spacing: -0.045em; margin: 0 0 24px; }
.verb { display: inline-block; padding: 0 .04em .06em; transition: opacity .38s ease, transform .38s ease, filter .38s ease; }
.verb.out { opacity: 0; transform: translateY(.18em); filter: blur(8px); }
.hero-sub { font-size: clamp(19px, 2.4vw, 26px); line-height: 1.38; color: var(--muted); font-weight: 500; max-width: 820px; margin: 0 auto 34px; letter-spacing: -0.02em; }
.hero-ctas { display: flex; gap: 32px; justify-content: center; align-items: center; flex-wrap: wrap; }
.bubble { position: absolute; max-width: 260px; padding: 11px 16px; border-radius: 20px; font-size: 15px; line-height: 1.35; text-align: left; box-shadow: 0 10px 30px rgba(0, 0, 0, .12); animation: float 6s ease-in-out infinite; z-index: 3; }
.b-you { top: 9%; right: -8%; background: var(--blue); color: #fff; border-bottom-right-radius: 6px; }
.b-pip { bottom: -3%; left: -9%; background: #fff; color: var(--ink); border-bottom-left-radius: 6px; animation-delay: -3s; display: inline-flex; align-items: center; gap: 8px; }
.bubble-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(48, 209, 88, .2); flex: none; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* ------------------------------------------------------------------ hero art: a browser window full of Pips */
.hero-art { position: relative; margin: 70px auto 0; width: min(600px, 100%); }
.window {
  position: relative; border-radius: 34px; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 0%, #2a2160 0%, #120d26 60%, #0b0918 100%);
  box-shadow: 0 50px 100px -30px rgba(90, 50, 160, .55), 0 0 0 1px rgba(0, 0, 0, .05);
}
.win-bar { display: flex; align-items: center; gap: 8px; padding: 18px 22px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.win-bar > i { width: 12px; height: 12px; border-radius: 50%; background: rgba(255, 255, 255, .16); flex: none; }
.win-url {
  margin: 0 auto; transform: translateX(-22px); display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 980px; background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .8); font-size: 13px;
}
.win-url .brand-dot { width: 12px; height: 12px; }
.win-apps { --cols: 2; display: flex; flex-wrap: wrap; justify-content: center; row-gap: 34px; padding: 52px 40px 58px; }
.win-apps > .win-app { flex: 0 0 calc(100% / var(--cols)); min-width: 0; }
.win-app { display: flex; flex-direction: column; align-items: center; gap: 12px; color: #f5f5f7; font-size: 15px; font-weight: 500; position: relative;
  animation: bob 6s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -1.3s); }
.win-app .badge { --s: 104px; }
.win-soon { position: absolute; top: -8px; right: -10px; background: rgba(255, 255, 255, .9); color: var(--ink); font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 980px; }
@keyframes bob { 50% { transform: translateY(-6px); } }
.frame-shine { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .12) 45%, transparent 60%);
  transform: translateX(-120%); animation: shine 9s ease-in-out infinite; }
@keyframes shine { 0%, 44% { transform: translateX(-120%); } 58%, 100% { transform: translateX(120%); } }

/* ------------------------------------------------------------------ the badge: each app's swirl, in its own colours */
.badge {
  --s: 64px; --c1: var(--g1); --c2: var(--g3); --c3: var(--g2);
  position: relative; width: var(--s); height: var(--s); border-radius: 30%;
  overflow: hidden; isolation: isolate; flex: none; display: inline-block;
  background: radial-gradient(circle at 50% 50%, #241a4d 0%, #0c0a1a 70%);
  box-shadow: 0 18px 40px -16px color-mix(in srgb, var(--c1) 70%, transparent), 0 0 0 1px rgba(255, 255, 255, .06) inset;
}
.badge i { position: absolute; inset: -20%; border-radius: 50%; filter: blur(calc(var(--s) * .09)); mix-blend-mode: screen; animation: spin 14s linear infinite; }
.badge i:nth-child(1) { background: radial-gradient(circle at 30% 35%, var(--c1) 0 28%, transparent 52%); }
.badge i:nth-child(2) { background: radial-gradient(circle at 70% 40%, var(--c2) 0 24%, transparent 50%); animation-duration: 18s; animation-direction: reverse; }
.badge i:nth-child(3) { background: radial-gradient(circle at 50% 75%, var(--c3) 0 26%, transparent 52%); animation-duration: 22s; }
.badge::after { content: ""; position: absolute; inset: 0; border-radius: 30%; background: radial-gradient(circle at 35% 25%, rgba(255, 255, 255, .32), transparent 42%); z-index: 2; }
.badge svg { position: absolute; z-index: 3; left: 50%; top: 50%; width: 44%; height: 44%; transform: translate(-50%, -50%);
  fill: none; stroke: #fff; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .3)); }
.badge svg .dot { fill: #fff; stroke: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------------ the apps */
.apps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 70px; }
.app {
  position: relative; background: #fff; border-radius: var(--radius); padding: 36px 36px 32px;
  display: flex; flex-direction: column; gap: 22px; scroll-margin-top: calc(var(--nav-h) + 20px);
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s;
}
.app::before { /* a soft wash of the app's colours in the corner */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: .55; transition: opacity .35s;
  background: radial-gradient(420px 220px at 100% 0%, color-mix(in srgb, var(--c1) 14%, transparent), transparent 70%),
              radial-gradient(360px 200px at 85% 0%, color-mix(in srgb, var(--c2) 10%, transparent), transparent 70%);
}
.app:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--c1) 55%, rgba(0, 0, 0, .3)); }
.app:hover::before { opacity: 1; }
.app > * { position: relative; }
.app-top { display: flex; align-items: center; gap: 16px; }
.app-labels { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.app-kind { font-size: 15px; font-weight: 600; color: var(--muted); }
.tag { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 980px; letter-spacing: -0.01em; }
.tag-new { color: #fff; background: linear-gradient(95deg, var(--c1), var(--c2)); }
.tag-soon { color: var(--muted); background: var(--light); }
.app-name { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 4px; }
.app-tagline {
  font-size: clamp(30px, 3.4vw, 40px); line-height: 1.08; font-weight: 700; letter-spacing: -0.035em; margin: 0 0 14px;
  background: linear-gradient(95deg, color-mix(in srgb, var(--c1) 85%, #000), color-mix(in srgb, var(--c2) 85%, #000));
  -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .04em;
}
.app-desc { margin: 0; color: var(--muted); }
.app-features { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; }
.app-features li { position: relative; padding-left: 26px; font-size: 15px; line-height: 1.4; }
.app-features li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 17px; height: 17px; border-radius: 50%;
  background: linear-gradient(135deg, var(--c1), var(--c2));
}
.app-features li::after {
  content: ""; position: absolute; left: 0; top: 2px; width: 17px; height: 17px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 12.5l3.6 3.6 7.4-8.2' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/11px no-repeat;
}
.app-foot { margin-top: auto; padding-top: 22px; border-top: 1px solid #ececf0; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.app-meta { margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted); display: flex; flex-direction: column; }
.app-foot .pill { padding: 10px 20px; font-size: 15px; white-space: nowrap; }
.pill-soon, .pill-soon:hover { background: var(--light); color: var(--muted); cursor: default; }
.app.is-soon:hover { transform: none; box-shadow: none; }
.app.is-soon .badge { filter: saturate(.6); }

/* an odd one out at the end gets the whole row */
@media (min-width: 901px) {
  .apps > .app:last-child:nth-of-type(odd) { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr minmax(220px, 260px); gap: 36px; align-items: center; }
  .apps > .app:last-child:nth-of-type(odd) .app-top { flex-direction: column; align-items: flex-start; align-self: start; }
  .apps > .app:last-child:nth-of-type(odd) .badge { --s: 88px; }
  .apps > .app:last-child:nth-of-type(odd) .app-foot { margin: 0; padding: 0 0 0 30px; border: 0; border-left: 1px solid #ececf0; flex-direction: column; align-items: flex-start; align-self: stretch; justify-content: center; }
}

/* ------------------------------------------------------------------ compare tiles */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 70px; }
.tile { background: var(--light); border-radius: var(--radius); padding: 40px; }
.tile h3 { font-size: 28px; line-height: 1.14; letter-spacing: -0.03em; margin: 0 0 12px; font-weight: 700; }
.tile p { margin: 0; color: var(--muted); }
.tile-kicker { font-size: 17px; font-weight: 600; margin: 0 0 26px; display: inline-block; }
.tile-hero { background: #fff; box-shadow: 0 0 0 2px rgba(125, 92, 255, .35), 0 30px 60px -36px rgba(90, 50, 160, .45); }
.flow { display: flex; align-items: center; margin: 0 0 30px; height: 56px; }
.flow-dot { width: 44px; height: 44px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 600; flex: none; }
.tile-hero .flow-dot { background: var(--light); }
.flow-line { flex: 1; height: 2px; }
.flow-line.dashed { background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 12px); }
.flow-line.solid { background: var(--grad); flex: .5; }
.flow-cloud { font-size: 40px; color: #b0b0b6; flex: none; line-height: 1; padding: 0 4px; }
.flow-device { width: 56px; height: 40px; border-radius: 8px; border: 2.5px solid var(--ink); display: grid; place-items: center; flex: none; position: relative; }
.flow-device::after { content: ""; position: absolute; bottom: -9px; left: -8px; right: -8px; height: 4px; border-radius: 0 0 4px 4px; background: var(--ink); }

/* ------------------------------------------------------------------ stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 30px; margin-top: 80px; }
.stat { display: flex; flex-direction: column; gap: 10px; }
.stat-num { font-size: clamp(56px, 7vw, 88px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; background: linear-gradient(180deg, #fff, #8e8e93); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { color: #a1a1a6; font-size: 17px; font-weight: 500; }

/* ------------------------------------------------------------------ steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 70px; }
.step-icon { width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 26px; }
.step-icon svg { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ic-pick { background: linear-gradient(135deg, var(--g1), var(--g2)); }
.ic-download { background: linear-gradient(135deg, var(--g2), var(--g3)); }
.ic-create { background: linear-gradient(135deg, var(--g4), #ff375f); }

/* ------------------------------------------------------------------ privacy */
.privacy { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: center; }
.privacy-art { display: grid; place-items: center; }
.lock { width: min(300px, 70vw); aspect-ratio: 1; border-radius: 64px; display: grid; place-items: center; background: linear-gradient(160deg, #1d1d1f, #000); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .5); }
.lock svg { width: 46%; fill: none; stroke: #fff; stroke-width: 3.5; stroke-linecap: round; }
.lock svg circle { fill: #fff; stroke: none; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.checks li { position: relative; padding-left: 40px; color: var(--muted); font-size: 19px; line-height: 1.42; }
.checks li strong { color: var(--ink); font-weight: 600; display: block; }
.checks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 26px; height: 26px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }

/* ------------------------------------------------------------------ faq */
.faq { margin-top: 50px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 40px 24px 0; font-size: 21px; font-weight: 600; letter-spacing: -0.02em; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 28px; font-weight: 300; color: var(--muted); transition: transform .3s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0 0 24px; color: var(--muted); font-size: 17px; max-width: 640px; }

/* ------------------------------------------------------------------ closing + footer */
.closing { padding: 140px 0 150px; background: radial-gradient(1200px 600px at 50% 0%, #f1edff 0%, #fff 60%); }
.badge-cluster { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin: 0 auto 40px; max-width: 520px; }
.badge-cluster .badge { --s: 64px; animation: bob 6s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -1.1s); }
.closing .lede { margin-bottom: 34px; }
.footer { background: var(--light); color: var(--muted); font-size: 12px; line-height: 1.5; padding: 28px 0 40px; border-top: 1px solid var(--line); }
.footer p { margin: 0 0 10px; max-width: 900px; }
.footer-apps { list-style: none; padding: 0 0 18px; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 8px 26px; border-bottom: 1px solid var(--line); font-size: 13px; }
.footer-apps a { color: var(--ink); }
.footer-credits strong { color: var(--ink); font-weight: 600; }
.footer .copy { margin-top: 18px; }

/* ------------------------------------------------------------------ scroll reveal */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .app.reveal.in { transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s; }
.js .app.reveal.in:hover { transform: translateY(-4px); }
.js .app.is-soon.reveal.in:hover { transform: none; }

/* ------------------------------------------------------------------ responsive */
@media (min-width: 900px) { .nowrap-wide { white-space: nowrap; } }
@media (max-width: 900px) {
  .apps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .privacy { grid-template-columns: 1fr; gap: 40px; }
  .privacy-copy { text-align: center; }
  .checks { text-align: left; max-width: 520px; margin: 0 auto; }
}
@media (max-width: 734px) {
  .nav-links { display: none; }
  .pill-sm { margin-left: auto; }
  .section { padding: 90px 0; }
  .compare { grid-template-columns: 1fr; }
  .tile { padding: 30px 26px; }
  .app { padding: 28px 24px 24px; }
  .br-wide { display: none; }
  .bubble { font-size: 13px; max-width: 200px; }
  .b-you { right: 0; top: -38px; }
  .b-pip { left: 0; bottom: -30px; }
  .hero { padding-top: 60px; }
  .hero-art { margin-top: 56px; }
  .win-apps { row-gap: 26px; padding: 40px 12px 46px; }
  .win-app { font-size: 13px; }
  .win-app .badge { --s: 76px; }
}
@media (max-width: 420px) {
  .stats { grid-template-columns: 1fr; }
  .win-apps { --cols: 2 !important; }
  .win-app .badge { --s: 68px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  .js .reveal { opacity: 1; transform: none; }
}
