/* Stitch: the Pocketrate design system (mock). Tokens first, then the few shared pieces. */
:root {
  /* Paper and ink */
  --paper: #FBF7F0;
  --paper-2: #F4EEE3;
  --surface: #FFFFFF;
  --line: #ECE5D9;
  --ink: #1B1433;
  --ink-2: #4A4263;
  --muted: #736C88;

  /* Iris is the brand colour; gold is the coin. */
  --iris: #5B4BFF;
  --iris-deep: #4335E0;
  --iris-ink: #24197A;
  --iris-soft: #E9E6FF;
  --iris-wash: #F4F2FF;
  --gold: #FFC83D;
  --gold-deep: #B87400;
  --gold-soft: #FFF1C9;
  --thread: #FFF6E2;

  /* Rate movement */
  --up: #0B7A54;
  --up-bg: #DDF5EA;
  --down: #C2362F;
  --down-bg: #FDE7E4;

  /* Currency patches */
  --p-mint: #3DDBB0;
  --p-pink: #FF8FB1;
  --p-orange: #FF9A4D;
  --p-lime: #B6E35A;
  --p-sky: #7CC4FF;
  --p-gold: #FFC83D;
  --p-lilac: #B9B0FF;

  --font-display: "Gabarito", "Avenir Next", system-ui, sans-serif;
  --font-ui: "Figtree", -apple-system, system-ui, sans-serif;

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 34px;

  --shadow-1: 0 1px 0 rgba(27, 20, 51, .04), 0 10px 24px -14px rgba(27, 20, 51, .22);
  --shadow-2: 0 2px 0 rgba(27, 20, 51, .04), 0 24px 48px -20px rgba(27, 20, 51, .32);
  --shadow-iris: 0 18px 36px -18px rgba(67, 53, 224, .7);

  /* Motion: one spring for things that move, one ease for things that fade. */
  --spring: linear(0, .009, .035 2.1%, .141 4.4%, .723 12.9%, .938 16.7%, 1.017 19.4%, 1.077 22.5%, 1.104 25.7%, 1.106 29%, 1.089 32.8%, 1.021 44.4%, 1 51.2%, .993 58.5%, 1);
  --spring-soft: linear(0, .03 2%, .23 7%, .62 15%, .87 22%, 1.01 30%, 1.05 38%, 1.03 50%, 1 65%, 1);
  --ease: cubic-bezier(.22, .8, .24, 1);
  --t-fast: 160ms;
  --t-med: 320ms;
  --t-slow: 620ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-ui); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; letter-spacing: -.02em; line-height: 1.05; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--iris); outline-offset: 3px; border-radius: 8px; }
.num { font-family: var(--font-display); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }

/* The stitch: a dashed thread line. It is the one decoration the system allows itself. */
.stitch { position: relative; }
.stitch::after { content: ""; position: absolute; inset: 7px; border-radius: inherit; border: 2px dashed color-mix(in srgb, var(--thread) 55%, transparent); border-radius: calc(var(--stitch-r, 26px) - 7px); pointer-events: none; }
.stitch-line { height: 2px; background-image: linear-gradient(90deg, currentColor 0 55%, transparent 55%); background-size: 11px 2px; border-radius: 2px; opacity: .5; }

/* Currency patch: a small sewn label with the symbol. */
.patch { --c: var(--p-gold); position: relative; flex: none; width: 44px; height: 44px; border-radius: 14px; background: var(--c); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 19px; color: var(--ink); }
.patch::after { content: ""; position: absolute; inset: 4px; border-radius: 10px; border: 1.500px dashed rgba(27, 20, 51, .32); }
.patch.sm { width: 34px; height: 34px; border-radius: 11px; font-size: 15px; }
.patch.sm::after { inset: 3px; border-radius: 8px; }

/* Movement chip */
.chip { display: inline-flex; align-items: center; gap: 3px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.chip.up { background: var(--up-bg); color: var(--up); }
.chip.down { background: var(--down-bg); color: var(--down); }
.chip svg { width: 10px; height: 10px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px; border-radius: 999px; font-family: var(--font-display); font-weight: 700; font-size: 17px; text-decoration: none; transition: transform var(--t-med) var(--spring), box-shadow var(--t-med) var(--ease), background var(--t-fast); }
.btn:active { transform: scale(.96); }
.btn.primary { background: var(--iris); color: #fff; box-shadow: var(--shadow-iris); }
.btn.primary:hover { background: var(--iris-deep); }
.btn.gold { background: var(--gold); color: var(--ink); }
.btn.ghost { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1.500px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1.500px var(--ink); }

/* Pip's idle life. Every animation stops under reduced motion. */
.pip { overflow: visible; }
.pip .pip-eyes, .pip .pip-coin, .pip .pip-body, .pip .pip-spark, .pip .pip-zzz, .pip .pip-drop, .pip .pip-dots circle { transform-box: fill-box; transform-origin: center; }
.pip .pip-coin { transform: translateY(var(--coin-y, 0)); transition: transform var(--t-slow) var(--spring); animation: pip-coin 3.6s ease-in-out infinite; }
.pip .pip-eyes { animation: pip-blink 5.2s infinite; }
.pip .pip-body { transform-origin: 50% 100%; animation: pip-breathe 3.6s ease-in-out infinite; }
.pip .pip-spark { animation: pip-spark 1.8s ease-in-out infinite; }
.pip .pip-spark:nth-of-type(2) { animation-delay: .4s; }
.pip .pip-spark:nth-of-type(3) { animation-delay: .9s; }
.pip .pip-zzz { animation: pip-zzz 2.8s ease-in-out infinite; }
.pip .pip-drop { animation: pip-drop 1.9s ease-in infinite; }
.pip .pip-dots circle { animation: pip-dots 1.2s ease-in-out infinite; }
.pip .pip-dots circle:nth-child(2) { animation-delay: .15s; }
.pip .pip-dots circle:nth-child(3) { animation-delay: .3s; }
.pip[data-mood="sleep"] .pip-eyes, .pip[data-mood="joy"] .pip-eyes { animation: none; }
.pip[data-mood="sleep"] .pip-body { animation-duration: 5.5s; }
.pip-still * { animation: none !important; }
@keyframes pip-blink { 0%, 46%, 50%, 100% { transform: scaleY(1); } 48% { transform: scaleY(.1); } }
@keyframes pip-coin { 0%, 100% { translate: 0 0; } 50% { translate: 0 -3px; } }
@keyframes pip-breathe { 0%, 100% { scale: 1 1; } 50% { scale: 1.015 .985; } }
@keyframes pip-spark { 0%, 100% { scale: .5; opacity: .3; } 50% { scale: 1; opacity: 1; } }
@keyframes pip-zzz { 0% { translate: 0 4px; opacity: 0; } 40% { opacity: 1; } 100% { translate: 4px -6px; opacity: 0; } }
@keyframes pip-drop { 0% { translate: 0 -3px; opacity: 0; } 30% { opacity: 1; } 100% { translate: 0 9px; opacity: 0; } }
@keyframes pip-dots { 0%, 100% { translate: 0 0; opacity: .4; } 50% { translate: 0 -3px; opacity: 1; } }
/* A hop, for when something good happens. Add .pip-hop to the element that wraps Pip. */
.pip-hop { animation: pip-hop 620ms var(--spring-soft); }
@keyframes pip-hop { 0% { transform: translateY(0) scale(1); } 30% { transform: translateY(-14%) scale(1.04, .96); } 60% { transform: translateY(0) scale(.97, 1.03); } 100% { transform: translateY(0) scale(1); } }

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

/* Pocketrate marketing page, Stitch design language.
   Tokens, .btn, .patch, .chip, .stitch and Pip come from stitch.css. This file only adds the page. */

:root {
  --maxw: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --sec-y: clamp(72px, 10vw, 128px);
  --nav-h: 68px;
  --cream: var(--thread);
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
html, body { overflow-x: clip; }
.wrap { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: 12px; z-index: 100; padding: 12px 18px; border-radius: 14px; background: var(--ink); color: #fff; font-weight: 700; text-decoration: none; transform: translateY(-160%); transition: transform var(--t-med) var(--spring); }
.skip:focus { transform: none; }
.ic { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.chip .ic { stroke-width: 3.500; }

/* Pip and logo-mark slots reserve their size before pip.js fills them. */
[data-pip], [data-pip-mark] { display: inline-block; width: var(--ps, 64px); height: var(--ps, 64px); flex: none; line-height: 0; vertical-align: top; }
[data-pip] svg, [data-pip-mark] svg { width: 100%; height: 100%; display: block; }

/* Patch colours and small-glyph sizes */
.c-lime { --c: var(--p-lime); } .c-mint { --c: var(--p-mint); } .c-pink { --c: var(--p-pink); } .c-orange { --c: var(--p-orange); }
.c-sky { --c: var(--p-sky); } .c-gold { --c: var(--p-gold); } .c-lilac { --c: var(--p-lilac); }
.patch.t2 { font-size: 12.500px; } .patch.t3 { font-size: 10.500px; }

/* Entrance used by scroll reveals. Only active when JS added .js, so no-JS pages stay readable. */
.js .rv:not(.in) { opacity: 0; }
.rv.in { animation: rv-in 700ms var(--spring-soft) calc(var(--d, 0) * 70ms) backwards; }
@keyframes rv-in { from { opacity: 0; transform: translateY(20px); } }

/* Section scaffolding */
.sec { padding-block: var(--sec-y); content-visibility: auto; contain-intrinsic-size: auto 760px; }
.sec-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head h2, .pip-copy h2, .cta-card h2 { font-size: clamp(2rem, 1.1rem + 3.6vw, 3.5rem); letter-spacing: -.03em; line-height: 1; }
.sec-lead { margin-top: 16px; font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); color: var(--ink-2); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--iris-deep); }
.eyebrow::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background-image: linear-gradient(90deg, currentColor 0 55%, transparent 55%); background-size: 8px 2px; }
.eyebrow.on-dark { color: var(--cream); }

/* Buttons: page additions */
.btn { white-space: nowrap; }
.btn.sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn .ic { width: 20px; height: 20px; stroke-width: 2.600; transition: transform var(--t-med) var(--spring); }
.btn.primary:hover .ic { transform: translateX(4px); }
.btn.primary:focus-visible { outline-color: var(--ink); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-row.center { justify-content: center; }

/* ---------- Nav ---------- */
.site-h { position: sticky; top: 0; z-index: 50; height: var(--nav-h); }
.site-h::before { content: ""; position: absolute; inset: 0; background: color-mix(in srgb, var(--paper) 84%, transparent); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); box-shadow: 0 1px 0 var(--line); opacity: 0; transition: opacity var(--t-med) var(--ease); pointer-events: none; }
.site-h.scrolled::before { opacity: 1; }
.nav { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; font-family: var(--font-display); font-weight: 800; font-size: 23px; letter-spacing: -.03em; text-decoration: none; }
.brand em { font-style: normal; color: var(--iris); }
/* The app header's logo: full Pip, pulled in so its empty corners do not push the wordmark away. */
.brand-pip { margin: -5px -4px -1px -6px; }
.nav-main { margin-inline: auto; }
.nav-links { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--ink-2); text-decoration: none; transition: background var(--t-fast), color var(--t-fast); }
.nav-links a:hover { background: var(--paper-2); color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 15px; background: var(--surface); box-shadow: var(--shadow-1); place-items: center; transition: transform var(--t-med) var(--spring); }
.menu-btn:active { transform: scale(.92); }
.menu-btn .ic { width: 22px; height: 22px; grid-area: 1 / 1; transition: transform var(--t-med) var(--spring), opacity var(--t-fast); }
.menu-btn .ic-close { opacity: 0; transform: rotate(-60deg) scale(.6); }
.menu-btn[aria-expanded="true"] .ic-menu { opacity: 0; transform: rotate(60deg) scale(.6); }
.menu-btn[aria-expanded="true"] .ic-close { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .js .menu-btn { display: grid; }
  .js .nav-main { position: absolute; top: calc(100% + 2px); left: var(--gutter); right: var(--gutter); margin: 0; padding: 8px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-2); visibility: hidden; opacity: 0; transform: translateY(-10px) scale(.98); transform-origin: top right; transition: opacity var(--t-fast) var(--ease), transform var(--t-med) var(--spring), visibility 0s var(--t-fast); }
  .js .nav-main.open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .js .nav-links { flex-direction: column; gap: 0; }
  .js .nav-links a { width: 100%; min-height: 52px; padding: 0 16px; font-size: 17px; border-radius: 16px; }
  /* Without JS the links simply wrap under the logo. */
  html:not(.js) .site-h { height: auto; position: relative; }
  html:not(.js) .nav { flex-wrap: wrap; padding-block: 8px; }
  html:not(.js) .nav-main { order: 3; width: 100%; margin: 0; }
  html:not(.js) .nav-links { flex-wrap: wrap; }
}
@media (max-width: 479px) { .nav-cta { display: none; } .js .menu-btn { margin-left: auto; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(20px, 4vw, 48px) var(--sec-y); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 10px; min-height: 38px; padding: 0 18px 0 14px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1.500px var(--line), var(--shadow-1); font-weight: 700; font-size: 14px; color: var(--ink); }
.pill i { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--p-mint); }
.pill i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--p-mint); animation: pulse 2.200s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .7; } 70%, 100% { transform: scale(3); opacity: 0; } }
.hero h1 { margin-top: 24px; font-size: clamp(2.75rem, 1rem + 5.2vw, 5.5rem); line-height: .98; letter-spacing: -.035em; }
.hero h1 .w { display: inline-block; animation: hero-in 800ms var(--spring-soft) calc(var(--e, 0) * 90ms + 60ms) backwards; }
.u { position: relative; white-space: nowrap; }
.u-svg { position: absolute; left: -2%; bottom: -.17em; width: 104%; height: .3em; overflow: visible; pointer-events: none; }
.u-line { stroke: var(--gold); stroke-dasharray: 11 9; }
.u-draw { stroke-dasharray: 1; stroke-dashoffset: 0; animation: u-draw 800ms var(--ease) 1.100s backwards; }
@keyframes u-draw { from { stroke-dashoffset: 1; } }
.lead { max-width: 33em; margin-top: 26px; font-size: clamp(1.125rem, 1.020rem + .45vw, 1.3125rem); line-height: 1.5; color: var(--ink-2); }
.hero .cta-row { margin-top: 32px; }
.fine { margin-top: 18px; font-size: 14.500px; font-weight: 600; color: var(--muted); }
.e { animation: hero-in 800ms var(--spring-soft) calc(var(--e, 0) * 90ms + 60ms) backwards; }
@keyframes hero-in { from { opacity: 0; transform: translateY(26px); } }

/* Stage: wash circle, rotating stitch ring, the phone, floating patches, the try-it field */
.stage { --s: .78; position: relative; display: grid; justify-items: center; gap: 26px; padding-block: 16px 4px; min-width: 0; }
.stage-bg { position: absolute; inset: 0; pointer-events: none; }
.wash, .ring { position: absolute; left: 50%; top: 43%; border-radius: 50%; translate: -50% -50%; aspect-ratio: 1; }
.wash { width: min(540px, 118%); background: var(--iris-soft); opacity: .75; }
.ring { width: min(640px, 134%); border: 3px dashed var(--iris); opacity: .3; animation: ring-spin 120s linear infinite; }
@keyframes ring-spin { to { rotate: 360deg; } }

.phone-rise { position: relative; animation: phone-in 1s var(--spring-soft) .35s backwards; }
@keyframes phone-in { from { opacity: 0; transform: translateY(72px) scale(.94); } }
.phone-stage { position: relative; width: calc(410px * var(--s)); }
.phone-tilt { transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 360ms var(--ease); }
.phone-wrap { position: relative; width: calc(410px * var(--s)); height: calc(864px * var(--s)); }

/* Floating patches at different depths. The outer span takes the pointer parallax, the inner patch bobs. */
.fp { position: absolute; translate: calc(var(--px, 0) * var(--k) * 1px) calc(var(--py, 0) * var(--k) * 1px); transition: translate 420ms var(--ease); pointer-events: none; }
.fp .patch { width: var(--fs); height: var(--fs); border-radius: calc(var(--fs) * .32); font-size: calc(var(--fs) * .44); box-shadow: var(--shadow-2); animation: bob 5s ease-in-out infinite; animation-delay: var(--bd, 0s); }
.fp .patch::after { inset: 5px; border-radius: calc(var(--fs) * .24); }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); } 50% { transform: translateY(-10px) rotate(calc(var(--rot, 0deg) * -1)); } }
.fp-a { --fs: 64px; --k: -26; --rot: -6deg; left: -34px; top: 20%; }
.fp-b { --fs: 52px; --k: 34; --rot: 7deg; --bd: -1.500s; right: -26px; top: 46%; }
.fp-c { --fs: 58px; --k: -42; --rot: -5deg; --bd: -3s; left: -22px; bottom: 15%; }

/* Phone: a CSS copy of the Convert screen from the prototype, drawn at 410x864 then scaled */
.phone { position: absolute; left: 0; top: 0; width: 410px; height: 864px; padding: 10px; border-radius: 62px; background: var(--ink); box-shadow: var(--shadow-2), inset 0 0 0 1px rgba(255, 255, 255, .08); transform: scale(var(--s)); transform-origin: 0 0; text-align: left; color: var(--ink); }
.ph-view { position: relative; width: 390px; height: 844px; border-radius: 52px; overflow: hidden; background: var(--paper); isolation: isolate; }
.ph-status { position: absolute; inset: 0 0 auto; z-index: 40; height: 54px; display: flex; align-items: center; justify-content: space-between; padding: 6px 34px 0; font-weight: 700; font-size: 16px; }
.ph-status::after { content: ""; position: absolute; left: 50%; top: 11px; width: 122px; height: 35px; margin-left: -61px; border-radius: 20px; background: #000; }
.ph-sb { display: flex; gap: 6px; align-items: center; }
.ph-screen { position: absolute; inset: 0; padding: 58px 16px 0; }
.ph-top { display: flex; align-items: center; justify-content: space-between; height: 48px; margin-bottom: 12px; }
.ph-word { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 800; font-size: 23px; letter-spacing: -.03em; }
.ph-word em { font-style: normal; color: var(--iris); margin-left: -6px; }
.ph-actions { display: flex; gap: 8px; align-items: center; }
.ph-ibtn { position: relative; width: 44px; height: 44px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-1); display: grid; place-items: center; }
.ph-ibtn .ic { width: 22px; height: 22px; }
.ph-ibtn i { position: absolute; top: 9px; right: 10px; width: 10px; height: 10px; border-radius: 50%; background: var(--down); box-shadow: 0 0 0 2.500px var(--surface); }
.ph-pro { height: 44px; padding: 0 14px; border-radius: 16px; background: var(--gold); display: inline-flex; align-items: center; font-family: var(--font-display); font-weight: 800; font-size: 15px; letter-spacing: .04em; }

.ph-hero { --stitch-r: 32px; position: relative; margin-top: 22px; padding: 16px 18px 14px; border-radius: 32px; color: #fff;
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .045) 0 2px, transparent 2px 7px), radial-gradient(120% 90% at 100% 0, #7466FF 0, transparent 55%), var(--iris);
  box-shadow: var(--shadow-iris); }
.ph-pip { position: absolute; right: 16px; top: -34px; z-index: 2; filter: drop-shadow(0 8px 10px rgba(27, 20, 51, .25)); }
.ph-base { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 10px 0 6px; border-radius: 17px; background: rgba(255, 255, 255, .16); }
.ph-base b { font-family: var(--font-display); font-weight: 800; font-size: 18px; }
.ph-base span:not(.patch) { font-size: 13px; opacity: .78; }
.ph-base .ic { width: 18px; height: 18px; opacity: .8; }
.ph-amount { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: flex-end; height: 112px; padding-bottom: 6px; }
.ph-expr { display: block; height: 24px; opacity: 0; font-family: var(--font-display); font-weight: 600; font-size: 17px; color: rgba(255, 255, 255, .78); font-variant-numeric: tabular-nums; transition: opacity var(--t-fast); }
.ph-expr.on { opacity: 1; }
.ph-big { display: flex; align-items: baseline; font-family: var(--font-display); font-weight: 800; font-size: 62px; line-height: 1.12; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; transition: font-size 160ms var(--ease); }
.ph-big[data-size="l"] { font-size: 50px; } .ph-big[data-size="m"] { font-size: 40px; } .ph-big[data-size="s"] { font-size: 31px; }
.ph-big .sym { font-size: .46em; font-weight: 700; opacity: .7; margin-right: .16em; transform: translateY(-.72em); }
.caret { width: 3px; height: .72em; margin-left: 5px; border-radius: 2px; background: var(--gold); align-self: center; animation: caret 1s steps(1) infinite; }
@keyframes caret { 0%, 55% { opacity: 1; } 56%, 100% { opacity: 0; } }
.ph-foot { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; height: 32px; font-size: 13px; color: rgba(255, 255, 255, .78); }
.ph-fresh { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; }
.ph-fresh i { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--p-mint); }
.ph-fresh i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--p-mint); animation: pulse 2.400s ease-out infinite; }
.ph-listhead { display: flex; align-items: center; justify-content: space-between; height: 44px; margin: 12px 0 10px; }
.label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ph-edit { font-weight: 700; font-size: 14px; color: var(--iris-deep); padding: 0 4px; }
.ph-rows { display: grid; gap: 10px; }
.ph-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 12px; min-height: 72px; padding: 12px 16px 12px 14px; border-radius: 24px; background: var(--surface); box-shadow: var(--shadow-1); }
.who { display: grid; min-width: 0; }
.who b { font-family: var(--font-display); font-weight: 800; font-size: 18px; line-height: 1.15; }
.who small { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-spark { width: 44px; height: 24px; overflow: visible; }
.ph-spark path { stroke-dasharray: 1; stroke-dashoffset: 0; animation: spark-draw 900ms var(--ease) 1.200s backwards; }
@keyframes spark-draw { from { stroke-dashoffset: 1; } }
.amt { display: grid; justify-items: end; gap: 3px; min-width: 96px; max-width: 150px; }
.amt .num { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; font-size: 21px; line-height: 1.1; }
.ph-tabs { position: absolute; left: 16px; right: 16px; bottom: 24px; z-index: 30; height: 68px; display: flex; gap: 4px; padding: 6px; border-radius: 26px; background: rgba(255, 255, 255, .94); box-shadow: var(--shadow-2); }
.ph-tabs > span { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 20px; color: var(--muted); font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.ph-tabs .ic { width: 24px; height: 24px; }
.ph-tabs .on { position: relative; flex: 2.1; color: #fff; background: var(--iris); box-shadow: var(--shadow-iris); }
.ph-tabs .on::after { content: ""; position: absolute; inset: 5px; border-radius: 15px; border: 1.500px dashed rgba(255, 246, 226, .45); }
.ph-home { position: absolute; left: 50%; bottom: 8px; z-index: 60; width: 138px; height: 5px; margin-left: -69px; border-radius: 3px; background: var(--ink); opacity: .85; }
.ph-pip.pip-hop { transform-origin: 50% 100%; }

/* Try your own amount */
.try { position: relative; width: min(100%, 360px); text-align: center; }
.try label { display: block; margin-bottom: 8px; font-family: var(--font-display); font-weight: 800; font-size: 17px; }
.try-field { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 20px 0 10px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1.500px var(--line), var(--shadow-1); transition: box-shadow var(--t-fast); }
.try-field:hover { box-shadow: inset 0 0 0 1.500px var(--ink-2), var(--shadow-1); }
.try-field:focus-within { box-shadow: inset 0 0 0 2.500px var(--iris), var(--shadow-1); }
.try-cur { flex: none; display: grid; place-items: center; height: 38px; padding: 0 12px; border-radius: 999px; background: var(--iris-soft); color: var(--iris-ink); font-family: var(--font-display); font-weight: 800; font-size: 14px; letter-spacing: .04em; }
.try input { flex: 1; min-width: 0; height: 52px; border: 0; outline: 0; background: transparent; font-family: var(--font-display); font-weight: 700; font-size: 22px; font-variant-numeric: tabular-nums; color: var(--ink); }
.try input::placeholder { color: var(--muted); opacity: .8; font-weight: 600; }
.try p { margin-top: 10px; font-size: 13.500px; color: var(--muted); }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { max-width: 640px; }
  .stage { --s: .8; }
}
@media (max-width: 420px) { .stage { --s: .72; } .fp-a { left: -18px; } .fp-b { right: -14px; } .fp-c { left: -10px; } }
@media (max-width: 350px) { .stage { --s: .64; } .fp { display: none; } }

/* ---------- Currency ribbon ---------- */
.ribbon { padding-block: 40px 44px; color: var(--iris); content-visibility: auto; contain-intrinsic-size: auto 300px; }
.ribbon-title { margin: 0 auto 22px; max-width: 30em; padding-inline: var(--gutter); text-align: center; font-family: var(--font-ui); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); line-height: 1.4; }
.ribbon .stitch-line { margin-block: 0 22px; opacity: .45; }
.ribbon > .stitch-line:last-child { margin: 22px 0 0; }
.marq { overflow-x: auto; scrollbar-width: none; margin-bottom: 12px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.marq::-webkit-scrollbar { display: none; }
.js .marq { overflow: hidden; }
.track { display: flex; width: max-content; margin: 0; padding: 6px 0 10px; list-style: none; }
.js .track { animation: marq var(--dur, 60s) linear infinite; }
.js .track.rev { animation-direction: reverse; }
@keyframes marq { to { transform: translateX(-50%); } }
.marq:hover .track, .marq:focus-within .track { animation-play-state: paused; }
.cur { display: flex; align-items: center; gap: 10px; height: 58px; margin-right: 12px; padding: 0 20px 0 12px; border-radius: 20px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); transition: transform var(--t-med) var(--spring); }
.cur:hover { transform: translateY(-3px); }
.cur b { font-family: var(--font-display); font-weight: 800; font-size: 19px; letter-spacing: -.01em; }

/* ---------- Features bento ---------- */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.fcard { container-type: inline-size; display: flex; flex-direction: column; gap: 20px; padding: 12px 12px 26px; border-radius: 30px; background: var(--surface); box-shadow: var(--shadow-1); transition: transform var(--t-med) var(--spring), box-shadow var(--t-med) var(--ease); }
.fcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.fcard.wide { grid-column: span 2; }
.ftext { padding-inline: 14px; }
.ftext h3 { font-size: 22px; letter-spacing: -.02em; }
.ftext p { margin-top: 8px; color: var(--ink-2); font-size: 15.500px; }
.viz { position: relative; min-height: 216px; padding: 18px; border-radius: 22px; background: var(--paper-2); overflow: hidden; display: grid; place-items: center; }

/* Many currencies */
.viz-many { background: var(--iris-wash); grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 14px; align-content: center; }
.vm-hero { --stitch-r: 22px; align-self: stretch; display: grid; align-content: space-between; padding: 16px; border-radius: 22px; color: #fff; background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .045) 0 2px, transparent 2px 7px), var(--iris); box-shadow: var(--shadow-iris); }
.vm-base { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 800; font-size: 16px; }
.vm-amt { position: relative; z-index: 1; font-size: clamp(34px, 9cqw, 48px); font-weight: 800; line-height: 1; }
.vm-rows { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; width: 100%; }
.vm-rows li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; min-height: 44px; padding: 5px 14px 5px 5px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-1); }
.vm-rows b { font-family: var(--font-display); font-weight: 800; font-size: 15px; }
.vm-rows .num { font-weight: 700; font-size: 17px; }
@container (max-width: 400px) { .viz-many { grid-template-columns: minmax(0, 1fr); } .vm-hero { display: none; } }

/* Keypad */
.viz-keys { align-content: center; gap: 10px; }
.vk-screen { width: min(100%, 250px); display: flex; align-items: baseline; justify-content: space-between; gap: 10px; height: 44px; padding: 0 14px; border-radius: 16px; background: var(--iris); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 20px; font-variant-numeric: tabular-nums; align-items: center; }
.vk-expr { white-space: pre; }
.vk-c { display: inline-block; }
.vk-res { color: var(--gold); }
.vk-res::before { content: "= "; opacity: .8; }
.vk-keys { width: min(100%, 250px); display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.k { position: relative; height: 30px; border-radius: 11px; background: var(--surface); box-shadow: 0 2px 0 #E3DBCC; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 16px; overflow: hidden; }
.k.op { background: var(--iris-soft); color: var(--iris-ink); box-shadow: 0 2px 0 #CFC9FB; }
.k.eq { background: var(--iris); color: #fff; box-shadow: 0 2px 0 var(--iris-ink); }
.k::after { content: ""; position: absolute; inset: 0; background: var(--gold); opacity: 0; }
.fcard.live .k[style] { animation: k-press 340ms var(--spring) calc(.5s + var(--i) * 460ms) backwards; }
.fcard.live .k[style]::after { animation: k-flash 420ms var(--ease) calc(.5s + var(--i) * 460ms); }
.fcard.live .vk-c { animation: vk-in 360ms var(--spring) calc(.55s + var(--i) * 460ms) backwards; }
@keyframes k-press { 0% { transform: translateY(2px) scale(.9); } }
@keyframes k-flash { 0% { opacity: .7; } 100% { opacity: 0; } }
@keyframes vk-in { from { opacity: 0; transform: translateY(8px) scale(.8); } }

/* Alerts */
.viz-alert { background: var(--gold-soft); }
.va-bell { position: absolute; top: 16px; right: 18px; width: 30px; height: 30px; color: var(--ink); transform-origin: 50% 8%; }
.va-notif { display: flex; align-items: center; gap: 12px; width: min(100%, 290px); padding: 10px 16px 10px 10px; border-radius: 24px; background: var(--surface); box-shadow: var(--shadow-2); }
.va-t { display: grid; font-size: 14px; color: var(--ink-2); line-height: 1.3; }
.va-t b { font-family: var(--font-display); font-weight: 800; font-size: 16px; color: var(--ink); }
.fcard.live .va-notif { animation: va-drop 800ms var(--spring) .15s backwards; }
.fcard.live .va-notif [data-pip] { animation: pip-pop 600ms var(--spring) .5s backwards; }
.fcard.live .va-bell { animation: va-wiggle 900ms ease-in-out .7s 2; }
@keyframes va-drop { from { transform: translateY(-150%); opacity: 0; } }
@keyframes pip-pop { from { transform: scale(.4) rotate(-12deg); opacity: 0; } }
@keyframes va-wiggle { 0%, 100% { transform: rotate(0); } 15% { transform: rotate(16deg); } 30% { transform: rotate(-14deg); } 45% { transform: rotate(10deg); } 60% { transform: rotate(-8deg); } 75% { transform: rotate(4deg); } }

/* Charts */
.viz-chart { background: var(--iris-wash); padding: 14px 18px 18px; align-content: space-between; justify-items: stretch; }
.vc-range { display: inline-flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--paper-2); justify-self: start; }
.vc-range span { display: grid; place-items: center; min-width: 36px; height: 28px; padding: 0 8px; border-radius: 10px; font-family: var(--font-display); font-weight: 700; font-size: 13px; color: var(--muted); }
.vc-range .on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
.vc-range .pro { color: #8A5A00; }
.vc-svg { width: 100%; height: auto; aspect-ratio: 400 / 150; overflow: visible; margin-top: 6px; }
.vc-grid { stroke: var(--iris); stroke-width: 1.500; stroke-dasharray: 3 7; stroke-linecap: round; opacity: .22; }
.vc-area { fill: var(--iris); opacity: .09; }
.vc-line { stroke: var(--iris); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 10 8; }
.vc-draw { stroke-dasharray: 1; stroke-dashoffset: 0; }
.vc-dot circle { fill: var(--gold); stroke: var(--surface); stroke-width: 3; }
.vc-dot .vc-halo { fill: var(--gold); stroke: none; opacity: .3; }
.vc-dot { transform-box: fill-box; transform-origin: center; }
.fcard.live .vc-draw { animation: vc-draw 1.800s var(--ease) .2s backwards; }
.fcard.live .vc-area { animation: fade-in 800ms var(--ease) 1.200s backwards; }
.fcard.live .vc-dot { animation: dot-pop 600ms var(--spring) 1.900s backwards; }
.fcard.live .vc-halo { animation: halo 2.200s ease-out 2.300s infinite; transform-box: fill-box; transform-origin: center; }
@keyframes vc-draw { from { stroke-dashoffset: 1; } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes dot-pop { from { transform: scale(0); opacity: 0; } }
@keyframes halo { 0% { transform: scale(.6); opacity: .5; } 100% { transform: scale(1.7); opacity: 0; } }

/* World time */
.viz-time { background: var(--iris-wash); display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 10px; align-content: center; justify-items: stretch; }
.vt-labels { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; font-size: 12.500px; font-weight: 700; color: var(--ink-2); }
.vt-labels li, .vt-track { height: 28px; display: flex; align-items: center; }
.vt-lanes { position: relative; display: grid; gap: 14px; }
.vt-track { position: relative; border-radius: 10px; background: var(--surface); box-shadow: inset 0 0 0 1.500px var(--line); overflow: hidden; }
.vt-track i { position: absolute; top: 4px; bottom: 4px; border-radius: 7px; background: var(--iris-soft); box-shadow: inset 0 0 0 1.500px color-mix(in srgb, var(--iris) 40%, transparent); }
.vt-overlap { position: absolute; top: -6px; bottom: -6px; border-radius: 10px; border: 2px dashed var(--iris); background: color-mix(in srgb, var(--iris) 12%, transparent); }
.vt-sweep { position: absolute; inset: -8px 0; transform: translateX(52%); pointer-events: none; }
.vt-sweep i { position: absolute; left: 0; top: 0; bottom: 0; width: 3px; margin-left: -1.500px; border-radius: 2px; background: var(--gold); box-shadow: 0 0 0 2px var(--surface); }
.fcard.live .vt-sweep { animation: vt-sweep 2.400s var(--ease) .3s backwards; }
.fcard.live .vt-overlap { animation: fade-in 700ms var(--ease) 2s backwards; }
@keyframes vt-sweep { from { transform: translateX(0); } }

/* Offline */
.viz-off { background: var(--ink); align-content: center; gap: 4px; }
.vo-tag { position: absolute; right: 16px; top: 18px; display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px 0 12px; border-radius: 999px; background: var(--cream); color: var(--ink); font-size: 13px; font-weight: 700; transform: rotate(3deg); box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .6); }
.vo-tag i { width: 9px; height: 9px; border-radius: 50%; background: var(--p-mint); }
.fcard.live .vo-tag { animation: tag-pop 700ms var(--spring) .5s backwards; }
.fcard.live .viz-off [data-pip] { animation: pip-pop 700ms var(--spring) .1s backwards; }
@keyframes tag-pop { from { transform: translateY(14px) scale(.6) rotate(-8deg); opacity: 0; } }

@media (max-width: 1000px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .bento { grid-template-columns: minmax(0, 1fr); } .fcard.wide { grid-column: auto; } }

/* ---------- How it works ---------- */
.how { background: var(--paper-2); }
.steps { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.steps-path { position: absolute; left: 0; top: 0; width: 100%; height: 120px; overflow: visible; pointer-events: none; }
.steps-path-v { display: none; }
.steps-line { stroke: var(--iris); stroke-width: 3.500; stroke-linecap: round; stroke-dasharray: 9 9; }
.draw-m { stroke-dasharray: 1; }
.js .draw-m { stroke-dashoffset: 1; }
.step { position: relative; padding-top: 28px; text-align: center; }
.step-n { --stitch-r: 22px; position: relative; z-index: 1; width: 64px; height: 64px; margin-inline: auto; border-radius: 22px; background: var(--iris); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 28px; box-shadow: var(--shadow-iris); transition: transform var(--t-slow) var(--spring), opacity var(--t-med) var(--ease); }
.js .step:not(.on) .step-n { transform: scale(.7); opacity: .4; }
.step-body { margin-top: 24px; }
.step h3 { margin-top: 18px; font-size: 24px; }
.step p { max-width: 20em; margin: 8px auto 0; color: var(--ink-2); }
.sv { display: grid; align-content: center; justify-items: center; gap: 8px; min-height: 132px; padding: 16px; border-radius: 26px; background: var(--surface); box-shadow: var(--shadow-1); transition: transform var(--t-med) var(--spring), box-shadow var(--t-med) var(--ease); }
.step:hover .sv { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.sv-lab { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sv-num { display: flex; align-items: baseline; font-size: 40px; font-weight: 800; color: var(--ink); }
.sv-num .caret { background: var(--iris); }
.sv-rows { gap: 6px; padding: 12px; }
.sv-rows > span { width: 100%; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; text-align: left; }
.sv-rows b { font-family: var(--font-display); font-weight: 800; font-size: 14px; }
.sv-rows em { font-style: normal; font-weight: 700; font-size: 15px; }
.js .step.on .sv-rows > span { animation: rv-in 600ms var(--spring-soft) backwards; }
.js .step.on .sv-rows > span:nth-child(2) { animation-delay: 90ms; }
.js .step.on .sv-rows > span:nth-child(3) { animation-delay: 180ms; }
.sv-tap { display: flex; align-items: center; justify-content: center; gap: 12px; }
.sv-tap > span { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 14px 0 6px; border-radius: 17px; font-family: var(--font-display); font-weight: 800; font-size: 16px; }
.sv-from { position: relative; background: var(--paper-2); }
.sv-to { background: var(--iris); color: #fff; box-shadow: var(--shadow-iris); }
.sv-mini { gap: 10px; padding: 0 16px 0 14px; }
.sv-mini svg { width: 56px; height: 24px; }
.sv-tap .ic { width: 22px; height: 22px; color: var(--iris); }
.ripple { position: absolute; right: 10px; bottom: -6px; width: 22px; height: 22px; border-radius: 50%; border: 2.500px solid var(--iris); animation: tap 2.200s ease-out infinite; }
@keyframes tap { 0% { transform: scale(.4); opacity: .9; } 70%, 100% { transform: scale(1.7); opacity: 0; } }

@media (max-width: 760px) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .steps-path { display: none; }
  .steps-path-v { display: block; position: absolute; left: 0; top: 60px; bottom: 150px; width: 64px; height: auto; overflow: visible; pointer-events: none; }
  .step { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 20px; text-align: left; padding-top: 0; }
  .step-n { margin: 0; }
  .step-body { margin-top: 0; }
  .step p { margin-inline: 0; }
}

/* ---------- Meet Pip ---------- */
.pipband { --stitch-r: 7px; padding-block: var(--sec-y); color: var(--cream); background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .045) 0 2px, transparent 2px 7px), radial-gradient(90% 120% at 100% 0, #7466FF 0, transparent 55%), var(--iris); content-visibility: auto; contain-intrinsic-size: auto 720px; }
.pipband::after { inset: 10px; }
.pipband-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.pip-stage { position: relative; display: grid; justify-items: center; }
.pip-halo { position: absolute; top: 46%; left: 50%; width: min(105%, 400px); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; border: 3px dashed var(--cream); opacity: .3; animation: ring-spin 90s linear infinite; }
.pip-big-wrap { position: relative; display: grid; }
.pip-big { --ps: clamp(190px, 34vw, 300px); }
.pip-ground { width: 56%; height: 22px; margin-top: -2px; border-radius: 50%; background: rgba(27, 20, 51, .35); filter: blur(7px); }
.pip-copy h2 { color: #fff; }
.pip-lead { margin-top: 18px; max-width: 34em; font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); opacity: .95; }
.moods { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-top: 28px; }
.mood { display: grid; align-content: start; gap: 3px; min-height: 76px; padding: 12px 16px; border-radius: 20px; text-align: left; background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1.500px rgba(255, 246, 226, .28); color: var(--cream); transition: transform var(--t-med) var(--spring), background var(--t-fast), color var(--t-fast); }
.mood b { font-family: var(--font-display); font-weight: 800; font-size: 17px; }
.mood small { font-size: 14px; line-height: 1.35; }
.mood:hover { transform: translateY(-3px); background: rgba(255, 255, 255, .2); }
.mood:active { transform: scale(.96); }
.mood[aria-pressed="true"] { background: var(--cream); color: var(--ink); box-shadow: none; }
.mood[aria-pressed="true"] small { color: var(--ink-2); }
.pipband :focus-visible { outline-color: var(--cream); }
.pipband .pip-big-wrap.pip-hop { transform-origin: 50% 100%; }
@media (max-width: 860px) { .pipband-grid { grid-template-columns: minmax(0, 1fr); } .pip-stage { order: -1; } }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: clamp(24px, 3vw, 34px); border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow-1); transition: transform var(--t-med) var(--spring), box-shadow var(--t-med) var(--ease); }
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.plan h3 { font-size: 24px; }
.plan-price { margin-top: 18px; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem); letter-spacing: -.03em; line-height: 1.05; }
.plan-sub { margin-top: 8px; color: var(--ink-2); }
.ticks { display: grid; gap: 12px; margin: 26px 0 0; padding: 22px 0 0; list-style: none; border-top: 2px dashed var(--line); }
.ticks li { display: flex; align-items: flex-start; gap: 12px; font-weight: 500; }
.tick { flex: none; display: grid; place-items: center; width: 24px; height: 24px; margin-top: 1px; border-radius: 50%; background: var(--iris-soft); color: var(--iris-ink); }
.tick .ic { width: 14px; height: 14px; stroke-width: 3.200; }
.plan.pro { --stitch-r: 34px; color: #fff; background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .045) 0 2px, transparent 2px 7px), radial-gradient(110% 80% at 100% 0, #7466FF 0, transparent 55%), var(--iris); box-shadow: var(--shadow-iris); }
.plan.pro .plan-sub { color: rgba(255, 255, 255, .88); }
.plan.pro .ticks { border-top-color: rgba(255, 246, 226, .35); }
.plan.pro .tick { background: var(--gold); color: var(--ink); }
.plan.pro:focus-within, .plan.pro :focus-visible { outline-color: var(--cream); }
.plan-flag { position: absolute; z-index: 2; top: -15px; right: 26px; display: inline-flex; align-items: center; height: 32px; padding: 0 16px; border-radius: 999px; background: var(--gold); color: var(--ink); font-family: var(--font-display); font-weight: 800; font-size: 14px; letter-spacing: .02em; box-shadow: 0 10px 20px -10px rgba(120, 80, 0, .7); }
.plan-flag::after { content: ""; position: absolute; inset: 3px; border-radius: 999px; border: 1.500px dashed rgba(27, 20, 51, .35); }
.no-sub { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 40px; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.125rem, 1rem + .6vw, 1.375rem); color: var(--iris-ink); }
.no-sub .stitch-line { flex: 0 1 120px; color: var(--iris); }
@media (min-width: 961px) { .plan.pro { margin-block: -14px; padding-block: calc(clamp(24px, 3vw, 34px) + 14px); } }
@media (max-width: 960px) { .plans { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin-inline: auto; } .plan.pro { order: -1; margin-top: 12px; } }

/* ---------- FAQ ---------- */
.faq-sec { background: var(--paper); }
.faq { display: grid; gap: 12px; max-width: 820px; margin-inline: auto; }
.faq details { interpolate-size: allow-keywords; border-radius: 26px; background: var(--surface); box-shadow: var(--shadow-1); transition: box-shadow var(--t-med) var(--ease); }
.faq details[open] { box-shadow: var(--shadow-2); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; padding: 14px 20px 14px 26px; border-radius: 26px; cursor: pointer; list-style: none; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); letter-spacing: -.01em; -webkit-tap-highlight-color: transparent; }
.faq summary::-webkit-details-marker { display: none; }
.plus { position: relative; flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--iris-soft); transition: transform var(--t-med) var(--spring), background var(--t-fast); }
.plus::before, .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2.500px; margin: -1.250px 0 0 -7px; border-radius: 2px; background: var(--iris-ink); transition: background var(--t-fast); }
.plus::after { transform: rotate(90deg); }
.faq summary:hover .plus { background: #DAD5FF; }
.faq details[open] .plus { transform: rotate(135deg); background: var(--iris); }
.faq details[open] .plus::before, .faq details[open] .plus::after { background: #fff; }
.faq-a { padding: 0 26px 24px; color: var(--ink-2); max-width: 46em; }
.faq-a a { color: var(--iris-deep); font-weight: 600; text-underline-offset: 3px; }
/* Smooth open and close where the browser supports it; otherwise a quick fade and rise. */
@supports selector(::details-content) {
  .faq details::details-content { block-size: 0; opacity: 0; overflow-y: clip; transition: block-size var(--t-slow) var(--ease), opacity var(--t-med) var(--ease), content-visibility var(--t-slow) allow-discrete; }
  .faq details[open]::details-content { block-size: auto; opacity: 1; }
}
@supports not selector(::details-content) {
  .faq details[open] .faq-a { animation: rv-in 420ms var(--spring-soft) backwards; }
}

/* ---------- Final call to action ---------- */
.cta-sec { padding-top: calc(var(--sec-y) * .6); }
.cta-card { position: relative; max-width: 980px; margin: 54px auto 0; padding: clamp(72px, 9vw, 96px) clamp(20px, 5vw, 64px) clamp(36px, 6vw, 64px); border-radius: var(--r-xl); text-align: center; background: var(--cream); box-shadow: var(--shadow-2); }
.cta-card::before { content: ""; position: absolute; inset: 10px; border-radius: 26px; border: 2.500px dashed color-mix(in srgb, var(--iris) 45%, transparent); pointer-events: none; }
.cta-pip { position: absolute; left: 50%; top: -60px; margin-left: -60px; filter: drop-shadow(0 12px 14px rgba(27, 20, 51, .18)); }
.cta-card h2 { margin-top: 22px; }
.cta-lead { max-width: 30em; margin: 18px auto 30px; font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); color: var(--ink-2); }
.pill.soon { background: transparent; box-shadow: inset 0 0 0 1.500px color-mix(in srgb, var(--ink) 30%, transparent); font-size: 13.500px; }

/* ---------- Footer ---------- */
.site-f { padding-block: 0 44px; color: var(--iris); }
.site-f .stitch-line { margin-bottom: 36px; }
.foot-grid { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 28px; color: var(--ink); }
.foot-brand p { max-width: 24em; margin-top: 10px; font-size: 14.500px; color: var(--ink-2); }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; list-style: none; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; font-weight: 600; text-decoration: none; color: var(--ink-2); transition: background var(--t-fast), color var(--t-fast); }
.foot-links a:hover { background: var(--paper-2); color: var(--ink); }
.copy { margin-top: 24px; font-size: 14px; color: var(--muted); }

/* ---------- Motion safety ---------- */
@media (prefers-reduced-motion: reduce) {
  /* stitch.css already shortens every duration; also drop the stagger delays and parallax. */
  *, *::before, *::after { animation-delay: 0s !important; transition-delay: 0s !important; }
  .phone-tilt, .fp { transition: none; }
  .js .marq { overflow-x: auto; }
  .js .track { animation: none; }
}

/* Numbers change in place: equal-width digits, no sliding. */
.num, .vm-amt { font-variant-numeric: tabular-nums; }

.ph-logo { display: grid; width: 46px; height: 46px; margin: -4px -4px 0 -6px; }

/* ==========================================================================
   Inner pages (converter, privacy, terms, support, 404).
   Only layout lives here; every surface, colour, type size and component is
   reused from the sections above (sec-head, plan, faq, ph-hero, ph-row, cta-card).
   ========================================================================== */
.nav-links a[aria-current="page"] { background: var(--paper-2); color: var(--ink); }
.page { padding-block: clamp(20px, 4vw, 48px) var(--sec-y); }
.page-h { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.page-h h1, .cta-card h1 { font-size: clamp(2rem, 1.1rem + 3.6vw, 3.5rem); letter-spacing: -.03em; line-height: 1; }
.cta-card h1 { margin-top: 22px; }
.page-h .sec-lead { margin-top: 16px; }

/* Prose card: the Free plan surface with the FAQ answer type */
.page-h:has(+ .prose) { max-width: 820px; margin-inline: auto; text-align: center; }
.prose { max-width: 820px; margin-inline: auto; padding: clamp(24px, 4vw, 48px); border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow-1); color: var(--ink-2); }
.prose > * + * { margin-top: 14px; }
.prose h2 { margin-top: 36px; font-size: 24px; color: var(--ink); }
.prose h2:first-child { margin-top: 0; }
.prose h2 + * { margin-top: 10px; }
.prose ul { padding-left: 22px; }
.prose li + li { margin-top: 10px; }
.prose li::marker { color: var(--iris); }
.prose strong { color: var(--ink); }
.prose a { color: var(--iris-deep); font-weight: 600; text-underline-offset: 3px; }
.prose .faq { margin-top: 18px; max-width: none; }
.prose .faq .faq-a { padding-top: 0; }

/* Converter: the violet amount card on the left, the currency rows on the right */
.conv-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.conv-card { margin-top: 34px; }
.conv-card .ph-pip { top: -46px; }
.conv-base { cursor: pointer; }
.conv-base select { appearance: none; -webkit-appearance: none; max-width: 100%; min-width: 0; height: 100%; padding: 0 4px; border: 0; background: transparent; color: inherit; font-family: var(--font-display); font-weight: 800; font-size: 16px; cursor: pointer; }
.conv-base select option { color: var(--ink); font-weight: 600; }
.conv-base select:focus-visible { outline: 0; }
.conv-base:has(select:focus-visible) { outline: 3px solid var(--cream); outline-offset: 3px; }
.conv-amount { display: flex; align-items: baseline; font-family: var(--font-display); font-weight: 800; font-size: 62px; line-height: 1.12; letter-spacing: -.02em; }
.conv-amount .sym { font-size: .46em; font-weight: 700; opacity: .7; margin-right: .16em; transform: translateY(-.72em); }
.conv-amount input { flex: 1; min-width: 0; width: 100%; padding: 0; border: 0; outline: 0; border-radius: 0; background: transparent; color: inherit; font: inherit; letter-spacing: inherit; font-variant-numeric: tabular-nums; }
.conv-amount input::placeholder { color: rgba(255, 255, 255, .5); }
.conv-card :focus-visible { outline-color: var(--cream); }
.conv-card .ph-foot { justify-content: flex-start; }
.conv-err .ph-fresh i, .conv-err .ph-fresh i::after { background: var(--gold); }
.conv-rows .amt { max-width: 220px; }
.conv-list .ph-listhead { margin-top: 0; }
.conv-fine { margin-top: 18px; }

@media (max-width: 960px) {
  .conv-grid { grid-template-columns: minmax(0, 1fr); }
  .conv-card { max-width: 560px; }
}
@media (max-width: 479px) { .conv-amount { font-size: 50px; } }

/* 404 */
.page-404 { padding-block: clamp(20px, 4vw, 48px) var(--sec-y); }
.page-404 .cta-card { margin-top: 74px; }
