/* PocketPM landing page. iOS 26 "Liquid Glass" feel on black, in the logo's colours. No frameworks, no inline styles. */
:root {
  --bg: #000;
  --text: #f5f5f7;
  --muted: rgba(245, 245, 247, .72);
  --faint: rgba(245, 245, 247, .5);
  --lime: #c6ff3d;
  --green: #2ee66b;
  --teal: #19e6c1;
  --cyan: #22d3ff;
  --blue: #3b82ff;
  --violet: #8a5cff;
  --g-left: linear-gradient(135deg, var(--lime), var(--green) 55%, var(--teal));
  --g-right: linear-gradient(135deg, var(--cyan), var(--blue) 55%, var(--violet));
  --g-both: linear-gradient(135deg, var(--lime), var(--teal) 45%, var(--blue) 75%, var(--violet));
  --ease: cubic-bezier(.2, .8, .2, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font-family: var(--font); line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
[hidden] { display: none !important; }
a { color: inherit; }
img { max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 2px solid rgba(255, 255, 255, .9); outline-offset: 3px; }

/* ---------- Ambient colour behind everything ---------- */
.ambient { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; will-change: transform; }
.orb-a { width: 46vmax; height: 46vmax; left: -14vmax; top: -16vmax; background: radial-gradient(circle, var(--lime), var(--green) 45%, transparent 70%); animation: drift-a 22s ease-in-out infinite alternate; }
.orb-b { width: 44vmax; height: 44vmax; right: -14vmax; top: -10vmax; background: radial-gradient(circle, var(--cyan), var(--blue) 45%, var(--violet) 62%, transparent 72%); animation: drift-b 26s ease-in-out infinite alternate; }
.orb-c { width: 36vmax; height: 36vmax; left: 28vw; bottom: -22vmax; opacity: .3; background: radial-gradient(circle, var(--teal), transparent 68%); animation: drift-a 30s ease-in-out infinite alternate-reverse; }
@keyframes drift-a { to { transform: translate3d(7vmax, 5vmax, 0) scale(1.08); } }
@keyframes drift-b { to { transform: translate3d(-6vmax, 6vmax, 0) scale(1.06); } }

/* ---------- Liquid glass ---------- */
.glass {
  background: linear-gradient(180deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .04));
  border: 1px solid rgba(255, 255, 255, .15);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), inset 0 -1px 0 rgba(255, 255, 255, .05), 0 24px 70px rgba(0, 0, 0, .5);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  backdrop-filter: blur(28px) saturate(180%);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: rgba(26, 28, 32, .94); }
}
.glass-inset { background: rgba(0, 0, 0, .38); border: 1px solid rgba(255, 255, 255, .14); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .5); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; z-index: 50; top: max(12px, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%);
  width: min(940px, calc(100% - 24px)); display: flex; align-items: center; gap: 18px;
  padding: 8px 8px 8px 16px; border-radius: 999px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.02em; text-decoration: none; margin-right: auto; }
.brand img { border-radius: 8px; display: block; }
.nav nav { display: flex; gap: 22px; }
.nav nav a { font-size: 14px; color: var(--muted); text-decoration: none; transition: color .2s; }
.nav nav a:hover { color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  appearance: none; border: 0; cursor: pointer; font: inherit; font-weight: 600; letter-spacing: -.01em; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; padding: 13px 24px; border-radius: 999px;
  color: #04150a; background: var(--g-left); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 8px 26px rgba(46, 230, 107, .3);
  transition: transform .25s var(--ease), filter .25s, box-shadow .25s;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(.96); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-small { padding: 9px 18px; font-size: 14px; }

/* ---------- Hero ---------- */
main { display: block; overflow-x: clip; }
.hero { max-width: 1120px; margin: 0 auto; padding: 128px 20px 40px; text-align: center; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px; border-radius: 999px; font-size: 13px; color: var(--muted); margin: 0 0 26px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--g-left); box-shadow: 0 0 12px var(--green); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.5); opacity: .6; } }
h1 { margin: 0 auto; font-size: clamp(40px, 7.4vw, 80px); line-height: 1.03; letter-spacing: -.04em; font-weight: 700; max-width: 14ch; text-wrap: balance; }
.g-left, .g-right { background-clip: text; -webkit-background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.g-left { background-image: var(--g-left); }
.g-right { background-image: var(--g-right); }
.tagline {
  margin: 20px auto 0; font-size: clamp(20px, 3.2vw, 30px); font-weight: 600; letter-spacing: -.025em; line-height: 1.2; text-wrap: balance;
  background: var(--g-both); background-clip: text; -webkit-background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
.lede { margin: 16px auto 0; max-width: 640px; font-size: clamp(17px, 2.3vw, 22px); color: var(--muted); letter-spacing: -.01em; text-wrap: balance; }

/* ---------- Interactive brain ---------- */
.stage { position: relative; margin-top: 30px; --accent: var(--g-both); }
.stage[data-side="left"] { --accent: var(--g-left); }
.stage[data-side="right"] { --accent: var(--g-right); }
.brain {
  --h: clamp(250px, 44vw, 430px);
  position: relative; display: flex; justify-content: center; height: var(--h); margin: 0 auto;
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .3s ease-out;
}
.brain::before, .brain::after { content: ""; position: absolute; top: 50%; width: 70%; height: 90%; border-radius: 50%; filter: blur(60px); opacity: 0; transition: opacity .7s var(--ease); pointer-events: none; z-index: -1; }
.brain::before { left: 0; transform: translateY(-50%); background: radial-gradient(closest-side, rgba(198, 255, 61, .38), transparent); }
.brain::after { right: 0; transform: translateY(-50%); background: radial-gradient(closest-side, rgba(59, 130, 255, .42), transparent); }
.stage[data-side="left"] .brain::before, .stage[data-side="right"] .brain::after { opacity: 1; }

.half {
  all: unset; box-sizing: border-box; height: 100%; position: relative; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: transform .7s var(--ease), filter .6s var(--ease), opacity .6s var(--ease);
}
.half-left { aspect-ratio: 548 / 990; }
.half-right { aspect-ratio: 536 / 990; }
.half img { display: block; width: 100%; height: 100%; user-select: none; -webkit-user-drag: none; pointer-events: none; animation: float 7s ease-in-out infinite; }
.half-right img { animation-delay: -3.5s; }
@keyframes float { 50% { transform: translateY(-9px); } }
.half:focus-visible { outline: 2px solid rgba(255, 255, 255, .9); outline-offset: 4px; border-radius: 36px; }

@media (hover: hover) {
  .stage[data-side="none"] .half:hover { transform: scale(1.035); filter: brightness(1.12) drop-shadow(0 0 30px rgba(255, 255, 255, .18)); }
}
.stage[data-side="left"] .half-left {
  transform: translateX(-12px) scale(1.07);
  filter: drop-shadow(0 0 30px rgba(198, 255, 61, .6)) drop-shadow(0 0 80px rgba(46, 230, 107, .4)) brightness(1.1) saturate(1.15);
}
.stage[data-side="left"] .half-right { transform: translateX(8px) scale(.96); opacity: .3; filter: saturate(.4) brightness(.8); }
.stage[data-side="right"] .half-right {
  transform: translateX(12px) scale(1.07);
  filter: drop-shadow(0 0 30px rgba(34, 211, 255, .6)) drop-shadow(0 0 80px rgba(59, 130, 255, .45)) brightness(1.1) saturate(1.15);
}
.stage[data-side="right"] .half-left { transform: translateX(-8px) scale(.96); opacity: .3; filter: saturate(.4) brightness(.8); }

.hint { margin: 18px 0 0; font-size: 14px; color: var(--faint); display: inline-flex; align-items: center; gap: 10px; }
.tap { width: 10px; height: 10px; border-radius: 50%; background: #fff; animation: ping 2.2s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .55); } 80%, 100% { box-shadow: 0 0 0 14px rgba(255, 255, 255, 0); } }

/* ---------- Feature panel ---------- */
.panel {
  position: relative; max-width: 780px; min-height: 300px; margin: 22px auto 0; padding: 30px; border-radius: 34px; text-align: left;
  transition: box-shadow .6s var(--ease);
}
.panel::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; background: var(--accent); opacity: .85; pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.stage[data-side="left"] .panel { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 24px 80px rgba(46, 230, 107, .18); }
.stage[data-side="right"] .panel { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 24px 80px rgba(59, 130, 255, .22); }
.panel-label { margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; background: var(--accent); background-clip: text; -webkit-background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.panel h3 { margin: 0; font-size: clamp(26px, 4vw, 36px); line-height: 1.1; letter-spacing: -.03em; }
.panel-intro { margin: 10px 0 0; color: var(--muted); font-size: 17px; }
.features { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 14px; }
.features li { display: grid; grid-template-columns: 10px 1fr; gap: 14px; align-items: start; }
.features li::before { content: ""; margin-top: 8px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 14px currentColor; }
.stage[data-side="left"] .features li::before { color: var(--green); }
.stage[data-side="right"] .features li::before { color: var(--blue); }
.features strong { display: block; font-size: 17px; letter-spacing: -.01em; }
.features span { color: var(--muted); font-size: 15.5px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.chip { appearance: none; cursor: pointer; font: inherit; font-weight: 600; color: #fff; padding: 11px 20px; border-radius: 999px; display: inline-flex; align-items: center; gap: 10px; transition: transform .25s var(--ease); }
.chip:active { transform: scale(.96); }
.chip i { width: 10px; height: 10px; border-radius: 50%; }
.chip-left i { background: var(--g-left); box-shadow: 0 0 12px var(--green); }
.chip-right i { background: var(--g-right); box-shadow: 0 0 12px var(--blue); }
.rise { animation: rise .55s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- Content blocks ---------- */
.block { position: relative; isolation: isolate; max-width: 1120px; margin: 0 auto; padding: 84px 20px; text-align: center; }
/* Soft colour behind each section so the glass has something to refract. */
.block::before { content: ""; position: absolute; z-index: -1; top: -6%; bottom: -6%; left: 50%; width: 100vw; transform: translateX(-50%); pointer-events: none; filter: blur(30px); background: var(--wash); }
#how { --wash: radial-gradient(34% 46% at 14% 55%, rgba(46, 230, 107, .26), transparent 72%), radial-gradient(34% 46% at 88% 40%, rgba(59, 130, 255, .26), transparent 72%); }
#screens { --wash: radial-gradient(36% 46% at 18% 40%, rgba(25, 230, 193, .22), transparent 72%), radial-gradient(36% 46% at 86% 60%, rgba(138, 92, 255, .28), transparent 72%); }
#teams { --wash: radial-gradient(34% 46% at 88% 55%, rgba(198, 255, 61, .2), transparent 72%), radial-gradient(34% 46% at 10% 45%, rgba(138, 92, 255, .26), transparent 72%); }
#private { --wash: radial-gradient(40% 50% at 50% 70%, rgba(25, 230, 193, .22), transparent 72%), radial-gradient(30% 40% at 90% 30%, rgba(59, 130, 255, .22), transparent 72%); }
#updates { --wash: radial-gradient(40% 55% at 22% 50%, rgba(198, 255, 61, .3), transparent 72%), radial-gradient(40% 55% at 80% 50%, rgba(59, 130, 255, .34), transparent 72%); }
.block h2 { margin: 0 auto; font-size: clamp(30px, 5vw, 54px); line-height: 1.06; letter-spacing: -.035em; max-width: 18ch; text-wrap: balance; }
.sub { margin: 16px auto 0; max-width: 620px; color: var(--muted); font-size: clamp(16px, 2vw, 19px); text-wrap: balance; }
.cards { display: grid; gap: 16px; margin: 44px 0 0; padding: 0; list-style: none; text-align: left; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.cards.four { grid-template-columns: repeat(4, 1fr); }
/* Five teams: three across, then two centred beneath. */
.cards.six { grid-template-columns: repeat(3, 1fr); }
.cards.five { grid-template-columns: repeat(6, 1fr); }
.cards.five .card { grid-column: span 2; }
.cards.five .card:nth-child(4) { grid-column: 2 / span 2; }
.cards.five .card:nth-child(5) { grid-column: 4 / span 2; }
.card { position: relative; padding: 26px; border-radius: 28px; transition: transform .35s var(--ease), border-color .3s; }
@media (hover: hover) { .card:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, .28); } }
.card h3 { margin: 16px 0 6px; font-size: 20px; letter-spacing: -.02em; }
.cards.plain .card h3 { margin-top: 0; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.count { display: inline-block; margin-top: 14px; font-size: 12.5px; color: var(--faint); letter-spacing: .02em; }
.icon { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .14); }
.icon svg { width: 23px; height: 23px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.g-left-bg { background: var(--g-left); border-color: transparent; box-shadow: 0 8px 22px rgba(46, 230, 107, .3); }
.g-left-bg svg { stroke: #04150a; }
.g-right-bg { background: var(--g-right); border-color: transparent; box-shadow: 0 8px 22px rgba(59, 130, 255, .35); }
.fine { margin: 26px auto 0; max-width: 640px; font-size: 13.5px; color: var(--faint); }
.fine a { text-decoration-color: rgba(255, 255, 255, .4); text-underline-offset: 3px; }

/* ---------- App screenshots ---------- */
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 5vw, 64px); max-width: 960px; margin: 56px auto 0; text-align: center; }
.shot { margin: 0; }
/* Corner radius follows the iPhone screen: about 13.5% of the width, 6% of the height. The bottom fades out so each screen
   floats instead of ending in a busy tab bar. */
.shot img { display: block; width: 100%; height: auto; border-radius: 13.5% / 6.2%; border: 1px solid rgba(255, 255, 255, .2); box-shadow: 0 28px 70px rgba(0, 0, 0, .55); background: #000;
  -webkit-mask-image: linear-gradient(#000 64%, transparent 93%); mask-image: linear-gradient(#000 64%, transparent 93%); }
.shot figcaption { margin-top: -34px; position: relative; }
.shot strong { display: block; font-size: 19px; letter-spacing: -.015em; }
.shot span { display: block; margin: 6px auto 0; max-width: 24ch; color: var(--muted); font-size: 15px; line-height: 1.4; }

/* ---------- Signup ---------- */
.signup { padding-bottom: 110px; }
.signup-card { max-width: 660px; margin: 0 auto; padding: 48px 34px; border-radius: 40px; }
.signup-card h2 { max-width: none; }
#waitlist { margin-top: 28px; position: relative; }
.field { display: flex; gap: 8px; padding: 7px; border-radius: 999px; transition: box-shadow .25s; }
.field:focus-within { box-shadow: inset 0 1px 2px rgba(0, 0, 0, .5), 0 0 0 3px rgba(198, 255, 61, .4); }
.field input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: #fff; font: inherit; font-size: 17px; padding: 11px 16px; }
.field input::placeholder { color: rgba(245, 245, 247, .4); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.status { min-height: 1.5em; margin: 14px 0 0; font-size: 15px; color: var(--muted); }
.status.ok { color: var(--lime); }
.status.err { color: #ff9a9a; }
.signup-card .fine { margin-top: 8px; }

/* ---------- Footer ---------- */
.foot { text-align: center; padding: 30px 20px 60px; color: var(--faint); font-size: 13.5px; }
.foot a { color: var(--muted); }
.foot p { max-width: 560px; margin: 12px auto 0; font-size: 12.5px; }
.sep { margin: 0 8px; }

/* ---------- Privacy page ---------- */
.doc { max-width: 720px; margin: 0 auto; padding: 130px 22px 60px; }
.doc h1 { font-size: clamp(34px, 6vw, 52px); max-width: none; margin: 0 0 8px; text-align: left; }
.doc h2 { font-size: 22px; letter-spacing: -.02em; margin: 34px 0 8px; }
.doc p, .doc li { color: var(--muted); font-size: 17px; }
.doc ul { padding-left: 22px; }
.doc a { color: #fff; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .45); }
.doc a:hover { text-decoration-color: #fff; }
.doc .updated { color: var(--faint); font-size: 14px; }
.todo { background: rgba(255, 214, 10, .16); color: #ffe27a; padding: 1px 6px; border-radius: 6px; }

/* ---------- Reveal on scroll ---------- */
@media (scripting: enabled) {
  .reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  .reveal.in { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .cards.six { grid-template-columns: repeat(2, 1fr); }
  /* Screenshots become a swipeable row. */
  .shots { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; max-width: none; margin: 40px -20px 0; padding: 4px 20px 12px; scroll-padding: 0 20px; scrollbar-width: none; text-align: left; }
  .shots::-webkit-scrollbar { display: none; }
  .shot { flex: 0 0 min(72vw, 300px); scroll-snap-align: start; }
  .shot span { margin-left: 0; }
  .cards.four { grid-template-columns: repeat(2, 1fr); }
  .cards.five { grid-template-columns: repeat(2, 1fr); }
  .cards.five .card, .cards.five .card:nth-child(4), .cards.five .card:nth-child(5) { grid-column: auto; }
  .cards.five .card:nth-child(5) { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .nav nav { display: none; }
  .hero { padding-top: 104px; }
  .cards.three, .cards.four, .cards.five, .cards.six { grid-template-columns: 1fr; }
  .cards.five .card:nth-child(5) { grid-column: auto; }
  .block { padding: 60px 18px; }
  .shots { margin-left: -18px; margin-right: -18px; padding-left: 18px; padding-right: 18px; scroll-padding: 0 18px; }
  .panel { padding: 24px 22px; border-radius: 28px; }
  .signup-card { padding: 36px 20px; border-radius: 32px; }
  .field { flex-direction: column; border-radius: 28px; padding: 8px; }
  .field input { text-align: center; padding: 14px; }
}

/* ---------- Accessibility preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
@media (prefers-contrast: more) {
  .glass { background: rgba(18, 18, 22, .97); border-color: rgba(255, 255, 255, .6); }
  .muted, .lede, .sub, .card p, .features span { color: #fff; }
}
