/* ============================================================
   Pay Instantly — platform landing
   Built 1:1 from Figma "2nd Wave Platform" › Page 1 (node 1:2).
   Base values are the design's own desktop numbers (1470px shell);
   the media queries below scale that down for narrower viewports.
   ============================================================ */

:root {
  --font-sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-display: Oswald, var(--font-sans);

  /* surfaces */
  --bg: #01010b;
  --card-1: #0e0b25;
  --card-2: #08071a;

  /* lines */
  --line: #2c234d;
  --line-soft: rgba(106, 48, 184, 0.4);
  --line-brand: rgba(139, 70, 255, 0.35);
  --line-shell: rgba(117, 75, 216, 0.65);

  /* brand */
  --brand-600: #6b25ee;
  --brand-700: #4417c6;
  --accent: #a54cff;
  --violet-ink: rgba(45, 28, 110, 0.5);

  /* text */
  --text: #f5f5f7;
  --text-2: #d7d6e3;
  --text-3: #a7a5b5;
  --muted: #7e7c91;

  /* status */
  --up: #00f57a;
  --down: #ff5470;

  /* metrics — design defaults */
  --pad-x: 40px;
  --radius-shell: 46px;
  --display-size: 74px;
  --display-line: 91px;
  --display-box: 229px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1,
h2,
h3,
p,
ul,
figure {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
  color: inherit;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------------------------------------------------------- shell */

.page {
  padding: 16px;
  min-height: 944px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shell {
  position: relative;
  width: 100%;
  min-width: 0;
  max-width: 1470px;
  padding: 1px;
  display: flex;
  flex-direction: column;
  background: linear-gradient(
    165.46deg,
    #0a0921 8.49%,
    #060617 41.7%,
    #07051a 91.51%
  );
  border: 1px solid var(--line-shell);
  border-radius: var(--radius-shell);
  box-shadow: 0 0 60px 0 rgba(109, 40, 255, 0.2),
    0 0 0 1px rgba(117, 75, 216, 0.15),
    inset 0 1px 0 0 rgba(139, 70, 255, 0.15);
  overflow: hidden;
  isolation: isolate;
}

.glow {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.glow--top {
  inset-block-start: -80px;
  inset-inline-start: 384px;
  width: 700px;
  height: 300px;
  background: radial-gradient(
    ellipse 50% 50% at 50% 50%,
    rgba(180, 120, 255, 0.34) 0%,
    rgba(109, 40, 255, 0.1) 40%,
    transparent 70%
  );
  filter: blur(30px);
}

.glow--mid {
  inset-block-start: 104.5px;
  inset-inline-start: 484px;
  width: 520px;
  height: 700px;
  background: radial-gradient(
    ellipse 50% 50% at 50% 50%,
    rgba(109, 40, 255, 0.12) 0%,
    transparent 65%
  );
  filter: blur(40px);
}

.shell > *:not(.glow) {
  position: relative;
  z-index: 1;
}

/* ---------------------------------------------------------- header */

.hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px var(--pad-x) 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

/* the logo art is wider than its frame — the design crops it centred */
.brand__mark {
  position: relative;
  flex: none;
  width: 59px;
  height: 49px;
  overflow: hidden;
  filter: drop-shadow(0 0 8px rgba(139, 70, 255, 0.6));
}

.brand__mark img {
  position: absolute;
  inset-inline-start: 50%;
  inset-block-start: 50%;
  width: 91px;
  height: 61px;
  max-width: none;
  object-fit: cover;
  transform: translate(-50%, -50%);
}

.brand__name {
  font-size: 22px;
  font-weight: 600;
  line-height: 33px;
  letter-spacing: -0.22px;
  color: var(--text);
}

/* ---------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding-inline: 24px;
  border: 1px solid rgba(139, 70, 255, 0.55);
  border-radius: 12px;
  background: linear-gradient(180deg, var(--brand-600), var(--brand-700));
  box-shadow: inset 0 1px 0 0 rgba(200, 160, 255, 0.2);
  filter: drop-shadow(0 0 11px rgba(109, 40, 255, 0.4));
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  line-height: 25.5px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.16s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.hdr .btn {
  width: 146px;
  padding-inline: 0;
}

.btn:hover {
  filter: drop-shadow(0 0 14px rgba(109, 40, 255, 0.6)) brightness(1.07);
}

.btn:active {
  transform: translateY(1px);
}

.btn--block {
  width: 100%;
  height: 57px;
  font-size: 18px;
  line-height: 27px;
}

.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}

/* ---------------------------------------------------------- hero grid */

.hero {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr) 360px;
  align-items: start;
  padding: 8px var(--pad-x) 24px;
}

.col {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* left column ------------------------------------------------ */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  align-self: flex-start;
  margin-block-end: 66px;
  padding: 12px 16px;
  background: rgba(20, 14, 50, 0.7);
  border: 1px solid rgba(117, 75, 216, 0.4);
  border-radius: 17px;
  box-shadow: inset 0 1px 0 0 rgba(139, 70, 255, 0.1);
  color: #e3e1eb;
  font-size: 15px;
  line-height: 21px;
}

.chip__icon {
  flex: none;
  width: 18px;
  height: 18px;
}

/* the headline overflows its layout box in the design — keep that box size
   so the paragraph below lands where Figma puts it */
.display-box {
  height: var(--display-box);
  margin-block-end: 62px;
}

.display {
  font-family: var(--font-display);
  font-size: var(--display-size);
  font-weight: 600;
  line-height: var(--display-line);
  text-transform: uppercase;
  /* the design sets the headline nowrap and lets it run past its 380px
     column — it needs to be content-width or background-clip:text
     would cut the overhang off */
  white-space: nowrap;
  width: max-content;
  background: linear-gradient(180deg, #ffffff, rgba(200, 198, 216, 0.9));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.6));
}

.display--right {
  text-align: right;
  background: linear-gradient(180deg, #ffffff, rgba(192, 189, 212, 0.9));
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.5));
}

.lede {
  margin-block-end: 50px;
  color: #a8a6b5;
  font-size: 19px;
  line-height: 26.35px;
  white-space: nowrap;
}

.lede--right {
  margin-block-end: 0;
  width: 308px;
  text-align: right;
  line-height: 23.2px;
  white-space: normal;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.5));
}

/* ------------------------------------------------ language fit

   The art direction is set in English, where every headline line is short
   enough to sit on one line under `white-space: nowrap` and overhang its
   column by a controlled amount. German and Dutch run 30-45% longer
   ("Mehr investieren." vs "Invest more."), so at the English size the
   headline and the lede both ran under the centre swap card.

   Two things happen here. --display-scale shrinks the display type so the
   design's proportions survive; because it multiplies whatever the active
   breakpoint already set, it composes with every media query below instead
   of fighting them. Releasing `nowrap` is then the safety net: anything
   still too long for the column wraps inside it rather than disappearing
   behind the card, whatever the viewport or the translation. */

html[lang="de"],
html[lang="nl"] {
  --display-scale: 0.84;
}

html[lang="de"] .display,
html[lang="nl"] .display {
  font-size: calc(var(--display-size) * var(--display-scale));
  line-height: calc(var(--display-line) * var(--display-scale));
  white-space: normal;
  width: auto;
}

/* With wrapping allowed the box no longer holds a known number of lines,
   so let it grow. English gets an 18px gap between the overhanging
   headline and the lede (229px box + 62px margin against 3 x 91px of
   text); repeating that here keeps the rhythm identical across languages. */
html[lang="de"] .display-box,
html[lang="nl"] .display-box {
  height: auto;
  min-height: calc(var(--display-box) * var(--display-scale));
  margin-block-end: 18px;
}

html[lang="de"] .lede,
html[lang="nl"] .lede {
  white-space: normal;
}

/* portfolio card */

.portfolio {
  width: 358px;
  max-width: 100%;
  padding: 20px;
  background: rgba(10, 8, 28, 0.8);
  border: 1px solid rgba(117, 75, 216, 0.35);
  border-radius: 17px;
  box-shadow: 0 0 20px 0 rgba(109, 40, 255, 0.08),
    inset 0 1px 0 0 rgba(139, 70, 255, 0.08);
}

.portfolio__label {
  color: var(--muted);
  font-size: 13px;
  line-height: 19.5px;
}

.portfolio__row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-block-start: 8px;
}

.portfolio__value {
  font-size: 28px;
  font-weight: 600;
  line-height: 42px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.portfolio__sym {
  font-weight: 700;
}

.delta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--up);
  font-size: 13px;
  font-weight: 600;
  line-height: 19.5px;
}

.delta__icon {
  flex: none;
  width: 13px;
  height: 13px;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.delta.is-down {
  color: var(--down);
}

/* the exported glyph is drawn in the up-green; rotate it to the down-red */
.delta.is-down .delta__icon {
  transform: scaleY(-1);
  filter: hue-rotate(-130deg) saturate(1.5);
}

.portfolio__spark {
  margin-block-start: 12px;
  height: 38px;
}

/* right column ----------------------------------------------- */

.col--right {
  padding-block-start: 8px;
  align-items: center;
}

.orbit {
  display: flex;
  gap: 12px;
  margin-block-end: 55px;
}

.orbit__item {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.34, 1.4, 0.5, 1);
}

.orbit__item:hover {
  transform: translateY(-4px);
}

.orbit__item > img {
  width: 37px;
  height: 37px;
  object-fit: contain;
}

.orbit__item--btc {
  background: rgba(255, 138, 0, 0.15);
  border: 1px solid rgba(255, 138, 0, 0.35);
  box-shadow: 0 0 14px 0 rgba(255, 138, 0, 0.5);
}

.orbit__item--eth {
  background: rgba(98, 126, 234, 0.15);
  border: 1px solid rgba(98, 126, 234, 0.35);
  box-shadow: 0 0 8px 0 rgba(98, 126, 234, 0.4);
}

.orbit__item--gold {
  background: rgba(252, 160, 0, 0.15);
  border: 1px solid rgba(252, 160, 0, 0.75);
  box-shadow: 0 0 8px 0 rgba(201, 146, 10, 0.4);
}

.orbit__item--gold > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.orbit__item--stock {
  background: rgba(139, 70, 255, 0.15);
  border: 1px solid rgba(139, 70, 255, 0.35);
  box-shadow: 0 0 8px 0 rgba(139, 70, 255, 0.4);
}

/* the chart art carries a lot of transparent margin — crop to the glyph */
.orbit__stock {
  position: relative;
  display: block;
  width: 33px;
  height: 29px;
  overflow: hidden;
}

.orbit__stock img {
  position: absolute;
  inset-inline-start: -42.11%;
  inset-block-start: -44.12%;
  width: 176.32%;
  height: 197.06%;
  max-width: none;
}

.orbit__item--more {
  background: rgba(20, 16, 48, 0.8);
  border: 1px solid rgba(139, 70, 255, 0.35);
  box-shadow: 0 0 8px 0 rgba(139, 70, 255, 0.3);
}

.orbit__item--more > img {
  width: 25px;
  height: 25px;
}

.display--right {
  margin-block-end: 30px;
}

/* ---------------------------------------------------------- asset icons */

.assetico {
  flex: none;
  display: block;
  border-radius: 50%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* the seven settlement currencies the checkout accepts */
.assetico--usd { background-image: url("../images/flag-us.png"); }
.assetico--eur { background-image: url("../images/flag-eu.png"); }
.assetico--gbp { background-image: url("../images/flag-gb.png"); }
.assetico--dkk { background-image: url("../images/flag-dk.png"); }
.assetico--nok { background-image: url("../images/flag-no.png"); }
.assetico--sek { background-image: url("../images/flag-se.png"); }
.assetico--cad { background-image: url("../images/flag-ca.png"); }

/* and the five cryptocurrencies it can buy */
.assetico--btc {
  background-image: url("../images/ui/btc.png");
  background-size: contain;
}

.assetico--eth {
  background-image: url("../images/ui/eth.png");
  background-size: contain;
}

.assetico--usdt {
  background-image: url("../images/ui/usdt.png");
  background-size: contain;
}

.assetico--sol {
  background-image: url("../images/crypto-sol.png");
  background-size: contain;
}

.assetico--usdc {
  background-image: url("../images/crypto-usdc.png");
  background-size: contain;
}

/* ---------------------------------------------------------- swap card */

.col--center {
  align-items: center;
  padding-inline: 16px;
}

.swap {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: linear-gradient(
    134.27deg,
    #12103a 6.17%,
    #0b0922 50%,
    #060618 93.83%
  );
  border: 1px solid rgba(139, 70, 255, 0.7);
  border-radius: 25px;
  box-shadow: 0 0 50px 0 rgba(109, 40, 255, 0.25),
    inset 0 1px 0 0 rgba(180, 140, 255, 0.15),
    inset -1px 0 0 0 rgba(109, 40, 255, 0.1);
  overflow: hidden;
  transition: box-shadow 0.4s ease;
}

.swap.is-flash {
  box-shadow: 0 0 0 3px rgba(165, 76, 255, 0.55),
    0 0 50px 0 rgba(109, 40, 255, 0.25),
    inset 0 1px 0 0 rgba(180, 140, 255, 0.15);
}

.swap__glow {
  position: absolute;
  inset-block-start: -40px;
  inset-inline-start: 39px;
  width: 380px;
  height: 280px;
  background: radial-gradient(
    ellipse 50% 50% at 50% 50%,
    rgba(139, 70, 255, 0.18) 0%,
    rgba(70, 35, 128, 0.09) 32.5%,
    transparent 65%
  );
  filter: blur(20px);
  pointer-events: none;
}

.swap__body {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 36px;
}

.swap__label {
  color: var(--text-3);
  font-size: 16px;
  line-height: 22.5px;
}

.swap__label--gap {
  margin-block-start: 20px;
}

/* selector pill + dropdown */

.picker {
  position: relative;
  margin-block-start: 8px;
}

.selector {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 12px;
  background: var(--violet-ink);
  border: 1px solid var(--line-brand);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.selector:hover {
  background: rgba(55, 34, 132, 0.62);
  border-color: rgba(139, 70, 255, 0.6);
}

.selector__icon {
  width: 23px;
  height: 23px;
}

.selector__code {
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  color: var(--text);
}

.selector__caret {
  flex: none;
  width: 14px;
  height: 14px;
  transition: transform 0.22s ease;
}

.selector[aria-expanded="true"] .selector__caret {
  transform: rotate(180deg);
}

.menu {
  position: absolute;
  inset-inline: 0;
  inset-block-start: calc(100% + 8px);
  z-index: 30;
  padding: 6px;
  max-height: 268px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #14103a;
  border: 1px solid rgba(139, 70, 255, 0.45);
  border-radius: 16px;
  box-shadow: 0 22px 50px -18px rgba(0, 0, 0, 0.85);
  animation: menu-in 0.16s ease;
}

.menu[hidden] {
  display: none;
}

@keyframes menu-in {
  from { opacity: 0; transform: translateY(-6px); }
}

.menu__opt {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  background: none;
  border: 0;
  border-radius: 11px;
  text-align: start;
  cursor: pointer;
}

.menu__opt:hover,
.menu__opt.is-active {
  background: rgba(139, 70, 255, 0.18);
}

.menu__opt[aria-selected="true"] {
  background: rgba(139, 70, 255, 0.28);
}

.menu__opt .assetico {
  width: 24px;
  height: 24px;
}

.menu__code {
  font-weight: 600;
  font-size: 15px;
}

.menu__name {
  margin-inline-start: auto;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

/* amount row */

.amount {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-block-start: 16px;
}

.amount__input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0;
  background: none;
  border: 0;
  color: var(--text-2);
  font-size: 27px;
  font-weight: 700;
  line-height: 40.5px;
  font-variant-numeric: tabular-nums;
}

.amount__input::placeholder {
  color: var(--muted);
}

.amount__input:focus {
  outline: none;
  color: var(--text);
}

.amount__unit {
  flex: none;
  color: var(--text-3);
  font-size: 20px;
  line-height: 30px;
}

.rule {
  height: 1px;
  margin-block-start: 8px;
  background: rgba(106, 48, 184, 0.5);
}

.meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-block-start: 12px;
}

.meta__text {
  color: var(--text-3);
  font-size: 14px;
  line-height: 21px;
  font-variant-numeric: tabular-nums;
}

.meta__text--sm {
  font-size: 13px;
  line-height: 19.5px;
}

.tag {
  flex: none;
  padding: 2px 8px;
  background: rgba(45, 28, 110, 0.7);
  border: 1px solid rgba(139, 70, 255, 0.3);
  border-radius: 9px;
  color: var(--text-3);
  font-size: 12px;
  line-height: 18px;
}

.tag--btn {
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.tag--btn:hover {
  background: rgba(139, 70, 255, 0.42);
  color: #fff;
}

/* swap divider + circular button */

.swapline {
  display: flex;
  align-items: center;
  margin-block-start: 20px;
}

.swapline__rule {
  flex: 1 1 auto;
  height: 1px;
  background: rgba(106, 48, 184, 0.4);
}

.swapbtn {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-inline: 12px;
  padding: 0;
  background: rgba(36, 16, 90, 0.9);
  border: 1px solid rgba(139, 70, 255, 0.6);
  border-radius: 50%;
  box-shadow: 0 0 14px 0 rgba(109, 40, 255, 0.4);
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.5, 0, 0.2, 1), box-shadow 0.25s ease;
}

.swapbtn img {
  width: 18px;
  height: 18px;
}

.swapbtn:hover {
  box-shadow: 0 0 22px 2px rgba(109, 40, 255, 0.65);
}

.swapbtn.is-spin {
  transform: rotate(180deg);
}

/* email field */

.field {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-block: 8px 16px;
  padding: 12px 16px;
  background: rgba(8, 6, 20, 0.7);
  border: 1px solid var(--line-soft);
  border-radius: 11px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field:focus-within {
  border-color: rgba(139, 70, 255, 0.75);
  box-shadow: 0 0 0 3px rgba(139, 70, 255, 0.16);
}

.field.is-invalid {
  border-color: rgba(255, 84, 112, 0.7);
  box-shadow: 0 0 0 3px rgba(255, 84, 112, 0.14);
}

.field__icon {
  flex: none;
  width: 16px;
  height: 16px;
}

.field__input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0;
  background: none;
  border: 0;
  font-size: 15px;
  line-height: 22.5px;
}

.field__input::placeholder {
  color: var(--muted);
}

.field__input:focus {
  outline: none;
}

.formmsg {
  display: none;
  align-items: center;
  gap: 8px;
  margin-block-start: 12px;
  font-size: 14px;
  line-height: 1.4;
}

.formmsg.is-visible {
  display: flex;
}

.formmsg svg {
  flex: none;
  width: 17px;
  height: 17px;
}

.formmsg.is-ok {
  color: var(--up);
}

.formmsg.is-err {
  color: var(--down);
}

/* ---------------------------------------------------------- tickers */

.tickers {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  padding: 0 var(--pad-x) 24px;
}

.ticker {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 17px;
  background: linear-gradient(168.15deg, var(--card-1) 8.49%, var(--card-2) 91.51%);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: inset 0 1px 0 0 rgba(139, 70, 255, 0.1);
  cursor: pointer;
  text-align: start;
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.ticker:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 70, 255, 0.6);
  box-shadow: inset 0 1px 0 0 rgba(139, 70, 255, 0.16),
    0 16px 34px -20px rgba(109, 40, 255, 0.9);
}

.ticker__top {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding-block-end: 4px;
}

.ticker__icon {
  width: 32px;
  height: 32px;
}

.ticker__names {
  min-width: 0;
}

.ticker__name {
  display: block;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
  line-height: 16.25px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ticker__code {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 13.75px;
}

.ticker__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  height: 28.5px;
}

.ticker__price {
  color: var(--text);
  font-size: 19px;
  font-weight: 600;
  line-height: 28.5px;
  font-variant-numeric: tabular-nums;
  transition: color 0.5s ease;
}

.ticker__price.is-tick-up { color: var(--up); }
.ticker__price.is-tick-down { color: var(--down); }

.ticker__chg {
  flex: none;
  color: var(--up);
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
  font-variant-numeric: tabular-nums;
}

.ticker__chg.is-down {
  color: var(--down);
}

.ticker__spark {
  height: 42px;
  margin-block-start: 4px;
}

/* sparkline svg */

.spark svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.spark__line {
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.ftr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 0 var(--pad-x) 28px;
}

.ftr__note {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(14, 10, 36, 0.7);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  color: var(--text-3);
  font-size: 14px;
  line-height: 19.5px;
}

.ftr__icon {
  flex: none;
  width: 14px;
  height: 14px;
}

.lnk {
  color: var(--accent);
  text-decoration: none;
  border-block-end: 1px solid transparent;
  transition: border-color 0.18s ease;
}

.lnk:hover {
  border-block-end-color: currentColor;
}

.ftr__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 19.5px;
}

.ftr__mark {
  position: relative;
  flex: none;
  width: 23px;
  height: 19px;
  overflow: hidden;
}

.ftr__mark img {
  position: absolute;
  inset-inline-start: 50%;
  inset-block-start: 50%;
  width: 36px;
  height: 24px;
  max-width: none;
  object-fit: cover;
  transform: translate(-50%, -50%);
}

/* ============================================================
   Responsive — the design is a fixed 1470px desktop frame, so
   everything below here is scale-down behaviour only.
   ============================================================ */

@media (max-width: 1439px) {
  :root {
    --pad-x: 32px;
    --display-size: 62px;
    --display-line: 76px;
    --display-box: 192px;
  }

  .hero {
    grid-template-columns: 330px minmax(0, 1fr) 320px;
  }

  .chip {
    margin-block-end: 52px;
  }

  .display-box {
    margin-block-end: 50px;
  }

  .lede,
  .lede--right {
    font-size: 17px;
    line-height: 24px;
  }

  .lede {
    margin-block-end: 40px;
  }

  .orbit {
    margin-block-end: 44px;
  }

  .display--right {
    margin-block-end: 24px;
  }
}

/* tablet landscape — the right-hand block drops to a full-width band */
@media (max-width: 1179px) {
  :root {
    --display-size: 54px;
    --display-line: 66px;
    --display-box: 168px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
    gap: 24px;
  }

  .col--right {
    grid-column: 1 / -1;
    padding-block-start: 24px;
  }

  .lede--right {
    width: auto;
    text-align: center;
  }

  .display--right {
    text-align: center;
  }

  .tickers {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* tablet portrait — single column */
@media (max-width: 899px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 32px;
    text-align: center;
  }

  .col--left {
    align-items: center;
  }

  .chip {
    align-self: center;
  }

  .display,
  .display--right {
    text-align: center;
  }

  /* nowrap only exists to hold the desktop art direction */
  .lede,
  .lede--right {
    margin-inline: auto;
    text-align: center;
    white-space: normal;
  }

  .col--center,
  .col--right {
    width: 100%;
  }

  .col--center {
    padding-inline: 0;
  }

  .tickers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* phone */
@media (max-width: 599px) {
  :root {
    --pad-x: 18px;
    --radius-shell: 24px;
    --display-size: 40px;
    --display-line: 50px;
  }

  .page {
    padding: 8px;
    min-height: 100svh;
  }

  .hdr {
    padding-block: 18px 10px;
  }

  .btn {
    height: 46px;
    padding-inline: 18px;
    font-size: 15px;
  }

  .hdr .btn {
    width: auto;
    padding-inline: 18px;
  }

  /* the art-directed breaks stay — the type just gets smaller. Hiding them
     would butt the words together, since the source has no space around <br>. */
  .display-box {
    height: auto;
    margin-block-end: 28px;
  }

  .lede {
    margin-block-end: 28px;
    font-size: 16px;
    line-height: 23px;
  }

  .swap__body {
    padding: 22px 18px;
  }

  .amount__input {
    font-size: 22px;
    line-height: 34px;
  }

  .orbit {
    gap: 10px;
    margin-block-end: 26px;
  }

  .display--right {
    margin-block-end: 16px;
  }

  /* tickers become a swipeable rail */
  .tickers {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .tickers::-webkit-scrollbar {
    display: none;
  }

  .ticker {
    flex: 0 0 min(232px, 72vw);
    scroll-snap-align: start;
  }

  .ftr {
    justify-content: center;
    text-align: center;
  }

  .ftr__note {
    border-radius: 18px;
  }
}

@media (max-width: 380px) {
  :root {
    --display-size: 34px;
    --display-line: 42px;
  }

  .lede {
    font-size: 15px;
    line-height: 21px;
  }

  .orbit__item {
    width: 42px;
    height: 42px;
  }

  .orbit__item > img {
    width: 30px;
    height: 30px;
  }

  .brand__name {
    font-size: 17px;
  }
}

/* ---------------------------------------------------------- a11y */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
