﻿:root {
  --store-badge-width: clamp(9.5rem, 48vw, 15rem);
  --wallet-blue: #3d6cb5;
  --wallet-blue-dark: #2f5694;
  --wallet-green: #22a06b;
  --wallet-muted: #94a3b8;
  --wallet-text: #1e293b;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/Inter-Variable.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/Inter-Variable.woff2") format("woff2");
}

html,
body {
  height: 100%;
  overflow: hidden;
}

:root {
  /* Height of the white gradient that sits on top of the fixed dock. */
  --dock-fade-height: 0.75rem;
}

body {
  font-family: Inter, system-ui, -apple-system, sans-serif;
  color: #0f172a;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}

.page {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  height: 100svh;
  max-height: 100svh;
  overflow: hidden;
  padding: clamp(1rem, 3vw, 1.5rem) clamp(1rem, 4vw, 1.75rem) 0;
  /* Keep the phone mock clear of the fixed dock (height measured in app.js). */
  padding-bottom: var(--bottom-dock-height, 0px);
}

.page__main {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.75rem, 2.5vh, 1.25rem);
  text-align: center;
  overflow: hidden;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  /* Centres logo → marquee between the top edge and the mock (set in app.js). */
  margin-top: var(--header-offset, 0px);
}

.logo img {
  height: clamp(2rem, 5.5vw, 2.5rem);
  width: auto;
  filter: brightness(0) saturate(100%) invert(28%) sepia(93%) saturate(2476%) hue-rotate(211deg) brightness(85%) contrast(95%);
}

.hero {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex-shrink: 0;
}

.hero__title {
  font-size: clamp(1.125rem, 4.2vw, 1.375rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #2563eb;
}

.hero__tagline {
  /* Each term is the previous value +2px, so the line grows by exactly 2px at
     any viewport width — not just at the ends of the clamp. */
  font-size: clamp(0.9375rem, calc(2.8vw + 2px), 1.0625rem);
  font-weight: 500;
  color: #475569;
  line-height: 1.35;
}

/* Spacing that used to separate this line from the tagline above it; it is
   now the only tagline, so it sits directly under the headline. */
.hero__tagline--rate {
  margin-top: 0.25rem;
}

.hero__tagline--rate strong {
  font-weight: 700;
  color: #334155;
}

.hero__tagline-icon {
  vertical-align: -0.2em;
  margin-right: 0.2em;
  color: #2563eb;
}

.coins-marquee {
  width: 100%;
  overflow: hidden;
  flex-shrink: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.coins-marquee__track {
  display: flex;
  width: max-content;
  animation: coins-scroll 45s linear infinite;
}

/* Shift by exactly one list + its trailing margin so the cloned copy lines up seamlessly. */
@keyframes coins-scroll {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

.coins {
  list-style: none;
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 0.35rem 1.25rem;
  flex-shrink: 0;
  margin-right: 1.25rem;
}

.coins__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  min-width: 2.25rem;
  flex-shrink: 0;
}

.coins__item img {
  display: block;
  width: clamp(1.5rem, 5vw, 1.75rem);
  height: clamp(1.5rem, 5vw, 1.75rem);
}

.coins__item span {
  font-size: 0.625rem;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0.03em;
}

.trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.trust {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: clamp(0.75rem, 2.5vw, 0.8125rem);
  font-weight: 600;
  flex-shrink: 0;
}

.trust--rating {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(217, 119, 6, 0.25);
  color: #b45309;
}

.trust--rating .trust__star {
  color: #d97706;
}

.trust--downloads {
  background: rgba(5, 150, 105, 0.1);
  border: 1px solid rgba(5, 150, 105, 0.25);
  color: #047857;
}

.trust__icon {
  flex-shrink: 0;
}

.phone-wrap {
  flex: 1;
  min-height: 0;
  width: 100%;
  container-type: size;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  overflow: hidden;
  /* Without this the mock ends exactly at the dock, so its bottom corners sit
     under the dock's white gradient and dissolve instead of reading as a
     rounded edge. */
  padding-bottom: var(--dock-fade-height);
}

.phone {
  --phone-w: min(100cqw, calc(100cqh * 375 / 809));
  width: var(--phone-w);
  aspect-ratio: 375 / 809;
  flex-shrink: 0;
  /* 1em inside the mock == 16 design px of the 375pt Figma frame.
     Multiply first: `length / 375 * 16px` is px², which is invalid and
     silently falls back to the inherited 16px. */
  font-size: calc(var(--phone-w) * 16 / 375);
}

.phone__frame {
  width: 100%;
  height: 100%;
  border-radius: 2.5em;
  border: 0.2em solid #1a1a1a;
  background: #1a1a1a;
  box-shadow:
    0 0.5em 1.5em rgba(15, 23, 42, 0.18),
    inset 0 0 0 0.08em rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.phone__screen {
  height: 100%;
  background: #fafafa;
  overflow: hidden;
}

/* ---------- Swap flow mock (Figma 24669:87998) ---------- */

.swap-ui {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: #fafafa;
  color: #151515;
  line-height: 1.3;
  font-family: "IBM Plex Sans", Inter, system-ui, sans-serif;
}

.swap-ui__status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  height: 2.75em;
  padding: 0 1.25em 0 1.5em;
}

.swap-ui__time {
  font-size: 0.9375em;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.swap-ui__status-icons {
  display: flex;
  align-items: center;
  gap: 0.35em;
}

.swap-ui__status-icon {
  display: block;
  height: 0.75em;
  width: auto;
}

.swap-ui__status-icon--batt {
  height: 0.8em;
}

.swap-ui__body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0 1em;
}

.swap-ui__title {
  flex-shrink: 0;
  /* Padding is in em of the title's own 24px, so it shrinks as the size grows —
     keep it in rem-of-the-mock by dividing through. */
  padding: 0.5em 0 0.1667em;
  text-align: center;
  font-size: 1.5em;
  font-weight: 600;
}

.swap-ui__max {
  flex-shrink: 0;
  padding: 0.6em 0 0.5em;
  text-align: right;
  font-size: 0.75em;
  font-weight: 500;
  color: #005baa;
}

/* --- send / receive cards --- */

.swap-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75em;
  flex-shrink: 0;
  min-height: 4.5em;
  padding: 0.75em 1em;
  border: 1px solid transparent;
  border-radius: 0.75em;
  background: #ffffff;
  transition: border-color 0.3s ease;
}

.swap-field--focus {
  border-color: #396dc3;
}

.swap-field__fields {
  display: flex;
  flex-direction: column;
  gap: 0.15em;
  min-width: 0;
}

.swap-field__label,
.swap-field__balance {
  font-size: 0.75em;
  color: #9498a5;
  white-space: nowrap;
}

.swap-field__value {
  display: flex;
  align-items: center;
  min-height: 1.4em;
  font-size: 1.0625em;
  font-weight: 400;
  color: #151515;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.swap-field__caret {
  display: inline-block;
  width: 0.09em;
  height: 1.15em;
  background: #396dc3;
  animation: swap-caret 1.05s steps(1, end) infinite;
}

@keyframes swap-caret {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

.swap-field__token {
  display: flex;
  align-items: center;
  gap: 0.4em;
  flex-shrink: 0;
}

.swap-field__token-icon {
  display: block;
  width: 1.5em;
  height: 1.5em;
}

.swap-field__token-name {
  font-size: 0.9375em;
  font-weight: 400;
  color: #151515;
}

.swap-field__token-placeholder {
  display: none;
  font-size: 0.9375em;
  color: #151515;
}

.swap-field__chevron {
  display: block;
  width: 0.75em;
  height: 0.75em;
  opacity: 0.85;
  /* The exported asset is `arrowLeft`; the token picker points it down. */
  transform: rotate(-90deg);
}

.swap-field__token--empty .swap-field__token-icon,
.swap-field__token--empty .swap-field__token-name {
  display: none;
}

.swap-field__token--empty .swap-field__token-placeholder {
  display: block;
}

.swap-ui__switch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.15em;
  flex-shrink: 0;
  padding: 0.55em 0;
}

.swap-ui__switch img {
  display: block;
  height: 1.25em;
  width: auto;
}

/* Both exports are the same up arrow — flip the second one. */
.swap-ui__switch img + img {
  transform: rotate(180deg);
}

/* --- rate / fee / provider --- */

.swap-rates {
  display: flex;
  flex-direction: column;
  gap: 0.65em;
  flex-shrink: 0;
  margin-top: 1.1em;
  padding: 0.85em 1em;
  border: 1px solid #e8e8ea;
  border-radius: 0.75em;
  background: #fafafa;
}

.swap-rates__row {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.swap-rates__name {
  font-size: 0.8125em;
  color: #686869;
}

.swap-rates__timer {
  font-size: 0.8125em;
  font-weight: 600;
  color: #151515;
  font-variant-numeric: tabular-nums;
}

.swap-rates__value {
  margin-left: auto;
  font-size: 0.8125em;
  color: #151515;
  font-variant-numeric: tabular-nums;
}

.swap-rates__value--brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
}

.swap-rates__dex {
  color: #686869;
}

.swap-rates__logo {
  display: block;
  width: 1.1em;
  height: 1.1em;
}

.swap-rates__brand {
  font-weight: 500;
}

/* --- footer stack --- */

.swap-ui__footer {
  margin-top: auto;
  flex-shrink: 0;
}

.swap-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.6em;
  margin: 0 1em 0.75em;
  padding: 0.8em 0.75em;
  border: 1px solid #bbd3f1;
  border-radius: 0.75em;
  background: #e9f0fb;
}

.swap-banner__icon {
  display: block;
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
}

.swap-banner__text {
  flex: 1;
  font-size: 0.875em;
  line-height: 1.35;
  color: #151515;
}

.swap-banner__close {
  display: block;
  width: 0.9em;
  height: 0.9em;
  flex-shrink: 0;
  opacity: 0.45;
  margin-top: 0.15em;
}

.swap-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 3em;
  margin: 0 1em;
  border-radius: 0.75em;
  background: #005baa;
  color: #ffffff;
  font-size: 1em;
  font-weight: 600;
  transition: background 0.3s ease, color 0.3s ease;
}

.swap-ui[data-filled="0"] .swap-cta {
  background: #f0f0f2;
  color: #9498a5;
}

/* --- numeric keypad (step 1), styled after the iOS number pad --- */

.swap-keypad {
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6em 0.35em;
  margin-top: 0.9em;
  padding: 0.5em 0.4375em 0.35em;
  background: #d1d3d9;
  font-family: -apple-system, "SF Pro Display", "SF Pro Text", "Helvetica Neue",
    Inter, system-ui, sans-serif;
  color: #151515;
}

.swap-keypad__key {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 2.75em;
  border-radius: 0.3125em;
  background: #ffffff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.32);
  transition: background 0.12s ease-out;
}

/* iOS greys the key out while it is held down. */
.swap-keypad__key--pressed {
  background: #b9bcc4;
  transition-duration: 0.02s;
}

.swap-keypad__key b {
  font-size: 1.5625em;
  font-weight: 400;
  line-height: 1;
}

.swap-keypad__key i {
  font-style: normal;
  font-size: 0.625em;
  font-weight: 600;
  letter-spacing: 0.12em;
  /* letter-spacing pads the right edge — pull the glyphs back to centre. */
  text-indent: 0.12em;
  line-height: 1;
  margin-top: 0.2em;
}

.swap-keypad__key--blank,
.swap-keypad__key--back {
  background: transparent;
  box-shadow: none;
}

.swap-keypad__key--back svg {
  width: 1.65em;
  height: auto;
}

.swap-ui__home-indicator {
  display: none;
  height: 1.5em;
  background: #d1d3d9;
  position: relative;
}

.swap-ui__home-indicator::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.5em;
  transform: translateX(-50%);
  width: 8.4em;
  height: 0.3em;
  border-radius: 0.3em;
  background: #151515;
}

/* --- tab bar (steps 2+) --- */

.swap-tabbar {
  display: flex;
  gap: 0.4em;
  padding: 0.65em 0.55em 1.5em;
  background: #ffffff;
}

.swap-tabbar__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25em;
  padding: 0.45em 0.2em;
  border: 1px solid #ececee;
  border-radius: 0.6em;
}

.swap-tabbar__item img {
  display: block;
  width: 1.25em;
  height: 1.25em;
}

.swap-tabbar__item span {
  font-size: 0.625em;
  color: #686869;
}

.swap-tabbar__item--active span {
  color: #005baa;
  font-weight: 500;
}

/* --- step visibility --- */

.swap-ui[data-step="1"] .swap-rates,
.swap-ui[data-step="1"] .swap-tabbar {
  display: none;
}

.swap-ui[data-step="1"] .swap-keypad {
  display: grid;
}

.swap-ui[data-step="1"] .swap-ui__home-indicator {
  display: block;
}

.swap-rates__row--extra {
  display: none;
}

.swap-ui[data-step="3"] .swap-rates__row--extra,
.swap-ui[data-step="4"] .swap-rates__row--extra {
  display: flex;
}

/* --- scrim + bottom sheets --- */

.swap-ui__scrim {
  position: absolute;
  inset: 0;
  background: rgba(21, 21, 21, 0.35);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.swap-ui[data-step="3"] .swap-ui__scrim,
.swap-ui[data-step="4"] .swap-ui__scrim {
  opacity: 1;
}

.swap-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.25em 1.25em 1.5em;
  border-radius: 1.25em 1.25em 0 0;
  background: #ffffff;
  box-shadow: 0 -0.5em 1.5em rgba(15, 23, 42, 0.14);
  transform: translateY(110%);
  transition: transform 0.5s cubic-bezier(0.32, 0.72, 0, 1);
  will-change: transform;
}

.swap-ui[data-step="3"] .swap-sheet--confirm,
.swap-ui[data-step="4"] .swap-sheet--done {
  transform: translateY(0);
}

.swap-sheet__close {
  position: absolute;
  top: 1.4em;
  right: 1.25em;
  width: 1em;
  height: 1em;
  opacity: 0.5;
}

.swap-sheet__title {
  text-align: center;
  font-size: 1.0625em;
  font-weight: 600;
}

.swap-sheet__subtitle {
  margin-top: 0.6em;
  text-align: center;
  font-size: 0.8125em;
  font-weight: 500;
  color: #151515;
}

.swap-sheet__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75em;
  margin-top: 1.15em;
}

.swap-sheet__row-name {
  font-size: 1em;
  color: #686869;
}

.swap-sheet__row-value {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 1em;
  color: #151515;
  font-variant-numeric: tabular-nums;
}

.swap-sheet__row-value img {
  display: block;
  width: 1.25em;
  height: 1.25em;
}

.swap-sheet__rate {
  margin-top: 1.35em;
  text-align: center;
  font-size: 0.875em;
  color: #686869;
}

.swap-sheet__buttons {
  display: flex;
  gap: 0.75em;
  margin-top: 1.5em;
}

.swap-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 3em;
  border-radius: 0.75em;
  font-size: 1em;
  font-weight: 600;
}

.swap-btn--ghost {
  background: transparent;
  color: #005baa;
  /* A text button next to a filled one reads heavy at 600. */
  font-weight: 500;
}

.swap-btn--primary {
  background: #005baa;
  color: #ffffff;
}

.swap-btn--wide {
  flex: none;
  width: 100%;
}

.swap-sheet__sent {
  margin-top: 0.65em;
  text-align: center;
  font-size: 1em;
  color: #151515;
}

.swap-sheet__mascot {
  display: flex;
  justify-content: center;
  padding: 0.5em 0 0.25em;
}

.swap-sheet__mascot img {
  display: block;
  height: 14.5em;
  width: auto;
}

.swap-sheet--done .swap-btn--wide + .swap-btn--wide {
  margin-top: 0.5em;
}

/* ---------- Compact variant: half a screen, no keypad ----------
   Crops the device to the quote itself — status bar through the Fee row,
   with the Swap button pinned to the bottom edge. */

/* 460 is the measured height of status bar + quote + button, with the
   third-party-provider banner gone. Anything shorter pushes the Fee row
   out from under the button. */
.phone--compact {
  --phone-w: min(100cqw, calc(100cqh * 375 / 460));
  aspect-ratio: 375 / 460;
}

/* The compact mock is a crop, not a whole device: it runs into the dock's
   white gradient and dissolves there. So it gets no bottom edge to dissolve
   *into* — no corner radius, no bezel, no drop shadow below. */
.phone-wrap--compact {
  padding-bottom: 0;
}

.phone--compact .phone__frame {
  border-radius: 2.5em 2.5em 0 0;
  border-bottom: none;
  box-shadow: inset 0 0 0 0.08em rgba(255, 255, 255, 0.08);
}

.swap-ui--compact .swap-ui__title {
  padding-top: 0.35em;
}

.swap-ui--compact .swap-ui__max {
  padding: 0.35em 0 0.3em;
}

/* The receive card is three lines tall, so min-height never binds — the
   padding is what has to give. */
.swap-ui--compact .swap-field {
  min-height: 4em;
  padding: 0.6em 1em;
}

.swap-ui--compact .swap-rates {
  gap: 0.5em;
  padding: 0.7em 1em;
}

.swap-ui--compact .swap-ui__switch {
  padding: 0.35em 0;
}

.swap-ui--compact .swap-rates {
  margin-top: 0.5em;
}

.swap-ui--compact .swap-ui__footer {
  padding-bottom: 0.75em;
}

/* The quote is the point of this crop — keep it on screen from the start. */
.swap-ui--compact[data-step="1"] .swap-rates {
  display: flex;
  visibility: hidden;
}

/* A full-height mascot would overflow the shorter frame. */
.swap-ui--compact .swap-sheet__mascot img {
  height: 9em;
}

.swap-ui--compact .swap-sheet {
  padding: 1em 1.25em 1.25em;
}

.swap-ui--compact .swap-sheet__row {
  margin-top: 0.85em;
}

.swap-ui--compact .swap-sheet__rate {
  margin-top: 1em;
}

.swap-ui--compact .swap-sheet__buttons {
  margin-top: 1.15em;
}

.bottom-dock {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #ffffff;
  padding: 0 clamp(1rem, 4vw, 1.75rem);
  padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
}

.bottom-dock__inner {
  width: 100%;
  max-width: 28rem;
  margin: 0 auto;
}

.bottom-dock__fade {
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  height: var(--dock-fade-height);
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, #ffffff 100%);
  pointer-events: none;
}

.trust-row--dock {
  padding: 0.5rem 0 0.625rem;
  gap: 0.75rem;
}

.trust-row--dock .trust {
  padding: 0;
  border: none;
  background: none;
  border-radius: 0;
  font-weight: 500;
}

.trust-row--dock .trust--rating {
  color: #b45309;
}

.trust-row--dock .trust--rating .trust__star {
  color: #d97706;
}

.trust-row--dock .trust--downloads {
  color: #047857;
}

.cta-bar {
  position: relative;
  background: #ffffff;
  padding: 0 0 0.375rem;
  display: flex;
  justify-content: center;
}

.store-badge {
  --store-badge-scale: calc(var(--store-badge-width) / 15);
  display: inline-flex;
  align-items: center;
  gap: 0.9375em;
  width: max-content;
  max-width: 100%;
  min-height: 3.75em;
  padding: 0.6875em 1.125em 0.6875em 1em;
  border-radius: 0.375em;
  font-size: var(--store-badge-scale);
  background: #100f0d;
  border: 1px solid #a2a2a1;
  color: #fff;
  text-decoration: none;
  box-sizing: border-box;
  transition: transform 0.15s ease, opacity 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.store-badge__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.5em;
  height: 2.5em;
}

.store-badge__svg {
  display: block;
  width: 100%;
  height: 100%;
}

.store-badge__svg--apple {
  display: none;
  width: 2.375em;
  height: 2.75em;
}

.store-badge--app-store .store-badge__svg--play {
  display: none;
}

.store-badge--app-store .store-badge__svg--apple {
  display: block;
}

.store-badge__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.125em;
  line-height: 1;
  min-width: 0;
}

.store-badge__label {
  font-size: 0.875em;
  font-weight: 600;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.store-badge--play .store-badge__label {
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.store-badge--app-store .store-badge__label {
  font-size: 0.9375em;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.store-badge__title {
  font-size: 1.75em;
  font-weight: 500;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.store-badge--app-store .store-badge__title {
  font-size: 1.875em;
  font-weight: 600;
}

.store-badge:active {
  transform: scale(0.97);
  opacity: 0.85;
}

.cookie-consent {
  padding: 0.35rem 0.5rem 0.2rem;
  text-align: center;
  background: #ffffff;
  font-size: 0.6875rem;
  line-height: 1.45;
  color: #94a3b8;
}

.cookie-consent__text {
  margin: 0 0 0.45rem;
  max-width: 26rem;
  margin-inline: auto;
}

.cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem 0.4rem;
  max-width: 22rem;
  margin-inline: auto;
}

.cookie-consent__btn {
  font: inherit;
  font-size: 0.625rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.01em;
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  cursor: pointer;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  color: #64748b;
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.cookie-consent__btn:hover,
.cookie-consent__btn:focus-visible {
  background: #f8fafc;
  border-color: rgba(100, 116, 139, 0.35);
  color: #475569;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem 1rem;
  padding: 0.35rem 0 0.25rem;
  background: #ffffff;
  font-size: 0.6875rem;
  color: #94a3b8;
}

.footer__copy {
  color: #94a3b8;
}

.footer a {
  color: #94a3b8;
  text-decoration: none;
}

.footer a:hover {
  color: #2563eb;
}

@media (prefers-reduced-motion: reduce) {
  .coins-marquee__track {
    animation: none;
  }

  .swap-field__caret {
    animation: none;
  }

  .swap-sheet,
  .swap-ui__scrim {
    transition: none;
  }
}

@media (max-height: 600px) {
  .page {
    padding-top: clamp(0.75rem, 2vh, 1rem);
  }

  .page__main {
    gap: 0.5rem;
  }

  .trust-row--dock {
    padding: 0.375rem 0 0.5rem;
  }

  .cta-bar {
    padding: 0 0 0.25rem;
  }

  .cookie-consent {
    padding: 0.25rem 0.5rem 0.1rem;
  }

  .cookie-consent__text {
    margin-bottom: 0.35rem;
  }

  .cookie-consent__btn {
    padding: 0.3rem 0.55rem;
  }

  .footer {
    padding: 0.25rem 0 0.15rem;
  }

  .logo img {
    height: clamp(1.5rem, 4.5vw, 2rem);
  }
}

@media (min-width: 480px) {
  .page {
    max-width: 28rem;
    margin: 0 auto;
  }
}

/* Phone-width layout: wider side margins and a slightly smaller mock, so the
   content doesn't run edge to edge. Above 480px the page is already capped at
   28rem and centred, so it needs neither. */
@media (max-width: 479.98px) {
  .page {
    padding-right: clamp(1.5rem, 7vw, 2.5rem);
    padding-left: clamp(1.5rem, 7vw, 2.5rem);
  }

  .bottom-dock {
    padding-right: clamp(1.5rem, 7vw, 2.5rem);
    padding-left: clamp(1.5rem, 7vw, 2.5rem);
  }

  .phone {
    --phone-w: min(90cqw, calc(100cqh * 375 / 809 * 0.9));
  }

  .phone--compact {
    --phone-w: min(90cqw, calc(100cqh * 375 / 460 * 0.9));
  }
}

.tracking-pixel {
  display: none;
}

[dir="rtl"] .store-badge {
  flex-direction: row-reverse;
}

[dir="rtl"] .store-badge__copy {
  align-items: flex-end;
}

/* The phone mock is a device screenshot, not page content — keep it LTR. */
[dir="rtl"] .swap-ui {
  direction: ltr;
}

[dir="rtl"] .cookie-consent__actions {
  flex-direction: row-reverse;
}

[dir="rtl"] .trust-row {
  flex-direction: row-reverse;
}
