html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 96px; }
body { margin: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }

/* Layout: one centred column under a floating glass bar. Two blurred colour fields drift slowly behind
   the content; surfaces are translucent glass. Indigo ink with a sunflower highlight; each app still
   brings its own colours to its own page. */
:root {
  --bg: #EAF3FC;
  --surface: #FFFFFF;
  --sunk: #DDEBF8;
  --ink: #17163A;
  --muted: #4E5C77;
  --line: #C6DAEE;
  --accent: #3A36E0;
  --accent-ink: #FFFFFF;
  --sun: #FFC93C;
  --sun-ink: #17163A;
  --shadow: 0 1px 0 rgba(23, 22, 58, .06), 0 12px 32px -16px rgba(23, 22, 58, .28);
  --glass: rgba(255, 255, 255, .55);
  --glass-strong: rgba(255, 255, 255, .78);
  --glass-line: rgba(255, 255, 255, .85);
  --glass-edge: rgba(23, 22, 58, .08);
  --blob-a: rgba(58, 54, 224, .14);
  --blob-b: rgba(255, 201, 60, .22);
  --blob-c: rgba(255, 111, 165, .13);
  --blob-d: rgba(61, 184, 238, .16);
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --game: "Lilita One", "Arial Black", Impact, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #0A1322; --surface: #122036; --sunk: #192B47; --ink: #EDF2FB; --muted: #A3B3CC; --line: #2A4062; --accent: #9B98FF; --accent-ink: #0B1524; --sun: #FFC93C; --sun-ink: #17163A; --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 12px 32px -16px rgba(0, 0, 0, .7); --glass: rgba(18, 32, 54, .5); --glass-strong: rgba(18, 32, 54, .82); --glass-line: rgba(255, 255, 255, .14); --glass-edge: rgba(0, 0, 0, .35); --blob-a: rgba(99, 96, 255, .3); --blob-b: rgba(255, 201, 60, .14); --blob-c: rgba(255, 111, 165, .16); --blob-d: rgba(61, 184, 238, .18); color-scheme: dark; }
}
:root[data-theme="dark"] { --bg: #0A1322; --surface: #122036; --sunk: #192B47; --ink: #EDF2FB; --muted: #A3B3CC; --line: #2A4062; --accent: #9B98FF; --accent-ink: #0B1524; --sun: #FFC93C; --sun-ink: #17163A; --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 12px 32px -16px rgba(0, 0, 0, .7); --glass: rgba(18, 32, 54, .5); --glass-strong: rgba(18, 32, 54, .82); --glass-line: rgba(255, 255, 255, .14); --glass-edge: rgba(0, 0, 0, .35); --blob-a: rgba(99, 96, 255, .3); --blob-b: rgba(255, 201, 60, .14); --blob-c: rgba(255, 111, 165, .16); --blob-d: rgba(61, 184, 238, .18); color-scheme: dark; }

* { box-sizing: border-box; }
body { background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }

/* the liquid behind the glass: two fixed colour fields; the first follows the scroll a little (--sy from site.js) */
body::before, body::after { content: ""; position: fixed; inset: -22% -12%; z-index: -1; pointer-events: none; }
body::before {
  background:
    radial-gradient(42% 38% at 16% 18%, var(--blob-a), transparent 70%),
    radial-gradient(36% 34% at 86% 12%, var(--blob-b), transparent 70%),
    radial-gradient(30% 30% at 78% 86%, var(--blob-a), transparent 70%);
  transform: translate3d(0, var(--sy, 0px), 0);
}
body::after {
  background:
    radial-gradient(30% 28% at 68% 30%, var(--blob-c), transparent 70%),
    radial-gradient(34% 30% at 10% 78%, var(--blob-d), transparent 70%);
  animation: drift 46s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate3d(-2.5%, -2%, 0) scale(1); }
  to { transform: translate3d(2.5%, 3%, 0) scale(1.08); }
}

/* one glass recipe for every raised surface */
.bar-in, .menu, .app, .panel, .mail, .notify, .btn, .lang {
  background: var(--surface);
  border: 1px solid var(--line);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .bar-in, .app, .panel, .mail, .notify { background: var(--glass); -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5); }
  .menu { background: var(--glass-strong); -webkit-backdrop-filter: blur(22px) saturate(1.5); backdrop-filter: blur(22px) saturate(1.5); }
  .btn, .lang { background: var(--glass); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
  .bar-in, .menu, .app, .panel, .mail, .notify { border-color: var(--glass-line); box-shadow: 0 0 0 1px var(--glass-edge), 0 14px 34px -18px rgba(23, 22, 58, .35), inset 0 1px 0 var(--glass-line); }
}

a { color: var(--accent); text-underline-offset: 3px; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; margin: 0; text-wrap: balance; letter-spacing: -.015em; }
h1 { font-size: clamp(2.2rem, 7vw, 3.6rem); font-weight: 800; }
h1.ptitle { font-size: clamp(1.9rem, 6vw, 2.6rem); }
h2 { font-size: clamp(1.5rem, 4.4vw, 2rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: 0; }
p { margin: 0; }
.wrap { max-width: 1040px; margin-inline: auto; padding-inline: 20px; }
.eyebrow { font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.prose { display: flex; flex-direction: column; gap: 14px; max-width: 66ch; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.view { padding-block: 40px 72px; display: flex; flex-direction: column; gap: 56px; }
.sec { display: flex; flex-direction: column; gap: 22px; }

/* top bar: a floating glass capsule */
.bar { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 10px); z-index: 20; padding: 10px 10px 0; margin-top: -10px; }
.bar-in { transition: min-height .25s ease, padding .25s ease; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 58px; flex-wrap: wrap; padding-block: 7px; padding-inline: 16px; border-radius: 26px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; white-space: nowrap; }
.brand span span { font-weight: 500; }
.brand svg { width: 34px; height: 34px; flex: none; }
.nav { display: flex; align-items: center; gap: 2px; position: relative; flex-wrap: wrap; }
.nav a, .nav button { background: none; border: 0; padding: 8px 12px; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .98rem; }
.nav a:hover, .nav button:hover, .nav button[aria-expanded="true"] { background: var(--sunk); }
.nav a[aria-current="page"] { color: var(--accent); }
.nav { margin-left: auto; }
.lang { display: inline-flex; gap: 0; padding: 3px; border-radius: 999px; font-size: .8rem; font-weight: 600; letter-spacing: .04em; }
.theme { width: 34px; height: 34px; padding: 0; border-radius: 50%; border: 1px solid var(--line); background: none; color: var(--ink); display: grid; place-items: center; }
.theme:hover { background: var(--sunk); }
.theme svg { width: 17px; height: 17px; }
@media (max-width: 640px) { .theme { order: 2; margin-left: auto; } .lang { order: 2; margin-left: 8px; } .theme + .lang { margin-left: 8px; } .nav { order: 3; flex-basis: 100%; margin-left: -8px; } }
.lang span { padding: 3px 9px; border-radius: 999px; color: var(--muted); }
.lang span.on { background: var(--ink); color: var(--bg); }
.caret { display: inline-block; width: 8px; height: 8px; margin-left: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.menu { position: absolute; top: calc(100% + 10px); left: 0; width: min(280px, calc(100vw - 40px)); border-radius: 18px; padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.menu .mi { display: block; padding: 10px 12px; border-radius: 12px; }
.menu .mi:hover { background: var(--sunk); }
.mi b { display: block; font-family: var(--display); font-size: 1.02rem; line-height: 1.2; }
.mi small { display: block; color: var(--muted); font-weight: 500; font-size: .82rem; }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* icon tile */
.ico { display: block; flex: none; width: 96px; aspect-ratio: 1; max-width: 100%; border-radius: 22.4%; overflow: hidden; box-shadow: 0 0 0 1px rgba(23, 22, 58, .12), 0 10px 22px -12px rgba(23, 22, 58, .5); }
.ico svg, .ico img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* home */
.hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; padding-block: clamp(36px, 10vh, 110px) clamp(12px, 4vh, 40px); }
.hero h1 { max-width: 16ch; }
.hero h1 em { font-style: normal; background: linear-gradient(transparent 62%, var(--sun) 62% 92%, transparent 92%); }
.hero h1.words em { background-repeat: no-repeat; background-size: 0% 100%; animation: mark .55s ease-out 1.25s forwards; }
@keyframes mark { to { background-size: 100% 100%; } }
:root[data-theme="dark"] .hero h1 em { background: none; color: var(--sun); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero h1 em { background: none; color: var(--sun); } }
.btns { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; border: 1.5px solid var(--ink); color: var(--ink); font-weight: 700; text-decoration: none; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.app { position: relative; display: flex; gap: 18px; align-items: flex-start; padding: 20px; border-radius: 22px; text-decoration: none; color: var(--ink); }
.app > div { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.app p { color: var(--muted); font-size: .96rem; }
.app .go { color: var(--accent); font-weight: 700; font-size: .92rem; }
.chip { display: inline-block; align-self: flex-start; padding: 3px 10px; border-radius: 999px; background: var(--sun); color: var(--sun-ink); font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }

/* product page */
.crumbs { font-size: .9rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.phead { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.phead .ico { width: 128px; }
.phead > div { min-width: 0; flex: 1 1 260px; display: flex; flex-direction: column; gap: 10px; }
.soon { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; padding: 11px 18px; border-radius: 14px; background: var(--ink); color: var(--bg); font-weight: 700; }
.soon i { width: 9px; height: 9px; border-radius: 50%; background: var(--sun); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 201, 60, .55); } 55% { box-shadow: 0 0 0 7px rgba(255, 201, 60, 0); } }
.meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: .92rem; }

/* the game brings its own world: fixed colours on purpose, the same in both themes */
.gamehero { position: relative; overflow: hidden; border-radius: 28px; padding: 30px 22px 0; background: linear-gradient(#3DB8EE, #CDF2FF 78%); color: #1F2A44; border: 4px solid #1F2A44; display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; isolation: isolate; }
.gamehero::before { content: ""; position: absolute; inset: -60% -40% 0; z-index: -1; background: repeating-conic-gradient(from 0deg at 50% 70%, rgba(255, 255, 255, .22) 0 9deg, transparent 9deg 18deg); animation: rays 80s linear infinite; }
@keyframes rays { to { transform: rotate(18deg); } }
.glogo { display: flex; flex-direction: column; align-items: center; }
.glogo span { font-family: var(--game); font-size: clamp(2.2rem, 9vw, 3.6rem); line-height: 1; padding: 4px 18px 9px; border: 4px solid #1F2A44; border-radius: 16px; box-shadow: 0 6px 0 #1F2A44; }
.glogo span:first-child { background: #FF6FA5; color: #fff; transform: rotate(-4deg) translateX(-22px); }
.glogo span:last-child { background: #FFC93C; color: #1F2A44; transform: rotate(2deg) translateX(14px); margin-top: -6px; }
.gtag { font-family: var(--game); font-size: 1.2rem; letter-spacing: .06em; }
.lawn { align-self: stretch; margin-inline: -22px; height: 54px; background: repeating-linear-gradient(90deg, #5CC84E 0 26px, #49B03D 26px 52px); border-top: 5px solid #fff; box-shadow: 0 -3px 0 #1F2A44; }

/* Metals brings its own world too: a vault. Fixed colours, the same in both themes. */
.vault { position: relative; overflow: hidden; border-radius: 28px; padding: 40px 26px; background: linear-gradient(135deg, #1C1D26, #0F1015); color: #F3EFE4; border: 1px solid #3A3526; display: flex; flex-direction: column; gap: 10px; isolation: isolate; }
.vault::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(115deg, transparent 30%, rgba(233, 190, 85, .14) 46%, rgba(233, 190, 85, .05) 52%, transparent 66%); background-size: 260% 100%; animation: sheen 9s ease-in-out infinite; }
@keyframes sheen { 0%, 100% { background-position: 120% 0; } 50% { background-position: -20% 0; } }
.vault-k { font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #E9BE55; }
.vault-h { font-family: var(--display); font-weight: 800; font-size: clamp(1.8rem, 6.4vw, 3rem); line-height: 1.05; letter-spacing: -.02em; text-wrap: balance; }
.vault-p { color: #B9B4A6; }

.shots { display: flex; gap: 16px; overflow-x: auto; padding-block: 4px 14px; scroll-snap-type: x proximity; scrollbar-width: none; cursor: grab; }
.shots.dragging { cursor: grabbing; scroll-snap-type: none; }
.shots.dragging img { pointer-events: none; }
.railwrap { position: relative; }
.rnav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 44px; height: 44px; padding: 0; border-radius: 50%; border: 1px solid var(--glass-line); background: var(--glass-strong); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 0 0 1px var(--glass-edge), 0 10px 24px -12px rgba(23, 22, 58, .4); color: var(--ink); display: grid; place-items: center; transition: opacity .2s ease, transform .15s ease; }
.rnav:hover { transform: translateY(-50%) scale(1.06); }
.rnav svg { width: 18px; height: 18px; }
.rnav.prev { left: -10px; }
.rnav.next { right: -10px; }
.rnav[disabled] { opacity: 0; pointer-events: none; }
@media (pointer: coarse) { .rnav { display: none; } }
.shots::-webkit-scrollbar { display: none; }
.shots figure { margin: 0; flex: none; display: flex; flex-direction: column; gap: 10px; scroll-snap-align: start; }
.shots img { display: block; height: 460px; width: auto; max-width: none; border-radius: 22px; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--sunk); }
.shots figcaption { font-size: .88rem; color: var(--muted); max-width: 212px; }
.shots figure.wide figcaption { max-width: 300px; }

.feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px 28px; }
.feats div { display: flex; flex-direction: column; gap: 6px; padding-top: 14px; border-top: 2px solid var(--ink); }
.feats p { color: var(--muted); font-size: .97rem; }
.quote { font-family: var(--display); font-size: clamp(1.25rem, 3.6vw, 1.7rem); font-weight: 700; line-height: 1.25; max-width: 30ch; }
.quote small { display: block; margin-top: 10px; font-family: var(--body); font-size: .9rem; font-weight: 500; color: var(--muted); }
.duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.panel { border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.panel ul, .prose ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.tbl { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .97rem; }
th, td { text-align: left; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; color: var(--muted); white-space: nowrap; width: 1%; padding-right: 28px; }
.legal th { white-space: normal; width: 30%; min-width: 130px; }

/* faq + support */
.faq { display: flex; flex-direction: column; max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 0; font-family: var(--display); font-weight: 700; font-size: 1.12rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 500; color: var(--accent); transition: transform .25s ease; }
.faq details[open] summary::after { content: "\2212"; transform: rotate(180deg); }
.faq details p { padding-bottom: 18px; color: var(--muted); max-width: 64ch; }
.mail { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 18px 20px; border-radius: 20px; max-width: 560px; }
.mail code { font-family: var(--display); font-size: clamp(1.05rem, 4.6vw, 1.4rem); font-weight: 700; user-select: all; -webkit-user-select: all; overflow-wrap: anywhere; min-width: 0; flex: 1 1 220px; }
.mail button { padding: 10px 18px; border-radius: 999px; border: 0; background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.note { font-size: .9rem; color: var(--muted); }

footer { border-top: 1px solid var(--line); padding-block: 26px 34px; }
.foot { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; align-items: center; font-size: .9rem; color: var(--muted); }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot a { color: var(--muted); }

/* official store badge: unmodified artwork, 48px tall, a quarter of its height kept clear around it */
.store { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; align-self: flex-start; }
.store img { display: block; height: 48px; width: auto; margin: 12px 12px 12px 0; }
.store small { font-size: .92rem; font-weight: 700; color: var(--muted); }

/* home showcase: one phone per app, afloat */
.showcase { width: 100%; }
.phones { display: flex; justify-content: center; align-items: center; gap: clamp(14px, 5vw, 44px); padding-block: 26px 20px; perspective: 900px; }
.phone { flex: 0 1 250px; min-width: 0; padding: clamp(4px, 1.1vw, 8px); border-radius: 15% / 7%; background: #0E1220; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14) inset, 0 24px 40px -22px rgba(11, 21, 36, .65); }
.phone img { display: block; width: 100%; height: auto; aspect-ratio: 750 / 1630; object-fit: cover; border-radius: 13% / 6%; }
.phone > video { display: block; width: 100%; height: auto; aspect-ratio: 750 / 1630; object-fit: cover; border-radius: 13% / 6%; background: #0E1220; }
.phone picture { display: block; }
.phones > .tilt { flex: 0 1 250px; min-width: 0; transform: rotateX(var(--tX, 0deg)) rotateY(var(--tY, 0deg)); transition: transform .25s ease; }
.phone:nth-child(1) { transform: rotate(-3deg); animation: ph1 7s ease-in-out infinite; }
.phone:nth-child(2) { transform: rotate(3deg) translateY(14px); animation: ph2 8.5s ease-in-out 1.2s infinite; }
.phones > .tilt:nth-child(1) > .phone { transform: rotate(-3deg); animation: ph1 7s ease-in-out infinite; }
.phones > .tilt:nth-child(2) > .phone { transform: rotate(3deg) translateY(14px); animation: ph2 8.5s ease-in-out 1.2s infinite; }
@keyframes ph1 { 0%, 100% { transform: rotate(-3deg) translateY(0); } 50% { transform: rotate(-2.2deg) translateY(-9px); } }
@keyframes ph2 { 0%, 100% { transform: rotate(3deg) translateY(14px); } 50% { transform: rotate(2.2deg) translateY(4px); } }

/* walkthrough clip beside its steps */
.clipwrap { display: flex; flex-wrap: wrap; gap: 30px 48px; align-items: center; }
.phone.clip { flex: none; width: min(280px, 78vw); margin-inline: auto; animation: none; transform: none; }
.phone.clip img { aspect-ratio: 400 / 870; }
.phone.clip video { display: block; width: 100%; height: auto; aspect-ratio: 750 / 1626; object-fit: cover; border-radius: 13% / 6%; background: #0E1220; }
.steps { margin: 0; padding-left: 26px; display: flex; flex-direction: column; gap: 18px; flex: 1 1 320px; min-width: 0; }
.steps li::marker { font-family: var(--display); font-weight: 700; color: var(--accent); }
.steps h3 { font-size: 1.1rem; }
.steps p { margin-top: 3px; color: var(--muted); font-size: .97rem; max-width: 52ch; }

/* motion: one choreographed arrival in the hero, one soft rise elsewhere */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes arrive { from { opacity: 0; transform: translateY(22px) scale(.985); filter: blur(8px); } }
.hero > :not(.flo):not(.flo-squawk) { animation: arrive .7s cubic-bezier(.2, .7, .2, 1) both; }
.hero > :nth-child(3) { animation-delay: .07s; }
.hero > :nth-child(4) { animation-delay: .16s; }
.hero > :nth-child(5) { animation-delay: .3s; }
.view.vin { animation: rise .38s cubic-bezier(.2, .7, .2, 1) both; }
.rv { animation: rise .55s cubic-bezier(.2, .7, .2, 1) both; }
.app { transition: transform .2s ease, border-color .2s ease, box-shadow .25s ease; }
.app:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 55%, transparent); box-shadow: 0 0 0 1px var(--glass-edge), 0 22px 44px -20px color-mix(in srgb, var(--accent) 45%, rgba(23, 22, 58, .4)), inset 0 1px 0 var(--glass-line); }
.app .ico, .phead .ico { transition: transform .22s ease; }
.app:hover .ico { transform: scale(1.04) rotate(-2deg); }
.shots img { transition: transform .22s ease, box-shadow .22s ease; }
.shots figure:hover img { transform: translateY(-4px); }
.btn, .mail button { transition: transform .15s ease, border-color .15s ease, box-shadow .2s ease, filter .15s ease; }
.btn:hover { border-color: var(--accent); color: var(--accent); box-shadow: 0 10px 26px -14px color-mix(in srgb, var(--accent) 60%, transparent); transform: translateY(-1px); }
.mail button:hover { filter: brightness(1.08); }
.btn:active, .mail button:active { transform: translateY(1px); }

@media (max-width: 760px) {
  .view { padding-block: 28px 56px; gap: 44px; }
  .shots img { height: 400px; }
  .shots figcaption { max-width: 184px; }
}
@media (max-width: 430px) {
  .wrap { padding-inline: 16px; }
  .brand { font-size: 1.05rem; gap: 8px; } .brand svg { width: 30px; height: 30px; }
  .nav a, .nav button { padding: 8px 8px; font-size: .92rem; }
  .phead .ico { width: 96px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } body::before { transform: none; } }

/* real pages: the language switch is two links, and each page rises once on arrival */
.lang a { padding: 3px 9px; border-radius: 999px; color: var(--muted); text-decoration: none; }
.lang a.on { background: var(--ink); color: var(--bg); }
main > .view { animation: rise .38s cubic-bezier(.2, .7, .2, 1) both; }
@media (prefers-reduced-motion: reduce) { main > .view { animation: none; } }

/* home: Flo, the Dictatorville flamingo, stands beside the headline */
.hero { position: relative; }
.hero .flo { position: absolute; right: 0; top: clamp(30px, 9vh, 100px); width: clamp(120px, 15vw, 190px); height: auto; overflow: visible; filter: drop-shadow(0 14px 14px rgba(23, 22, 58, .22)); animation: flo-bob 4s ease-in-out infinite; transform-origin: 50% 100%; pointer-events: none; }
@keyframes flo-bob { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(3deg) translateY(-6px); } }
@media (max-width: 900px) { .hero .flo { width: 96px; top: 18px; right: -4px; } }
@media (max-width: 760px) { .hero { padding-top: 100px; } .hero .flo { width: 52px; top: 8px; right: 0; } }

/* 404: Flo stands in the middle of the page */
.oops { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; padding-block: 5vh 3vh; }
.oops .flo2 { width: clamp(130px, 18vw, 180px); height: auto; overflow: visible; filter: drop-shadow(0 14px 14px rgba(23, 22, 58, .22)); animation: flo-bob 4s ease-in-out infinite; transform-origin: 50% 100%; }
.oops .lede { max-width: 46ch; }

/* Flo answers a click */
.flo.pokeable { pointer-events: auto; cursor: pointer; }
.flo.boing { animation: flo-bob 4s ease-in-out infinite, boing .9s cubic-bezier(.34, 1.56, .44, 1) both; }
@keyframes boing { 0% { transform: rotate(-2deg) scale(1); } 18% { transform: translateY(6px) rotate(-4deg) scale(1.08, .86); } 45% { transform: translateY(-52px) rotate(9deg) scale(.94, 1.1); } 70% { transform: translateY(4px) rotate(-6deg) scale(1.06, .92); } 85% { transform: translateY(-12px) rotate(3deg); } 100% { transform: rotate(-2deg) scale(1); } }
.flo-squawk { position: absolute; top: 0; right: clamp(120px, 15vw, 185px); z-index: 2; padding: 8px 14px; border-radius: 16px 16px 2px 16px; background: #FFFFFF; color: #1F2A44; border: 3px solid #1F2A44; box-shadow: 0 5px 0 #1F2A44; font-family: var(--game); font-size: 1.15rem; letter-spacing: .04em; pointer-events: none; animation: squawk 1.2s ease both; }
@keyframes squawk { 0% { opacity: 0; transform: translateY(10px) scale(.5) rotate(-6deg); } 18%, 78% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-12px); } }
@media (max-width: 760px) { .flo-squawk { right: 56px; top: 2px; font-size: .95rem; } }

/* the quiet language suggestion */
.langbar { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 30; display: flex; align-items: center; gap: 6px 14px; flex-wrap: wrap; justify-content: center; padding: 10px 14px; border-radius: 22px; background: var(--glass-strong); -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5); border: 1px solid var(--glass-line); box-shadow: 0 0 0 1px var(--glass-edge), 0 18px 40px -18px rgba(23, 22, 58, .45); font-size: .95rem; max-width: calc(100vw - 20px); animation: rise .4s ease both; }
.langbar a { font-weight: 700; white-space: nowrap; }
.langbar button { border: 0; background: var(--sunk); border-radius: 999px; padding: 6px 12px; font-weight: 600; font-size: .85rem; }

/* notify-me form on the Coming soon pages */
.notify { position: relative; display: flex; flex-direction: column; gap: 8px; max-width: 480px; margin-top: 8px; padding: 14px 16px; border-radius: 20px; }
.notify form { display: flex; gap: 8px; flex-wrap: wrap; }
.notify input[type="email"] { flex: 1 1 200px; min-width: 0; padding: 11px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; }
.notify button { padding: 11px 18px; border-radius: 999px; border: 0; background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.notify button[disabled] { opacity: .55; }
.notify .hint { font-size: .85rem; color: var(--muted); }
.notify .hint a { color: var(--muted); }
.notify .status { font-size: .9rem; font-weight: 600; min-height: 1.3em; }
.notify .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* extra motion: words, spotlight, sweeps, staggered reveals, page cross-fade */
.hero h1.words { animation: none; }
.hero h1.words .w { display: inline-block; animation: wordIn .6s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes wordIn { from { opacity: 0; transform: translateY(.55em) rotate(1.5deg); filter: blur(4px); } }

.app::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 16%, transparent), transparent 65%); opacity: 0; transition: opacity .25s ease; pointer-events: none; }
.app:hover::after { opacity: 1; }

.btn::after, .soon::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 32%, rgba(255, 255, 255, .55) 48%, transparent 62%); transform: translateX(-130%); pointer-events: none; }
.btn:hover::after, .soon:hover::after { transform: translateX(130%); transition: transform .6s ease; }

.rv .cards > :nth-child(1), .rv .feats > :nth-child(1), .rv .duo > :nth-child(1) { animation: rise .5s .06s cubic-bezier(.2, .7, .2, 1) both; }
.rv .cards > :nth-child(2), .rv .feats > :nth-child(2), .rv .duo > :nth-child(2) { animation: rise .5s .14s cubic-bezier(.2, .7, .2, 1) both; }
.rv .cards > :nth-child(3), .rv .feats > :nth-child(3), .rv .duo > :nth-child(3) { animation: rise .5s .22s cubic-bezier(.2, .7, .2, 1) both; }
.rv .cards > :nth-child(4), .rv .feats > :nth-child(4), .rv .duo > :nth-child(4) { animation: rise .5s .3s cubic-bezier(.2, .7, .2, 1) both; }

body.down .bar-in { min-height: 46px; padding-block: 3px; }

.shots { -webkit-mask-image: linear-gradient(90deg, transparent, #000 22px, #000 calc(100% - 22px), transparent); mask-image: linear-gradient(90deg, transparent, #000 22px, #000 calc(100% - 22px), transparent); }

.glogo span:first-child { animation: wob1 5.5s ease-in-out infinite; }
.glogo span:last-child { animation: wob2 6.5s ease-in-out .8s infinite; }
@keyframes wob1 { 0%, 100% { transform: rotate(-4deg) translateX(-22px); } 50% { transform: rotate(-2.6deg) translateX(-22px) translateY(-3px); } }
@keyframes wob2 { 0%, 100% { transform: rotate(2deg) translateX(14px); } 50% { transform: rotate(3.2deg) translateX(14px) translateY(-2px); } }

/* FAQ answers rise softly when opened */
.faq details[open] p { animation: rise .3s ease both; }

/* pages cross-fade into each other (newer browsers) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .26s; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* pill toggles (chart range, gold purity) */
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { min-height: 36px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 600; font-size: .9rem; font-variant-numeric: tabular-nums; transition: background .15s ease, color .15s ease, border-color .15s ease; }
.pill:hover { border-color: var(--accent); }
.pill[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* the pledge: a stamp that turns, on the home page and on /no-ads/ */
.seal { display: block; width: 150px; height: auto; flex: none; overflow: visible; filter: drop-shadow(0 12px 18px rgba(23, 22, 58, .22)); }
.seal-bg { fill: var(--sun); }
.seal-ring { fill: none; stroke: #17163A; stroke-width: 2; stroke-dasharray: 3 5; }
.seal-txt { font-family: var(--display); font-weight: 800; font-size: 16px; letter-spacing: .06em; fill: #17163A; }
.seal-spin { transform-box: view-box; transform-origin: 100px 100px; animation: spin 26s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.seal-ad rect { fill: #FFFFFF; stroke: #17163A; stroke-width: 5; }
.seal-ad text { font-family: var(--display); font-weight: 800; font-size: 32px; fill: #17163A; }
.seal-ad line { stroke: #FF5964; stroke-width: 10; stroke-linecap: round; }
.pledge { position: relative; display: flex; align-items: center; gap: 22px 34px; padding: 26px 30px; border-radius: 28px; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); overflow: hidden; isolation: isolate; transition: transform .2s ease, box-shadow .25s ease; }
.pledge::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 120% at 0% 50%, color-mix(in srgb, var(--sun) 30%, transparent), transparent 70%); }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) { .pledge { background: var(--glass); -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5); border-color: var(--glass-line); box-shadow: 0 0 0 1px var(--glass-edge), 0 14px 34px -18px rgba(23, 22, 58, .35), inset 0 1px 0 var(--glass-line); } }
.pledge:hover { transform: translateY(-3px); }
.pledge > div { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pledge h2 { font-size: clamp(1.8rem, 5.6vw, 2.6rem); font-weight: 800; }
.pledge p:not(.eyebrow) { color: var(--muted); max-width: 52ch; }
.pledge .go { color: var(--accent); font-weight: 700; }
.pledge:hover .seal-spin { animation-duration: 6s; }
@media (max-width: 600px) { .pledge { flex-direction: column; align-items: flex-start; padding: 22px; } .pledge .seal { width: 112px; } }
.pledge-hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; padding-top: 10px; }
.pledge-hero .seal { width: clamp(150px, 26vw, 200px); margin-bottom: 8px; animation: arrive .7s cubic-bezier(.2, .7, .2, 1) both; }
.pledge-hero h1 { font-size: clamp(2.6rem, 9vw, 4.4rem); }
.pledge-hero .lede { max-width: 58ch; }
.g-money { text-decoration: none; color: var(--ink); transition: transform .2s ease; }
.g-money:hover { transform: translateY(-3px); }
.g-money p { color: var(--muted); }

/* gold price page */
:root { --gold: #9A6A0A; }
:root[data-theme="dark"] { --gold: #E9BE55; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --gold: #E9BE55; } }
.gold { display: flex; flex-direction: column; gap: 18px; }
.gvault { padding: clamp(28px, 6vw, 46px) clamp(22px, 5vw, 40px); gap: 8px; }
.gvault h1.vault-h { font-size: clamp(1.5rem, 4.6vw, 2.1rem); color: #F3EFE4; }
.g-price { font-family: var(--display); font-weight: 800; font-size: clamp(3rem, 13vw, 5.4rem); line-height: 1; letter-spacing: -.03em; color: #F6D27A; font-variant-numeric: tabular-nums; margin-top: 6px; }
.g-price small { font-size: .3em; font-weight: 700; letter-spacing: 0; color: #B9B4A6; }
.g-change { font-weight: 700; color: #B9B4A6; font-variant-numeric: tabular-nums; min-height: 1.4em; }
.g-change.is-up { color: #6FDC9C; }
.g-change.is-down { color: #FF8A8A; }
.g-fx { color: #B9B4A6; font-variant-numeric: tabular-nums; white-space: pre-wrap; }
.g-asof { color: #8F8A7E; font-size: .88rem; }
.gold:not(.ready) .g-price span { opacity: .4; }
.g-chartbox { gap: 14px; }
.g-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.g-head h2, .g-calc h2, .gold .panel h2 { font-size: 1.3rem; }
.g-plot { position: relative; color: var(--gold); }
.g-plot svg { display: block; width: 100%; height: auto; touch-action: pan-y; }
.g-grid { stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 4; }
.g-tick { fill: var(--muted); font-size: 12px; font-family: var(--body); font-variant-numeric: tabular-nums; }
.g-area { fill: url(#gfill); }
.g-line { fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.g-cross { stroke: var(--muted); stroke-width: 1; }
.g-dot, .g-end { fill: currentColor; stroke: var(--surface); stroke-width: 2; }
.g-hit { fill: transparent; cursor: crosshair; }
.g-tip { position: absolute; z-index: 2; pointer-events: none; display: flex; flex-direction: column; padding: 7px 11px; border-radius: 12px; background: var(--glass-strong); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid var(--glass-line); box-shadow: 0 0 0 1px var(--glass-edge), 0 10px 24px -12px rgba(23, 22, 58, .45); font-size: .85rem; white-space: nowrap; color: var(--ink); }
.g-tip b { font-variant-numeric: tabular-nums; }
.g-tip span { color: var(--muted); font-size: .8rem; }
.g-label { font-size: .85rem; font-weight: 700; color: var(--muted); margin-top: 4px; }
.g-input { width: 100%; max-width: 220px; padding: 11px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: 1.15rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.g-out { display: flex; flex-direction: column; margin-top: 6px; font-family: var(--display); font-weight: 800; font-size: clamp(1.8rem, 6vw, 2.3rem); line-height: 1.1; font-variant-numeric: tabular-nums; }
.g-out small { font-family: var(--body); font-size: .95rem; font-weight: 600; color: var(--muted); }
.g-sizes th { width: auto; color: var(--ink); font-weight: 600; }
.g-sizes td { text-align: right; font-variant-numeric: tabular-nums; padding-right: 0; }
.g-sizes thead th, .g-sizes thead td { color: var(--muted); font-size: .85rem; }
.g-cta { text-decoration: none; transition: transform .2s ease; }
.g-cta:hover { transform: translateY(-3px); }
.g-cta .vault-h { font-size: clamp(1.4rem, 4.4vw, 2rem); max-width: 26ch; }
.g-cta-b { margin-top: 8px; align-self: flex-start; padding: 10px 18px; border-radius: 999px; background: #E9BE55; color: #1C1D26; font-weight: 800; }
.vault-link { align-self: flex-start; margin-top: 8px; color: #E9BE55; font-weight: 700; }
.pledge-feats { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

/* home: today's gold price, a door to /gold-price/ */
.goldtile { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; gap: 4px; padding: 20px 26px; border-radius: 24px; text-decoration: none; color: #F3EFE4; background: linear-gradient(135deg, #1C1D26, #0F1015); border: 1px solid #3A3526; transition: transform .2s ease; margin-top: -26px; }
.goldtile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(115deg, transparent 30%, rgba(233, 190, 85, .16) 46%, rgba(233, 190, 85, .05) 52%, transparent 66%); background-size: 260% 100%; animation: sheen 9s ease-in-out infinite; }
.goldtile:hover { transform: translateY(-3px); }
.gt-k { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #E9BE55; }
.gt-v b { font-family: var(--display); font-weight: 800; font-size: clamp(1.6rem, 6vw, 2.4rem); color: #F6D27A; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.gt-v small { font-weight: 700; color: #B9B4A6; }
.gt-s { color: #B9B4A6; font-size: .95rem; }
@media (max-width: 760px) { .goldtile { margin-top: -18px; } }

/* Metals is out: the official badge under the home phones and at the end of the Metals page */
.homestore { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0 14px; margin-top: -8px; }
.homestore span { font-weight: 700; color: var(--muted); }
.homestore .store { align-self: center; }
.getapp { align-items: flex-start; }
a.store { border-radius: 8px; }
