/* blubirdiq.com. One full-screen colour per page, 30 clip-path shards that
   re-form into the next page's object. Palette from brand/logo/README.md:
   sky #3AA8EC, blue #1572C8, navy #0B3F9A, ink #18242F. */

:root {
  --bg: #0B2F6E;
  --ink: #F6F8FA;
  --ink-soft: rgba(246, 248, 250, .76);
  --line: rgba(246, 248, 250, .2);
  --field: rgba(255, 255, 255, .09);
  --sky: #3AA8EC;
  --blue: #1572C8;
  --navy: #0B3F9A;
  --amber: #F2A33A;
  --red: #D9472B;
  --paper: #F6F8FA;
  --text: #18242F;
  --text-muted: #5B6773;
  --rule: #DCE4EC;
  --ease-shard: cubic-bezier(.62, .02, .34, 1);
  --dur-shard: 1.24s;
  --delay-shard: .5s;
  --dur-bg: .5s;
  --font: "Figtree", "Avenir Next", "Avenir", system-ui, -apple-system, "Segoe UI", sans-serif;
}
/* light pages carry dark ink; home, how and contact are the dark ones */
html:not([data-page="home"]):not([data-page="how"]):not([data-page="contact"]) {
  --ink: #18242F;
  --ink-soft: rgba(24, 36, 47, .74);
  --line: rgba(24, 36, 47, .18);
  --field: rgba(255, 255, 255, .7);
}

*, *::before, *::after { box-sizing: border-box; }
html { height: 100%; }
body {
  margin: 0; min-height: 100%;
  font: 400 16px/1.5 var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html.pieces-js body { transition: background-color var(--dur-bg) ease, color var(--dur-bg) ease; }
a { color: inherit; }
::selection { background: var(--sky); color: #fff; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); color: var(--text); padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }

/* ── nav ── */
.pnav {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px clamp(20px, 4vw, 40px);
  font-size: 13px; font-weight: 500; letter-spacing: .02em;
}
.pmark { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.pmark svg { width: 34px; height: 27px; }
.pword { font-weight: 800; font-size: 19px; letter-spacing: -.03em; line-height: 1; }
.pword sup { font-size: .62em; font-weight: 800; letter-spacing: 0; vertical-align: .55em; margin-left: 1px; color: var(--sky); }
html[data-page="how"] .pword sup { color: #fff; }
.plinks { display: flex; gap: clamp(12px, 2vw, 26px); }
.plinks a { text-decoration: none; opacity: .72; padding: 6px 0; border-bottom: 1px solid transparent; transition: opacity .2s, border-color .2s; white-space: nowrap; }
.plinks a:hover, .plinks a:focus-visible { opacity: 1; }
.plinks a[aria-current="page"] { opacity: 1; border-bottom-color: currentColor; }
.pcontact { opacity: 1 !important; padding: 7px 14px !important; border: 1px solid var(--line) !important; border-radius: 999px; }
.pcontact[aria-current="page"] { background: var(--ink); color: var(--bg); }
.pcount { font-variant-numeric: tabular-nums; opacity: .72; }

/* ── stage ── */
.pstage {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; align-items: center; justify-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(16px, 4vw, 56px);
  padding: 92px clamp(20px, 7vw, 120px) 72px;
}
.pglow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 55% at 32% 46%, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 70%);
}

.pieces {
  --size: min(58vh, 44vw, 560px);
  position: relative; display: block; width: var(--size); height: var(--size);
  text-decoration: none; cursor: pointer; outline-offset: 12px;
  transform: translateZ(0);
}
.pieces i { position: absolute; inset: 0; display: block; will-change: clip-path; }
html.pieces-js .pieces i {
  transition: clip-path var(--dur-shard) var(--ease-shard) var(--delay-shard),
              background-color .4s ease var(--delay-shard);
}
/* home: the pieces snap back into the bird, faster and more decisive */
html.pieces-js[data-page="home"] .pieces i {
  transition-duration: .9s, .4s;
  transition-timing-function: cubic-bezier(.8, 0, .12, 1), ease;
}
.pshadow {
  position: absolute; left: 20%; right: 20%; top: 91%; height: 6%;
  border-radius: 50%; background: rgba(0, 0, 0, .28); filter: blur(14px);
  z-index: 0; transition: opacity .4s;
}
html.pieces-js .pieces.is-flying .pshadow { opacity: .35; }

/* ── copy ── */
.pcopy { max-width: 540px; width: 100%; justify-self: start; }
.pkicker { margin: 0 0 14px; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; opacity: .7; }
.pcopy h1 { margin: 0 0 18px; font-size: clamp(30px, 4.2vw, 54px); line-height: 1.04; letter-spacing: -.03em; font-weight: 800; }
.plede { margin: 0 0 18px; font-size: clamp(15px, 1.25vw, 18px); line-height: 1.55; color: var(--ink-soft); }
.pfrom { margin: 0 0 24px; font-size: 14px; font-weight: 600; letter-spacing: .01em; }
.pctas { display: flex; flex-wrap: wrap; gap: 12px; }
.pbtn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px; border: 1px solid transparent;
  font: 600 14px/1 var(--font); letter-spacing: .01em; cursor: pointer; text-decoration: none;
  background: var(--ink); color: var(--bg);
  transition: transform .18s ease, background-color .3s, color .3s, border-color .3s;
}
.pbtn:hover { transform: translateY(-1px); }
.pbtn:disabled { opacity: .6; cursor: default; transform: none; }
.pbtn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.pbtn-ghost:hover { border-color: currentColor; }

html.pieces-js [data-copy] { transition: opacity .32s ease, transform .32s ease; }
html.pieces-js [data-copy].is-out { opacity: 0; transform: translateY(10px); }

.phint { position: absolute; left: 0; right: 0; bottom: 22px; margin: 0; text-align: center; font-size: 12px; letter-spacing: .04em; opacity: .55; }

.parrow {
  position: absolute; top: 50%; width: 44px; height: 44px; margin-top: -22px;
  display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line);
  opacity: .7; transition: opacity .2s, border-color .2s, transform .2s;
}
.parrow:hover { opacity: 1; border-color: currentColor; }
.parrow span { width: 9px; height: 9px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; }
.parrow-prev { left: clamp(12px, 2vw, 32px); } .parrow-prev span { transform: translateX(2px) rotate(135deg); }
.parrow-next { right: clamp(12px, 2vw, 32px); } .parrow-next span { transform: translateX(-2px) rotate(-45deg); }

/* ── contact form, inline in the copy column ── */
.pform { margin-top: 6px; }
.pf-row { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.pf-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pf-row label { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .8; }
.pf-row label span { font-weight: 400; text-transform: none; letter-spacing: 0; opacity: .7; }
.pf-row input, .pf-row textarea, .pf-row select {
  width: 100%; padding: 11px 13px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--field); color: var(--ink);
  font: 400 15px/1.4 var(--font); outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.pf-row select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.pf-row select option { color: var(--text); }
.pf-row input:focus, .pf-row textarea:focus, .pf-row select:focus { border-color: currentColor; box-shadow: 0 0 0 3px rgba(58, 168, 236, .25); }
.pf-row input.invalid, .pf-row textarea.invalid { border-color: var(--amber); }
.pf-row textarea { resize: vertical; min-height: 84px; }
.pf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pform .pctas { margin-top: 4px; }
.pform-note { margin: 12px 0 0; font-size: 13px; color: var(--ink-soft); }
.pform-note.err { color: var(--amber); }
.pform-done h3 { margin: 12px 0 8px; font-size: 22px; letter-spacing: -.02em; }
.pform-done p { margin: 0; color: var(--ink-soft); }

/* ── detail panel ── */
.ppanel { position: fixed; inset: 0; z-index: 40; display: grid; place-items: end stretch; }
.ppanel[hidden] { display: none; }
.ppanel-scrim { position: absolute; inset: 0; background: rgba(11, 25, 46, .42); }
.ppanel-card {
  position: relative; max-height: 88vh; max-height: 88svh; overflow: auto;
  background: var(--paper); color: var(--text);
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, .25);
  animation: ppanel-up .42s cubic-bezier(.22, .61, .36, 1);
}
@keyframes ppanel-up { from { transform: translateY(28px); opacity: 0; } }
.ppanel-head {
  position: sticky; top: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px clamp(20px, 5vw, 64px) 14px; background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.ppanel-head h2 { margin: 0; font-size: 22px; letter-spacing: -.02em; font-weight: 800; }
.pclose { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--rule); background: #fff; font-size: 22px; line-height: 1; cursor: pointer; color: var(--text); }
.ppanel-body { padding: 22px clamp(20px, 5vw, 64px) 40px; max-width: 1220px; margin: 0 auto; }
.ppanel-body a { color: var(--blue); }
.ppanel-lede { margin: 0 0 22px; font-size: 17px; line-height: 1.55; max-width: 760px; }
.ppanel-lede b { color: var(--navy); }
.pgroup + .pgroup { margin-top: 30px; }
.pgroup h3 { margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); }
.pgroup-lede { margin: 0 0 14px; font-size: 14px; color: var(--text-muted); max-width: 720px; }
.ptiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.pt { background: #fff; border: 1px solid var(--rule); border-radius: 16px; padding: 18px 18px 16px; }
.pt-pick { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue) inset; }
.pt-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.pt-top b { font-size: 17px; letter-spacing: -.01em; }
.pt-chip { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--navy); background: #E1EFFA; padding: 4px 8px; border-radius: 999px; white-space: nowrap; }
.pt-chip-soon { color: #8A5A10; background: #FBEAD0; }
.pt-blurb { margin: 0; font-size: 14px; line-height: 1.5; }
.pcols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.pcols h3 { margin: 0 0 8px; font-size: 14px; }
.pchip { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; }
.pchip-x { color: #8A2E1C; background: #FBE3DD; }
.pchip-ok { color: var(--navy); background: #E1EFFA; }
.pticks { list-style: none; margin: 10px 0 0; padding: 0; font-size: 15px; line-height: 1.45; }
.pticks li { position: relative; padding-left: 22px; margin: 8px 0; }
.pticks li::before { content: ""; position: absolute; left: 0; top: 7px; width: 10px; height: 6px; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg); }
.pticks-no li::before { border-color: var(--red); width: 8px; height: 8px; border-left: 0; border-bottom: 2px solid var(--red); transform: none; top: 9px; }
.pstatement { margin: 28px 0 0; padding: 18px 20px; border-left: 3px solid var(--sky); background: #E1EFFA; border-radius: 0 12px 12px 0; font-size: 18px; font-weight: 600; letter-spacing: -.01em; line-height: 1.4; color: var(--navy); max-width: 760px; }
.psteps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.psteps li { counter-increment: step; background: #fff; border: 1px solid var(--rule); border-radius: 16px; padding: 18px; }
.psteps li::before { content: counter(step, decimal-leading-zero); display: block; font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--sky); margin-bottom: 8px; }
.psteps b { display: block; font-size: 16px; margin-bottom: 6px; letter-spacing: -.01em; }
.psteps p { margin: 0; font-size: 14px; line-height: 1.5; }
.pnote { margin: 22px 0 0; font-size: 13px; line-height: 1.55; color: var(--text-muted); }
.pnote strong, .pnote b { color: var(--text); }
.pnote-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 28px; }
.pnote-cta .pbtn { background: var(--blue); color: #fff; }
body.panel-open { overflow: hidden; }

/* faq (contact) */
.pfaq details { border-top: 1px solid var(--rule); padding: 4px 0; }
.pfaq details:last-child { border-bottom: 1px solid var(--rule); }
.pfaq summary { cursor: pointer; padding: 12px 0; font-weight: 600; font-size: 16px; list-style: none; position: relative; padding-right: 30px; }
.pfaq summary::-webkit-details-marker { display: none; }
.pfaq summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font-size: 20px; color: var(--text-muted); }
.pfaq details[open] summary::after { content: "–"; }
.pfaq p { margin: 0 0 14px; font-size: 14px; line-height: 1.6; max-width: 760px; }

/* ── small screens: stack, art above copy ── */
@media (max-width: 860px) {
  .pstage { grid-template-columns: 1fr; padding: 84px 20px 64px; gap: 20px; }
  .pieces { --size: min(40vh, 74vw); }
  .pcopy { justify-self: stretch; }
  .parrow { display: none; }
  .plinks a:not(.pcontact) { display: none; }
  .pcount { display: none; }
  .pf-two { grid-template-columns: 1fr; gap: 0; }
  .phint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html.pieces-js body, html.pieces-js .pieces i, html.pieces-js [data-copy] { transition: none; }
  .ppanel-card { animation: none; }
}

/* ── legal pages (/privacy, /terms): plain documents in the panel typography ── */
.plegal-body { background: var(--paper); color: var(--text); }
.pdraft { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 8px 16px; text-align: center; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #8A5A10; background: #FBEAD0; border-top: 1px solid #F2D7A6; }
.plegal { max-width: 760px; margin: 0 auto; padding: 118px clamp(20px, 5vw, 40px) 72px; }
.plegal h1 { margin: 0 0 6px; font-size: clamp(30px, 4vw, 44px); line-height: 1.06; letter-spacing: -.03em; font-weight: 800; }
.plegal-date { margin: 0 0 22px; font-size: 13px; color: var(--text-muted); }
.plegal .plede { color: var(--text); font-size: 17px; margin-bottom: 8px; }
.plegal h2 { margin: 34px 0 10px; font-size: 20px; letter-spacing: -.015em; font-weight: 800; }
.plegal p { margin: 0 0 14px; font-size: 16px; line-height: 1.6; }
.plegal a { color: var(--blue); }
.pfoot { max-width: 760px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 40px) 64px; font-size: 13px; color: var(--text-muted); }
.pfoot nav { display: flex; flex-wrap: wrap; gap: 18px; border-top: 1px solid var(--rule); padding-top: 18px; margin-bottom: 8px; }
.pfoot a { color: var(--text); text-decoration: none; }
.pfoot a:hover, .pfoot a[aria-current="page"] { text-decoration: underline; }
.pfoot p { margin: 0; }
.plegal-links { display: inline-flex; gap: 12px; margin-left: auto; font-size: 13px; }
.plegal-links a { color: var(--text-muted); }
.pform-note a { color: inherit; }
