/* ==========================================================================
   PIQ homepage concepts: shared foundation.
   Brand tokens from piq-ios/design/piq-brand (BRAND.md): black and white do the
   work, Sky is a sparing accent, green and red only for gains and losses.
   Each concept page layers its own look on top of this file.
   ========================================================================== */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("Manrope.woff2") format("woff2");
}

:root {
  --black: #0B0B0C;
  --white: #FFFFFF;
  --cloud: #F8F8F9;
  --line: #EDEDEF;
  --text-2: #6B6B72;
  --grey: #8A8A90;
  --graphite: #3A3A3F;
  --sky: #8EC3FF;
  --sky-500: #3570D0;
  --sky-50: #EFF7FF;
  --gain: #12A150;
  --loss: #E5484D;
  --font: "Manrope", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(.32, .72, 0, 1);
  --gutter: clamp(20px, 5vw, 64px);
  --page: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
h1, h2, h3, h4, p, figure, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
img, svg, canvas { display: block; }
h1, h2, h3 { text-wrap: balance; }
.num { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.i { width: 20px; height: 20px; flex: none; }
:focus-visible { outline: 2px solid var(--sky-500); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--black); color: #fff; font-weight: 700; }
.skip:focus { top: 12px; }

/* The logo: always the official SVG, never typed. */
.lockup { display: block; height: 28px; width: auto; aspect-ratio: 272.2 / 115.3; color: currentColor; }
.mark { display: block; width: 24px; height: 24px; color: currentColor; }

/* Status: the same three words the live site uses. */
.status { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .01em; white-space: nowrap; vertical-align: middle; }
.status.beta { background: var(--black); color: #fff; }
.status.next { background: var(--cloud); color: var(--text-2); box-shadow: inset 0 0 0 1px var(--line); }
.status.vision { background: transparent; color: var(--text-2); box-shadow: inset 0 0 0 1px var(--line); }
.on-dark .status.beta { background: #fff; color: var(--black); }
.on-dark .status.next { background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .78); box-shadow: none; }
.on-dark .status.vision { color: rgba(255, 255, 255, .7); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }

/* Routes: what works today is solid; what is on the way is dashed. No pills. */
.rt-chip.rt-later { background: transparent !important; box-shadow: none !important; outline: 1.5px dashed color-mix(in srgb, currentColor 26%, transparent); outline-offset: -1.5px; }
.rt-chip.rt-later[aria-pressed="true"] { outline-color: currentColor; }
.rt-when { color: color-mix(in srgb, currentColor 55%, transparent); font-weight: 500; }
.rt-key { display: flex; justify-content: center; gap: 22px; margin-top: 14px; font-size: 13.5px; font-weight: 600; opacity: .7; }
.rt-key span { display: inline-flex; align-items: center; gap: 8px; }
.rt-key i { width: 22px; height: 12px; border-radius: 6px; }
.rt-key i.solid { background: currentColor; opacity: .5; }
.rt-key i.dashed { outline: 1.5px dashed currentColor; outline-offset: -1.5px; opacity: .6; }

/* ---------- The receipt: how much, who, and did it work ---------- */
.receipt { width: 100%; max-width: 380px; border-radius: 26px; padding: 26px; background: #fff; color: var(--black); box-shadow: 0 0 0 1px var(--line); }
.receipt .sent { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 999px; background: var(--cloud); font-weight: 700; font-size: 14px; }
.receipt .sent .i { width: 15px; height: 15px; stroke-width: 2.4; }
.receipt .amt { font-size: 52px; font-weight: 600; letter-spacing: -.04em; line-height: 1; margin: 18px 0 16px; }
.receipt .amt small { font-size: .5em; }
.receipt dl > div, .receipt .more-in > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 15px; }
.receipt dt, .receipt .more-in span { color: var(--text-2); font-weight: 600; }
.receipt dd, .receipt .more-in b { font-weight: 700; text-align: right; }
.receipt .ok { color: var(--gain); }
.receipt .more { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 44px; margin-top: 14px; border-radius: 999px; background: var(--cloud); font-weight: 700; font-size: 15px; }
.receipt .more .i { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.receipt[data-open="true"] .more .i { transform: rotate(180deg); }
.receipt .more-wrap { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.receipt[data-open="true"] .more-wrap { grid-template-rows: 1fr; }
.receipt .more-wrap > div { overflow: hidden; min-height: 0; }
.receipt .more-in { padding-top: 10px; }
.receipt .more-in b { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13.5px; font-weight: 500; }
.receipt .more-in b.txt { font-family: var(--font); color: var(--sky-500); font-size: 15px; font-weight: 700; }

/* ---------- Join: confirms on this device only, like the live site ---------- */
.join form { display: flex; gap: 8px; width: 100%; max-width: 460px; }
.join input { flex: 1; min-width: 0; height: 54px; padding: 0 20px; border-radius: 999px; border: 0; outline: 0; font-size: 16px; font-weight: 500; }
.join .done { display: none; align-items: center; gap: 8px; font-weight: 700; }
.join .done .i { width: 18px; height: 18px; stroke-width: 2.4; }
.join[data-state="done"] form { display: none; }
.join[data-state="done"] .done { display: inline-flex; }

/* ---------- Toast for links that point to pages not redesigned yet ---------- */
.piq-toast { position: fixed; left: 50%; bottom: 24px; z-index: 200; transform: translate(-50%, 20px); opacity: 0; padding: 12px 18px; border-radius: 999px; background: var(--black); color: #fff; font-weight: 700; font-size: 14px; white-space: nowrap; pointer-events: none; transition: opacity .3s, transform .45s var(--ease); box-shadow: 0 12px 30px rgba(0, 0, 0, .2); }
.piq-toast.show { opacity: 1; transform: translate(-50%, 0); }

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

/* ---------- A real iPhone: the app's own screens in an iPhone 17 Pro-proportioned frame ----------
   Screen 402 × 874 pt. A thin black border, a brushed titanium band with its side buttons, the Dynamic Island
   and the status bar drawn over the real render. Everything scales with --dw (the device's width). */
.device { --dw: 320px; position: relative; width: var(--dw); aspect-ratio: 436 / 908; flex: none; margin: 0; filter: drop-shadow(0 calc(var(--dw) * .09) calc(var(--dw) * .1) rgba(15, 25, 45, .22)) drop-shadow(0 calc(var(--dw) * .015) calc(var(--dw) * .02) rgba(15, 25, 45, .18)); }
.device .dv-band { position: absolute; inset: 0; border-radius: calc(var(--dw) * .175); background:
    linear-gradient(90deg, #7c7f86 0%, #d9dbdf 3.5%, #9a9da3 7%, #babdc2 50%, #9a9da3 93%, #d9dbdf 96.5%, #7c7f86 100%); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .35), inset 0 2px 1px rgba(255, 255, 255, .55), inset 0 -2px 1px rgba(0, 0, 0, .25); }
.device .dv-bezel { position: absolute; inset: calc(var(--dw) * .012); border-radius: calc(var(--dw) * .163); background: #050505; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.device .dv-glass { position: absolute; inset: calc(var(--dw) * .036); border-radius: calc(var(--dw) * .14); overflow: hidden; background: #fff; isolation: isolate; }
.device .dv-glass img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transition: opacity .45s var(--ease); }
.device .dv-glass img.on { opacity: 1; }
.device .dv-glass::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(118deg, rgba(255, 255, 255, .14) 0%, rgba(255, 255, 255, 0) 32%); mix-blend-mode: screen; }
.device .dv-island { position: absolute; z-index: 3; top: calc(var(--dw) * .058); left: 50%; width: calc(var(--dw) * .29); height: calc(var(--dw) * .085); transform: translateX(-50%); border-radius: 999px; background: #000; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04); }
.device .dv-island::after { content: ""; position: absolute; right: 18%; top: 50%; width: calc(var(--dw) * .024); height: calc(var(--dw) * .024); transform: translateY(-50%); border-radius: 50%; background: radial-gradient(circle at 40% 40%, #2b3550, #0a0c12 70%); }
.device .dv-status { position: absolute; z-index: 2; top: calc(var(--dw) * .062); left: calc(var(--dw) * .1); right: calc(var(--dw) * .1); height: calc(var(--dw) * .075); display: flex; align-items: center; justify-content: space-between; color: #000; font: 600 calc(var(--dw) * .04)/1 -apple-system, "SF Pro Text", "Manrope", system-ui, sans-serif; letter-spacing: -.01em; pointer-events: none; }
.device .dv-status time { padding-left: calc(var(--dw) * .03); }
.device .dv-status svg { height: calc(var(--dw) * .03); width: auto; fill: currentColor; }
.device .dv-status span { display: flex; gap: calc(var(--dw) * .014); align-items: center; padding-right: calc(var(--dw) * .01); }
.device .dv-btn { position: absolute; width: calc(var(--dw) * .011); border-radius: 2px; background: linear-gradient(90deg, #6f7278, #c9cbd0 50%, #8a8d93); }
.device .dv-btn.action { left: calc(var(--dw) * -.008); top: 18%; height: 4.4%; }
.device .dv-btn.vol-up { left: calc(var(--dw) * -.008); top: 25.5%; height: 7.6%; }
.device .dv-btn.vol-down { left: calc(var(--dw) * -.008); top: 35%; height: 7.6%; }
.device .dv-btn.side { right: calc(var(--dw) * -.008); top: 28%; height: 11%; }
.device .dv-btn.cam { right: calc(var(--dw) * -.006); top: 58%; height: 6%; }
.device.cropped { aspect-ratio: auto; }
