/* Pataca site. Plain CSS, no build step. Colors and type follow the app's "Caderneta" identity:
   dark blue cover + gold on the dark sections, paper + bronze on the light ones. */

@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 500 600; font-display: swap;
  src: url(../fonts/cormorant-garamond.woff2) format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 500; font-display: swap;
  src: url(../fonts/cormorant-garamond-italic-500.woff2) format('woff2'); }
@font-face { font-family: 'Atkinson Hyperlegible'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/atkinson-hyperlegible-400.woff2) format('woff2'); }
@font-face { font-family: 'Atkinson Hyperlegible'; font-style: normal; font-weight: 700; font-display: swap;
  src: url(../fonts/atkinson-hyperlegible-700.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Sans Condensed'; font-style: normal; font-weight: 500; font-display: swap;
  src: url(../fonts/ibm-plex-sans-condensed-500.woff2) format('woff2'); }

:root {
  --ink-0: #080d18; --ink-1: #0b111e; --ink-2: #121a2b; --ink-3: #1d2b4a;
  --gold: #c9a24b; --gold-hi: #e6c36a; --gold-soft: #d9b15a; --bronze: #8a5f1e;
  --paper: #efe9da; --cream: #f3ead2;
  --text: #e9edf5; --text-2: #c9d1e0; --text-3: #a9b3c8; --text-4: #8e9ab3;
  --on-paper: #1b2433; --on-paper-2: #2b3547; --on-paper-3: #5a6577; --navy: #121a2b;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Atkinson Hyperlegible', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --cond: 'IBM Plex Sans Condensed', 'Arial Narrow', sans-serif;
  --gutter: clamp(20px, 6vw, 96px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --vh: 1vh; /* small viewport height where supported: stays put while mobile toolbars move */
}
@supports (height: 1svh) { :root { --vh: 1svh; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; background: var(--ink-1); }
body { margin: 0; background: var(--ink-1); color: var(--text); font-family: var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; }
a { color: var(--gold-hi); }
a:hover { color: #fff; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
em { font-style: italic; }

.page { overflow-x: clip; }
.wrap { max-width: 1180px; margin: 0 auto; }

.skip { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 8px;
  background: var(--gold-hi); color: #3b2606; font-weight: 700; text-decoration: none; transition: top .2s; }
.skip:focus { top: 12px; color: #3b2606; }

/* ---------- Shared type ---------- */

.eyebrow { font-family: var(--cond); font-weight: 500; font-size: 13px; letter-spacing: .28em; text-transform: uppercase; }
.eyebrow--gold { color: var(--gold); }
.eyebrow--bronze { color: var(--bronze); }

.h2 { font-family: var(--serif); font-weight: 500; text-wrap: balance; --em: var(--bronze); }
.h2 em { color: var(--em); }
.h2--xl { margin-top: 20px; font-size: clamp(40px, 6vw, 84px); line-height: 1; color: var(--navy); }
.h2--lg { margin: 20px 0 26px; font-size: clamp(38px, 5.4vw, 76px); line-height: 1; color: var(--navy); }
.h2--invite { font-size: clamp(40px, 6.4vw, 92px); line-height: 1; color: var(--cream); --em: var(--gold-soft); }

.h3 { font-family: var(--serif); font-weight: 500; color: var(--navy); }

/* gold dotted rule (the "caderneta" perforation) */
.dots { display: block; height: 6px; background-repeat: repeat-x; background-size: 12px 6px; }
.dots--bronze { background-image: radial-gradient(circle, var(--bronze) 1.4px, transparent 1.8px); }
.dots--gold { background-image: radial-gradient(circle, var(--gold) 1.4px, transparent 1.8px); }

.label { display: flex; align-items: center; gap: 20px; }
.label .eyebrow { white-space: nowrap; }
.label .dots { flex: 1; }

/* ---------- Header ---------- */

.top { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; align-items: center;
  justify-content: space-between; gap: 12px; padding: 14px clamp(16px, 4vw, 48px);
  background: linear-gradient(#0b111ee6, #0b111e00); transition: padding .35s var(--ease); }
.top::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .35s;
  background: rgba(8, 13, 24, .84); -webkit-backdrop-filter: blur(12px) saturate(1.2); backdrop-filter: blur(12px) saturate(1.2);
  border-bottom: 1px solid #c9a24b33; }
.top.is-scrolled { padding-top: 10px; padding-bottom: 10px; }
.top.is-scrolled::before { opacity: 1; }
.top__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; transform: scaleX(0); transform-origin: left;
  background: linear-gradient(90deg, var(--bronze), var(--gold-hi)); }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text);
  font-family: var(--serif); font-size: 24px; font-weight: 600; letter-spacing: .04em; }
.brand:hover { color: var(--text); }
.brand img { display: block; width: 32px; height: 32px; }
.top__nav { display: flex; align-items: center; gap: clamp(12px, 2.4vw, 32px); font-size: 14px; }
.top__link { position: relative; padding: 6px 0; color: var(--text-2); text-decoration: none; transition: color .25s; }
.top__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold-hi);
  transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.top__link:hover, .top__link[aria-current] { color: var(--gold-hi); }
.top__link:hover::after, .top__link[aria-current]::after { transform: scaleX(1); }
.pill { padding: 9px 16px; border-radius: 999px; background: var(--gold); color: #3b2606; font-weight: 700; text-decoration: none;
  transition: background .25s, transform .25s var(--ease); }
.pill:hover { background: var(--gold-hi); color: #3b2606; transform: translateY(-1px); }

/* ---------- Buttons ---------- */

.btn { position: relative; display: inline-block; overflow: hidden; padding: 16px 28px; white-space: nowrap; border-radius: 999px;
  font-size: 16px; font-weight: 700; text-decoration: none;
  transition: transform .35s var(--ease), box-shadow .35s, background .3s, color .3s, border-color .3s; }
.btn:active { transform: translateY(0) scale(.98); }
.btn--gold { background: linear-gradient(#e0bb62, #b8903f); color: #3b2606; box-shadow: inset 0 1px 0 #fff3; }
.btn--gold::after { content: ""; position: absolute; inset: 0; transform: translateX(-130%);
  background: linear-gradient(105deg, transparent 35%, #ffffff66 50%, transparent 65%); }
.btn--gold:hover { background: linear-gradient(#ecc974, #c9a24b); color: #3b2606; transform: translateY(-2px);
  box-shadow: inset 0 1px 0 #fff4, 0 16px 30px -14px #e6c36a99; }
.btn--gold:hover::after { transform: translateX(130%); transition: transform .8s var(--ease); }
/* Apple and Google official badges, never altered (Google's PNG only trimmed of its transparent margin): only the link around them lifts on hover */
.badge { display: inline-block; line-height: 0; border-radius: 9px;
  transition: transform .35s var(--ease), box-shadow .35s; }
.badge img { display: block; width: auto; height: 52px; }
.badge--lg img { height: 64px; }
.invite__badges { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px; }
.badge:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -14px #000; }
.badge:active { transform: translateY(0) scale(.98); }

/* ---------- 01 Hero ---------- */

.hero { position: relative; display: flex; align-items: center; overflow: hidden;
  min-height: 100vh; min-height: calc(var(--vh) * 100);
  background: radial-gradient(ellipse at 72% 45%, #1d2b4a 0%, #121a2b 45%, #080d18 100%); }
.hero__grain { position: absolute; inset: 0; opacity: .07; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E"); }

.coin-stage { --size: min(calc(var(--vh) * 92), 74vw); position: absolute; right: -16vw; top: 50%;
  width: var(--size); aspect-ratio: 1; margin-top: calc(var(--size) / -2); }
.coin-enter { position: absolute; inset: 0; }
.coin { position: absolute; inset: 0; will-change: transform; }
.coin__shadow { position: absolute; inset: 0; border-radius: 50%; background: #4a3310; transform: translate(1.4%, 2.2%);
  box-shadow: 0 60px 120px 10px #000000b0; }
.coin__rim { position: absolute; inset: -1.2%; border-radius: 50%;
  background: conic-gradient(from 200deg, #e6c36a, #8a5f1e, #c9a24b, #5a3d12, #e6c36a 55%, #a67c2e, #e6c36a); }
.coin__face { position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  filter: drop-shadow(0 -1px 0 #ffe9a888) drop-shadow(0 2px 1.5px #000000aa); }
.coin__vignette { position: absolute; inset: 0; border-radius: 50%; pointer-events: none; mix-blend-mode: multiply;
  background: radial-gradient(circle, transparent 55%, #00000066 100%); }
/* the light that slides over the coin: the spot moves by transform only (no repaint) */
.sheen { position: absolute; inset: 2.5%; border-radius: 50%; overflow: hidden; pointer-events: none; mix-blend-mode: soft-light; }
.sheen__spot { position: absolute; left: -20%; top: -20%; width: 140%; height: 140%; display: block;
  background: radial-gradient(circle, #fff6dcf2 0, #fff6dc00 34%); transform: translate(-12%, -14%); will-change: transform; }

.hero__scrim { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, #080d18ee 0%, #080d18b0 38%, #080d1800 70%); }
.hero__content { position: relative; z-index: 2; max-width: 760px; padding: 120px var(--gutter) 110px; will-change: transform, opacity; }
.hero__content .eyebrow { margin-bottom: 28px; }
.hero__title { font-family: var(--serif); font-weight: 500; font-size: clamp(46px, 8.2vw, 112px); line-height: .96;
  letter-spacing: -.01em; color: var(--cream); text-wrap: balance; }
.hero__title em { color: var(--gold-soft); font-weight: 500; }
.hero__lead { margin-top: 32px; max-width: 30em; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.55; color: var(--text-2); }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 40px; }

/* words: each one rises out of its own clip box (padding/margin keep the descenders inside the box) */
.w { display: inline-block; vertical-align: top; overflow: hidden; padding: 0 .06em .16em; margin: 0 -.06em -.16em; }
.w > span { display: inline-block; }

.cue { position: absolute; left: var(--gutter); bottom: 28px; z-index: 2; display: flex; align-items: center; gap: 14px;
  color: var(--text-3); text-decoration: none; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; }
.cue:hover { color: var(--gold-hi); }
.cue__line { display: block; width: 1px; height: 44px; background: var(--gold); animation: cue 2.4s ease-in-out infinite; }
@keyframes cue {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- 02 Experimente: navigable phone ----------
   Sizes inside the device are in em, so the whole screen scales with --w. The colors are the
   app's light theme (mobile/lib/theme.ts). */

.demo { padding: clamp(48px, 5vw, 76px) var(--gutter) clamp(90px, 11vw, 160px);
  background: radial-gradient(ellipse 58% 52% at 70% 50%, #1d2b4a99, #1d2b4a00 100%), #080d18; }
.demo__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: clamp(40px, 7vw, 110px); row-gap: 30px; align-items: center; }
.demo__stage { display: flex; justify-content: center; }
.h2--demo { margin-top: 18px; font-size: clamp(42px, 5.6vw, 78px); line-height: 1; color: var(--cream); --em: var(--gold-soft); }
.demo__lead { margin-top: 22px; max-width: 29em; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.6; color: var(--text-2); }
.demo__hint { display: none; margin-top: 12px; color: var(--gold-hi); font-size: 16px; }
.demo--live .demo__hint { display: block; }

.demo__device { --w: max(264px, min(86vw, 340px, calc(var(--vh) * 36)));
  --base: #f3f5f0; --surface: #fbfcf9; --paper-chip: #e8e5da; --hover: #e6eae2; --line: #c9d4e3; --ink: #1b2433; --ink-soft: #2b3547;
  --muted: #445063; --dim: #5a6577; --faint: #8a93a3; --accent: #121a2b; --on-accent: #e6c36a; --accent-text: #8a5f1e;
  --pos: #2340a6; --neg: #cc2f2a; --warn: #b8861b; --cyan: #3e8e7e; --violet: #7a5ba6;
  position: relative; display: flex; flex-direction: column; overflow: hidden; width: var(--w); height: calc(var(--w) * 2.12);
  padding: 0; border: 6px solid #05080f; border-radius: calc(var(--w) * .125); background: var(--base); color: var(--ink);
  font-family: var(--sans); font-size: calc(var(--w) / 23); line-height: 1.35; text-align: left;
  box-shadow: 0 0 0 1px #c9a24b4d, 0 50px 90px -24px #000000d9; }
.dm-status { flex: none; display: flex; align-items: center; justify-content: space-between; padding: 1em 1.6em .3em; background: var(--base);
  color: var(--dim); font-family: var(--cond); font-size: .82em; }
.dm-status svg { display: block; width: 2.9em; height: 1em; fill: currentColor; }
.dm-view { flex: 1; min-height: 0; overflow-x: hidden; overflow-y: auto; scrollbar-width: none; touch-action: pan-y pinch-zoom; outline-offset: -2px; }
.dm-view--asleep { overflow-y: hidden; }
.dm-view::-webkit-scrollbar { display: none; }
.dm-view:focus-visible { outline: 2px solid var(--accent-text); }
.dm-screen { padding: .5em 1em 1.3em; }
.dm-screen p { margin: 0; }
.dm-screen hr { height: 1px; margin: 1.05em 0; border: 0; background: var(--line); }
.dm-screen h4 { margin: .95em 0 .65em; font-size: 1em; font-weight: 700; color: var(--ink-soft); }
.dm-screen button { color: inherit; font: inherit; cursor: pointer; }
.dm-screen button:focus-visible, .dm-tabs button:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 1px; }
.dm-screen small { font-size: .78em; }
.dm-muted { color: var(--dim); font-size: .88em; }
.dm-gap { margin-top: .55em !important; }
.dm-muted b { color: var(--ink); font-family: var(--cond); font-weight: 500; }
.dm-big, .dm-mid { font-family: var(--cond); font-weight: 500; letter-spacing: -.01em; }
.dm-big { font-size: 2.15em; line-height: 1.12; }
.dm-mid { font-size: 1.55em; line-height: 1.2; }
.dm-pos { color: var(--pos); }
.dm-neg { color: var(--neg); }
.dm-screen b { font-family: var(--cond); font-weight: 500; white-space: nowrap; }

.dm-month { display: grid; grid-template-columns: 2.5em 1fr 2.5em; align-items: center; min-height: 2.5em; margin-bottom: .7em;
  border-radius: .3em; background: var(--paper-chip); text-align: center; font-size: .95em; }
.dm-month--still { grid-template-columns: 1fr; }
.dm-month button { min-height: 2.5em; padding: 0; border: 0; background: transparent; color: var(--dim) !important; font-size: 1.15em !important; }
.dm-month button:disabled { opacity: .3; cursor: default; }
.dm-hello { display: flex; align-items: center; justify-content: space-between; margin-bottom: .55em; font-size: 1.05em; }
.dm-tag { padding: .22em .6em; border-radius: .3em; background: var(--paper-chip); color: var(--accent-text); font-size: .78em; font-weight: 700; }
.dm-pair { display: grid; grid-template-columns: 1fr 1fr; gap: .55em; margin-top: .6em; }
.dm-pair > div { padding: .48em .55em; border-radius: .3em; background: var(--paper-chip); white-space: nowrap; }
.dm-pair small { color: var(--dim); }

.dm-donut { position: relative; width: 9.2em; aspect-ratio: 1; margin: 0 auto .7em; }
.dm-donut svg { display: block; width: 100%; height: 100%; }
.dm-donut > div { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.dm-donut span { color: var(--faint); font-size: .72em; }
.dm-donut b { font-size: 1.05em; }
.dm-s-pos { stroke: var(--pos); } .dm-s-neg { stroke: var(--neg); } .dm-s-cyan { stroke: var(--cyan); }
.dm-s-warn { stroke: var(--warn); } .dm-s-violet { stroke: var(--violet); } .dm-s-faint { stroke: var(--faint); }
.dm-b-pos { background: var(--pos); } .dm-b-neg { background: var(--neg); } .dm-b-cyan { background: var(--cyan); }
.dm-b-warn { background: var(--warn); } .dm-b-violet { background: var(--violet); } .dm-b-faint { background: var(--faint); }
.dm-legend { margin: 0; padding: 0; list-style: none; }
.dm-legend li { display: grid; grid-template-columns: .65em minmax(0, 1fr) auto 5.2em; align-items: center; gap: .5em; padding: .22em 0; font-size: .9em; }
.dm-legend i { width: .65em; height: .65em; border-radius: 50%; }
.dm-legend span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-legend small { color: var(--faint); }
.dm-legend b { text-align: right; }

.dm-primary { display: block; width: 100%; min-height: 2.7em; margin: .1em 0 .75em; padding: .5em; border: 0; border-radius: .35em;
  background: var(--accent); color: var(--on-accent) !important; font-weight: 700 !important; }
.dm-primary:disabled { opacity: .45; cursor: default !important; }
.dm-ghost { display: block; width: 100%; min-height: 2.5em; margin-bottom: .55em; border: 1px solid var(--line); border-radius: .35em; background: transparent; }
.dm-seg { display: flex; overflow: hidden; margin-bottom: .75em; border: 1px solid var(--line); border-radius: .4em; background: var(--surface); }
.dm-seg button { flex: 1; min-width: 0; min-height: 2.35em; padding: .25em; border: 0; background: transparent; color: var(--dim) !important; font-size: .84em !important; font-weight: 700 !important; }
.dm-seg button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent) !important; }
.dm-seg--tight button { padding: .25em 0; font-size: .74em !important; }
.dm-day { margin-top: .6em !important; color: var(--faint); font-family: var(--cond); font-size: .76em; }
.dm-row { display: flex; align-items: center; justify-content: space-between; gap: .6em; padding: .52em 0; border-bottom: 1px solid var(--line); font-size: .92em; }
.dm-row > div:first-child { min-width: 0; }
.dm-row strong { display: block; overflow: hidden; font-family: var(--cond); font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.dm-row small { display: block; overflow: hidden; color: var(--faint); text-overflow: ellipsis; white-space: nowrap; }
.dm-right { flex: none; text-align: right; }

.dm-top { margin: .15em -1em .8em; padding: 0 1em .7em; border-bottom: 1px solid var(--line); text-align: center; }
.dm-top span { color: var(--dim); }
.dm-subtop { display: flex; align-items: center; gap: .55em; margin: 0 0 .75em; font-size: 1.05em; }
.dm-subtop button { width: 2.3em; height: 2.3em; padding: 0; border: 0; border-radius: 50%; background: var(--paper-chip); font-size: .95em !important; }
.dm-stats { display: grid; grid-template-columns: 1fr 1fr; gap: .55em; margin-bottom: .2em; }
.dm-stats > div { display: flex; flex-direction: column; min-width: 0; padding: .5em .6em; border-radius: .3em; background: var(--paper-chip); }
.dm-stats small { color: var(--dim); }
.dm-stats b { font-size: 1.12em; }
.dm-chartnote { margin-bottom: .55em !important; font-size: .74em; color: var(--dim); }
.dm-chartnote strong { color: var(--ink); }
.dm-bars { display: flex; align-items: flex-end; gap: 2px; height: 7em; }
.dm-bars > div { display: flex; flex: 1; flex-direction: column; justify-content: flex-end; min-width: 0; height: 100%; }
.dm-bars span { display: block; flex: none; }
.dm-applied { background: #c0c5ca; }
.dm-gain { background: #8c9fd6; }
.dm-bars .is-last .dm-applied { background: #8a93a3; }
.dm-bars .is-last .dm-gain, .dm-solid { background: var(--pos); }
.dm-axis { display: flex; justify-content: space-between; margin-top: .4em; color: var(--faint); font-family: var(--cond); font-size: .62em; }
.dm-chips { display: flex; gap: .4em; margin-bottom: .6em; }
.dm-chips button { min-height: 2.1em; padding: .15em .8em; border: 1px solid var(--line); border-radius: 99em; background: transparent; color: var(--dim) !important; font-size: .82em !important; }
.dm-chips button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent) !important; }
.dm-line { display: block; width: 100%; height: auto; overflow: visible; }
.dm-line line { stroke: var(--line); stroke-width: 1; }
.dm-line polyline { fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.dm-l-carteira { stroke: var(--pos); } .dm-l-CDI { stroke: var(--warn); } .dm-l-IPCA { stroke: var(--faint); }
.dm-key { display: flex; flex-wrap: wrap; gap: .9em; margin-top: .45em; color: var(--dim); font-size: .78em; }
.dm-key span { display: inline-flex; align-items: center; gap: .35em; }
.dm-key i { width: .7em; height: .7em; border-radius: 50%; }
.dm-k-carteira { background: var(--pos); } .dm-k-CDI { background: var(--warn); } .dm-k-IPCA { background: var(--faint); }
.dm-table { display: grid; grid-template-columns: repeat(4, 1fr); gap: .3em; }
.dm-table div { display: flex; flex-direction: column; padding: .3em .35em; border-radius: .25em; background: var(--hover); }
.dm-table small { color: var(--dim); }
.dm-table b { font-size: .85em; }
.dm-foot { margin-top: .95em !important; color: var(--dim); font-size: .72em; line-height: 1.4; }

.dm-compare { display: grid; grid-template-columns: 1fr 1fr; gap: .8em; }
.dm-compare > div { display: flex; flex-direction: column; min-width: 0; }
.dm-compare span { color: var(--dim); font-size: .84em; }
.dm-compare b { font-size: 1.35em; }
.dm-compare small { font-family: var(--cond); line-height: 1.2; }

.dm-link, .dm-radio, .dm-check { display: flex; align-items: center; justify-content: space-between; gap: .6em; width: 100%; margin-bottom: .5em; padding: .65em .7em;
  border: 1px solid var(--line); border-radius: .35em; background: var(--surface); text-align: left; }
.dm-link span, .dm-radio span, .dm-check span { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.dm-link small, .dm-radio small, .dm-check small { color: var(--dim); }
.dm-link i { color: var(--dim); font-style: normal; font-size: 1.3em; }
.dm-radio[aria-pressed="true"] { border-color: var(--accent); background: var(--paper-chip); }
.dm-radio i { flex: none; width: 1.2em; height: 1.2em; border: 2px solid var(--line); border-radius: 50%; }
.dm-radio[aria-pressed="true"] i { border-color: var(--accent); background: var(--accent); }
.dm-check { padding: .5em .6em; font-size: .9em; }
.dm-check strong { overflow: hidden; font-family: var(--cond); font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.dm-check i { display: grid; flex: none; place-items: center; width: 1.25em; height: 1.25em; border: 1px solid var(--line); border-radius: .25em; font-style: normal; font-size: .9em; }
.dm-check[aria-pressed="true"] i { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.dm-check[aria-pressed="false"] { opacity: .62; }
.dm-file { display: flex; flex-direction: column; align-items: center; width: 100%; margin-top: .3em; padding: 1em .5em; border: 1.5px dashed var(--accent); border-radius: .5em; background: var(--paper-chip); }
.dm-file small { color: var(--dim); }
.dm-done { margin: .5em 0 1em; padding: 1em; border-radius: .4em; background: var(--paper-chip); }
.dm-done p { margin-top: .35em !important; color: var(--dim); font-size: .86em; }
.dm-cats { display: flex; flex-wrap: wrap; gap: .35em; }
.dm-cats span { padding: .2em .55em; border-radius: .3em; background: var(--hover); color: var(--muted); font-size: .72em; }

.dm-person { display: flex; align-items: center; gap: .5em; margin: .65em 0 .35em; }
.dm-avatar { display: grid; place-items: center; width: 1.7em; height: 1.7em; border-radius: 50%; color: var(--base); font-size: .85em; font-weight: 700; }
.dm-meter { display: grid; grid-template-columns: 2.8em minmax(0, 1fr) 5.1em; align-items: center; gap: .4em; margin-bottom: .22em; font-size: .82em; }
.dm-meter > span { color: var(--dim); }
.dm-meter > div { overflow: hidden; height: .5em; border-radius: 1em; background: var(--hover); }
.dm-meter i { display: block; height: 100%; border-radius: 1em; }
.dm-meter b { text-align: right; }
.dm-owes { font-size: 1em; }
.dm-owes strong { font-weight: 700; }

.dm-tabs { display: none; flex: none; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: .15em .1em 0; border-top: 1px solid var(--line); background: var(--surface); }
.demo--live .dm-tabs { display: grid; }
.dm-tabs button { position: relative; display: flex; flex-direction: column; align-items: center; gap: .08em; min-width: 0; min-height: 3.3em; padding: .42em 0 .2em; border: 0; background: transparent;
  color: var(--faint); font: inherit; font-size: .58em; line-height: 1.15; cursor: pointer; transition: color .18s; }
.dm-tabs button::before { content: ""; position: absolute; top: -.25em; left: 50%; width: 3em; height: .32em; margin-left: -1.5em; border-radius: 0 0 .3em .3em; background: var(--gold); transform: scaleX(0); transition: transform .22s var(--ease); }
.dm-tabs button[aria-selected="true"] { color: var(--accent); }
.dm-tabs button[aria-selected="true"]::before { transform: scaleX(1); }
.dm-tabs svg { display: block; width: 2.5em; height: 2.5em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dm-tabs span { max-width: 100%; overflow: hidden; white-space: nowrap; }
.dm-home { flex: none; height: 1em; background: var(--surface); }
.dm-home::after { content: ""; display: block; width: 34%; height: .22em; margin: .3em auto 0; border-radius: 1em; background: #5a6577; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: no-preference) {
  .dm-enter { animation: dm-in .22s var(--ease) both; }
  @keyframes dm-in { from { opacity: 0; transform: translate3d(.7em, 0, 0); } to { opacity: 1; transform: none; } }
}

@media (max-width: 900px) {
  .demo__grid { grid-template-columns: minmax(0, 1fr); row-gap: 34px; text-align: center; }
  .demo__device { --w: max(264px, min(86vw, 340px, calc(var(--vh) * 41.5))); }
  .demo__lead { margin-left: auto; margin-right: auto; }
}

/* On a phone the device itself is the message: it has to show up right after the title. */
@media (max-width: 640px) {
  .demo__grid { row-gap: 24px; }
  .demo--live .demo__lead { display: none; }
}

/* ---------- 03 Filosofia / paper sections ---------- */

.paper { position: relative; background: var(--paper); color: var(--on-paper); }
.dark { position: relative; }

.philosophy { padding: 0 var(--gutter); }
.philosophy__fade { position: absolute; top: -1px; left: 0; right: 0; height: 120px; background: linear-gradient(#080d18, #efe9da); }
.philosophy__dots { position: absolute; top: 119px; left: 0; right: 0; }
.philosophy__grid { position: relative; display: grid; align-items: start; gap: clamp(32px, 6vw, 96px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  padding: clamp(150px, 18vw, 230px) 0 clamp(90px, 12vw, 170px); }
.philosophy__text { padding-top: clamp(0px, 3vw, 48px); font-size: clamp(17px, 1.4vw, 20px); line-height: 1.7; color: var(--on-paper-2); }
.philosophy__text p { margin: 0 0 1.2em; }
.philosophy__text strong { color: var(--navy); font-weight: 700; }
.philosophy__text .philosophy__quote { margin: 1.1em 0 .9em; font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(30px, 3vw, 42px); line-height: 1.08; color: var(--bronze); text-wrap: balance; }
.philosophy__text .philosophy__note { margin: 0; font-family: var(--cond); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--on-paper-3); }

/* ---------- 04 O aplicativo: sideways journey ----------
   The base rules are a plain list (no JS, reduced motion, very short screens). site.js adds .jr-on
   for the pinned version. Inside .jr__stage 1em = the coin's diameter, so every scene scales with it. */

.journey { position: relative; color: var(--text);
  background: radial-gradient(ellipse at 66% 60%, #1d2b4a, #121a2b 48%, #080d18); }
.jr__pin { padding: clamp(80px, 10vw, 130px) var(--gutter); }
.jr__hud { max-width: 1180px; margin: 0 auto 44px; }
.jr__hud h2 { margin: 0; font-weight: 500; }
.jr__stops, .jr__ground, .jr__stage { display: none; }
.jr__track { display: grid; gap: 48px clamp(40px, 7vw, 110px); max-width: 1180px; margin: 0 auto;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.jr__no { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-style: italic; font-size: 34px; line-height: 1; color: var(--gold); }
.jr__new { padding: 4px 8px; border-radius: 4px; background: var(--gold); color: #3b2606;
  font-family: var(--cond); font-style: normal; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.jr__panel h3 { margin: 10px 0 16px; font-size: clamp(36px, 4.6vw, 66px); line-height: 1; color: var(--cream); text-wrap: balance; }
.jr__panel p:not(.jr__no) { font-size: clamp(16px, 1.35vw, 19px); line-height: 1.6; color: var(--text-2); }
.jr__panel p.jr__note { margin-top: 12px; font-size: 14px; line-height: 1.45; color: var(--text-3); }

/* The negative margin makes the menu link land on the first stop, already built. */
.jr-on { height: calc(var(--vh) * 430); scroll-margin-top: calc(var(--vh) * -24 - 72px); }
/* clip, not hidden: a hidden box can still be scrolled sideways by the browser's find-in-page. */
.jr-on .jr__pin { --S: min(calc(var(--vh) * 30), 20vw); --cx: 67%; --gy: 77%;
  position: sticky; top: 0; overflow: hidden; overflow: clip; height: calc(var(--vh) * 100); padding: 0; }
.jr-on .jr__hud { position: absolute; z-index: 3; top: 88px; left: var(--gutter); right: var(--gutter); display: flex; align-items: center; gap: 22px; max-width: none; margin: 0; }
.jr-on .jr__stops { display: flex; gap: 16px; margin: 0; padding: 0; list-style: none; font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--text-4); }
.jr__stops li { transition: color .25s; }
.jr__stops li.is-on { color: var(--gold-hi); }
.jr-on .jr__track { position: absolute; z-index: 2; top: 0; bottom: 0; left: 0; display: flex; gap: 0; width: 400%; max-width: none; margin: 0; will-change: transform; }
.jr-on .jr__panel { display: flex; flex: 0 0 25%; flex-direction: column; justify-content: center; min-width: 0; padding: 120px var(--gutter) 40px; }
.jr-on .jr__panel > * { max-width: min(38vw, 520px); }
.jr-on .jr__no { font-size: clamp(56px, 7vw, 104px); }
.jr-on .jr__ground { position: absolute; z-index: 1; top: var(--gy); left: 0; display: block; width: calc(100% + 24px); height: 6px;
  background-image: radial-gradient(circle, var(--gold) 1.4px, transparent 1.8px); background-size: 12px 6px; background-repeat: repeat-x; will-change: transform; }
.jr-on .jr__stage { position: absolute; z-index: 1; top: var(--gy); left: var(--cx); display: block; width: 0; height: 0; font-size: var(--S); }

.jr__coin { position: absolute; z-index: 3; left: -.5em; bottom: 0; width: 1em; height: 1em; will-change: transform; }
.jr__coin-shadow { position: absolute; left: .06em; right: .06em; bottom: -.06em; height: .12em; border-radius: 50%; background: radial-gradient(#000000b3, transparent 70%); }
.jr__spin { position: absolute; inset: 0; will-change: transform; }
.jr__rim { position: absolute; inset: -1.2%; border-radius: 50%;
  background: conic-gradient(from 200deg, #e6c36a, #8a5f1e, #c9a24b, #5a3d12, #e6c36a 55%, #a67c2e, #e6c36a); }
.jr__spin img, .jr-half img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }

.jr-scene { --t: 0; position: absolute; top: 0; left: 0; width: 0; height: 0; visibility: hidden; }
.jr-at { position: absolute; width: 0; height: 0; }
.jr-chip { position: absolute; transform: translate(-50%, -50%); padding: .35em .7em; border: 1px solid #c9a24b66; border-radius: 99px; background: #0b111ee6;
  color: var(--text); font-family: var(--cond); font-size: max(12px, .056em); line-height: 1.2; white-space: nowrap; opacity: var(--t); }
.jr-chip b { font-weight: 500; color: var(--gold-hi); }

/* I. the coin prints the statement */
.jr-receipt { position: absolute; left: -.6em; bottom: .5em; width: 1.2em; height: 1.2em; padding: .07em .08em; border-radius: .025em .025em 0 0; background: var(--paper); color: var(--on-paper);
  box-shadow: 0 .06em .2em #0009; clip-path: inset(calc((1 - var(--t)) * 100%) -1em 0 -1em); transform: translate3d(0, calc((1 - var(--t)) * .35em), 0); }
.jr-rows { font-family: var(--cond); font-size: max(11px, .052em); line-height: 1.2; }
.jr-rows strong { display: block; margin-bottom: .45em; padding-bottom: .35em; border-bottom: 1px dashed #8a5f1e88; color: var(--bronze); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.jr-rows div { display: flex; justify-content: space-between; gap: .6em; padding: .16em 0; white-space: nowrap; }
.jr-rows .in { color: #2340a6; }
.jr-rows .out { color: #cc2f2a; }

/* II. the coin becomes the middle of the chart */
.jr-ring { position: absolute; left: -.92em; top: -1.42em; display: block; width: 1.84em; height: 1.84em; overflow: visible; }

/* III. stacks of coins */
.jr-stack { --st: clamp(0, calc((var(--t) - var(--i) * .1) / .55), 1); position: absolute; bottom: 0; width: .17em; border-radius: .02em;
  background: repeating-linear-gradient(0deg, #6f4c17 0, #6f4c17 .008em, #e6c36a .008em, #c9a24b .036em);
  clip-path: inset(calc((1 - var(--st)) * 100%) 0 0 0); }

/* IV. the coin splits between the two */
.jr-scene--couple { --s: clamp(0, calc((var(--t) - .08) / .6), 1); }
.jr-half { position: absolute; left: -.5em; bottom: 0; width: 1em; height: 1em; visibility: hidden; }
.is-split .jr-half { visibility: inherit; }
.jr-half i { position: absolute; inset: -1.2%; border-radius: 50%; background: conic-gradient(from 200deg, #e6c36a, #8a5f1e, #c9a24b, #5a3d12, #e6c36a 55%, #a67c2e, #e6c36a); }
.jr-half--a { clip-path: inset(-2% 50% -2% -2%); transform: translate3d(calc(var(--s) * -.34em), 0, 0); }
.jr-half--b { clip-path: inset(-2% -2% -2% 50%); transform: translate3d(calc(var(--s) * .34em), 0, 0); }
.jr-scene--couple .jr-chip { opacity: var(--s); }

@media (max-width: 900px), (max-aspect-ratio: 1/1) {
  .jr-on .jr__pin { --S: min(calc(var(--vh) * 21), 46vw); --cx: 50%; --gy: 85%; }
  .jr-on .jr__hud { top: 74px; }
  .jr-on .jr__panel { justify-content: flex-start; padding: 116px var(--gutter) 0; }
  .jr-on .jr__panel > * { max-width: 620px; }
  .jr-on .jr__no { font-size: 34px; }
  .jr-on .jr__panel h3 { margin: 6px 0 10px; font-size: clamp(30px, 8.4vw, 52px); }
  .jr-on .jr__panel p:not(.jr__no):not(.jr__note) { font-size: 15.5px; line-height: 1.45; }
  .jr-on .jr__panel p.jr__note { margin-top: 6px; font-size: 12.5px; line-height: 1.35; }
}

/* Small phones: the tallest stack needs the room under the text. */
@media (max-width: 340px) { .jr-on .jr__pin { --S: min(calc(var(--vh) * 17), 42vw); } }
@media (max-width: 900px) and (max-height: 600px) { .jr-on .jr__pin { --S: min(calc(var(--vh) * 16), 42vw); --gy: 88%; } }

/* ---------- 05 A moeda ---------- */

.mint { padding: clamp(90px, 12vw, 170px) var(--gutter); overflow: hidden; }
.mint__grid { display: grid; align-items: center; gap: clamp(32px, 6vw, 96px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.mint__p { margin-bottom: 1em; font-size: 18px; line-height: 1.7; color: var(--on-paper-2); }
.mint__p:last-child { margin-bottom: 0; }

.macro-col { container-type: inline-size; }
/* 1em = 1/48 of the coin, so the rim thickness (in em) scales with the coin on any screen */
.macro { position: relative; width: min(100cqw, 480px); aspect-ratio: 1; margin: 0 auto;
  font-size: calc(min(100cqw, 480px) / 48); }
/* No preserve-3d / backface-visibility: iOS Safari painted the rim slices over both faces. Every layer carries its
   own perspective() + rotateY (as the hero coin does), site.js sets --a and adds .is-back once the back faces us,
   which reverses the stacking (--s) and swaps the faces. */
.macro__spin { --a: 0deg; --s: 1; position: absolute; inset: 0; }
.macro__spin.is-back { --s: -1; }
.macro__body i { position: absolute; inset: 0; border-radius: 50%; z-index: calc(var(--s) * var(--z) * 5 + 5);
  transform: perspective(1400px) rotateY(var(--a)) translateZ(calc(var(--z) * 1em));
  background: conic-gradient(from 200deg, #e6c36a, #8a5f1e, #c9a24b, #5a3d12, #e6c36a); }
.macro__body i:nth-child(even) { background: conic-gradient(from 20deg, #a67c2e, #5a3d12, #c9a24b, #8a5f1e, #a67c2e); }
.macro__face { position: absolute; inset: 0; border-radius: 50%; z-index: 20; }
.macro__face--front { transform: perspective(1400px) rotateY(var(--a)) translateZ(.9em); }
.macro__face--back { visibility: hidden; transform: perspective(1400px) rotateY(calc(var(--a) + 180deg)) translateZ(.9em); }
.macro__spin.is-back .macro__face--front { visibility: hidden; }
.macro__spin.is-back .macro__face--back { visibility: visible; }
.macro__face img { position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  filter: drop-shadow(0 -1px 0 #ffe9a888) drop-shadow(0 2px 1.5px #000a); }
.macro__ground { position: absolute; z-index: 30; left: 12%; right: 12%; bottom: -4%; height: 6%; border-radius: 50%;
  background: radial-gradient(#121a2b66, transparent 70%); }

/* ---------- 06 Convite ---------- */

.invite { display: flex; align-items: center; justify-content: center; overflow: hidden; text-align: center;
  min-height: 90vh; min-height: calc(var(--vh) * 90);
  padding: clamp(80px, 10vw, 140px) var(--gutter);
  background: radial-gradient(ellipse at 50% 38%, #1d2b4a, #121a2b 50%, #080d18); }
.invite__inner { position: relative; display: flex; flex-direction: column; align-items: center; max-width: 820px; }
.invite .eyebrow { margin-bottom: 22px; }
.crest { position: relative; width: clamp(130px, 18vw, 200px); aspect-ratio: 1; margin-bottom: 44px; will-change: transform; }
.crest__coin { position: absolute; inset: 0; }
.crest__shadow { position: absolute; inset: 0; border-radius: 50%; background: #4a3310; transform: translate(1.4%, 2.2%); box-shadow: 0 30px 70px #000c; }
.crest__rim { position: absolute; inset: -1.4%; border-radius: 50%;
  background: conic-gradient(from 200deg, #e6c36a, #8a5f1e, #c9a24b, #5a3d12, #e6c36a 55%, #a67c2e, #e6c36a); }
.crest img { position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  filter: drop-shadow(0 -1px 0 #ffe9a888) drop-shadow(0 2px 1.5px #000a); }
.invite__lead { margin: 26px 0 38px; max-width: 30em; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; color: var(--text-2); }
.invite__store { margin-top: 20px; font-family: var(--cond); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--text-3); }
.invite__store span { display: inline-block; }
@media (max-width: 520px) {
  .invite__store span { display: block; line-height: 1.9; }
  .invite__store .sep { display: none; }
}

/* ---------- Footer ---------- */

.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 48px;
  padding: 44px var(--gutter); background: var(--ink-0); border-top: 1px solid #c9a24b44; }
.foot__brand { display: flex; align-items: center; gap: 14px; }
.foot__brand img { display: block; width: 40px; height: 40px; }
.foot__name { font-family: var(--serif); font-size: 26px; font-weight: 600; letter-spacing: .04em; color: var(--cream); }
.foot__tag { font-size: 14px; color: var(--text-3); }
.foot__nav { display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 14px; }
.foot__nav a { color: var(--gold-hi); }
.foot__nav a:hover { color: #fff; }
.foot__copy { width: 100%; font-size: 13px; color: var(--text-4); }

/* ---------- Motion ----------
   Every "before" state lives here, behind .js and no-preference, so without JS or with
   reduced motion the page is simply there. site.js only adds classes (.in, .is-in) and
   moves the few scroll/pointer-linked layers by transform. */

@media (prefers-reduced-motion: no-preference) {
  /* reveal on scroll */
  .js:not(.static) [data-rv] { opacity: 0; transform: translate3d(0, 28px, 0);
    transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
  .js:not(.static) [data-rv].in { opacity: 1; transform: none; }
  .js:not(.static) [data-rv].in.now { transition: none; }
  .js:not(.static) [data-rv="phone"] { transform: translate3d(0, 64px, 0) rotate(1.6deg) scale(.96); transform-origin: 50% 100%;
    transition-duration: 1.1s; }
  .js:not(.static) [data-rv="phone"].in { transform: none; }
  .js:not(.static) [data-rv="scale"] { transform: scale(.82); }
  .js:not(.static) [data-rv="scale"].in { transform: none; }

  /* emphasis words light up after their heading has risen */
  .js:not(.static) [data-rv] .h2 em, .js:not(.static) .h2[data-rv] em { color: inherit; transition: color 1.1s ease .55s; }
  .js:not(.static) [data-rv].in .h2 em, .js:not(.static) .h2[data-rv].in em { color: var(--em); }

  /* hero intro: starts when the fonts are in (site.js adds .is-in) */
  .js:not(.static) .hero [data-in] { opacity: 0; }
  .js:not(.static) .hero .w > span { transform: translate3d(0, 118%, 0); }
  .js:not(.static) .coin-enter { opacity: 0; }
  .js:not(.static) .hero.is-in [data-in] { animation: rise 1s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms + 120ms); }
  .js:not(.static) .hero.is-in .w > span { animation: word 1.05s var(--ease) both; animation-delay: calc(var(--i, 0) * 80ms + 120ms); }
  .js:not(.static) .hero.is-in .coin-enter { animation: coin-in 1.9s cubic-bezier(.16, .8, .24, 1) .05s both; }
  .js:not(.static) .hero.is-in .shine .w > span { animation: word 1.05s var(--ease) both, shimmer 2.6s ease-in-out 1.7s both; animation-delay: calc(var(--i, 0) * 80ms + 120ms), 1.7s; }
  .js:not(.static) .cue { opacity: 0; }
  .js:not(.static) .hero.is-in .cue { animation: rise 1s var(--ease) 1.6s both; }

  .shine .w > span { background: linear-gradient(100deg, var(--gold-soft) 0 38%, #fff3c4 50%, var(--gold-soft) 62% 100%) 100% 0 / 260% 100% no-repeat;
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }

  @keyframes rise { from { opacity: 0; transform: translate3d(0, 26px, 0); } to { opacity: 1; transform: none; } }
  @keyframes word { from { transform: translate3d(0, 118%, 0); } to { transform: none; } }
  @keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
  @keyframes coin-in {
    from { opacity: 0; transform: perspective(1400px) translate3d(7%, 0, 0) rotateY(-74deg) scale(.84); }
    60% { opacity: 1; }
    to { opacity: 1; transform: perspective(1400px) translate3d(0, 0, 0) rotateY(0deg) scale(1); }
  }

  /* brand coin flips on hover */
  .brand img { transition: transform .9s var(--ease); }
  .brand:hover img { transform: perspective(200px) rotateY(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .shine .w > span { background: none; -webkit-text-fill-color: currentColor; }
}
/* the shimmer text needs a visible fallback when background-clip is missing or the page is static */
.js.static .shine .w > span, .static .shine .w > span { background: none; -webkit-text-fill-color: currentColor; color: var(--gold-soft); }

/* ---------- Responsive ---------- */

/* Mid-width landscape (small laptops, tablets on their side): less coin, narrower text, so they overlap less */
@media (min-width: 901px) and (max-width: 1240px) and (min-aspect-ratio: 1/1) {
  .coin-stage { --size: min(calc(var(--vh) * 86), 62vw); right: -13vw; }
  .hero__content { max-width: min(760px, 56vw); }
  .hero__title { font-size: clamp(46px, 7vw, 112px); }
}

/* Narrow or portrait screens: coin above the text instead of behind it */
@media (max-width: 900px), (max-aspect-ratio: 1/1) {
  .hero { flex-direction: column; justify-content: flex-start; align-items: center; padding-top: 70px; }
  .coin-stage { --size: min(64vw, calc(var(--vh) * 34), 420px); position: relative; right: auto; top: auto; flex: none;
    margin: clamp(10px, 3vh, 36px) auto 0; }
  .hero__scrim { display: none; }
  .hero__content { width: 100%; padding: clamp(22px, 4vh, 44px) var(--gutter) 84px; text-align: center; }
  .hero__content .eyebrow { margin-bottom: 20px; }
  .hero__title { font-size: clamp(42px, 11.4vw, 84px); }
  .hero__lead { margin: 22px auto 0; }
  .hero__cta { justify-content: center; margin-top: 30px; }
  .cue { display: none; }
}

@media (max-width: 640px) {
  .top__link { display: none; }
  .foot { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 380px) {
  .brand { font-size: 22px; }
  .hero__cta .btn { width: 100%; text-align: center; }
}

/* very wide screens: keep the hero coin from drifting away from the text */
@media (min-width: 1700px) and (min-aspect-ratio: 16/9) {
  .coin-stage { right: 0; }
}
