/* Checkout Explore. Blush actions and neutral charcoal surfaces from the reference. */
:root {
  --max-w: 1680px;
  --studio-panel: #fffcfd;
  --studio-raised: #f2e9ee;
  --studio-muted: #756570;
  --studio-border: #5c3a501f;
  --studio-hover: #c2a8b910;
  --shadow-sm: 0 2px 8px #22222205;
  --shadow-md: 0 8px 30px #2222220b;
  --ios-spring: cubic-bezier(.22, 1, .36, 1);
}
:root[data-theme="dark"] {
  --bg: #0f0f0f;
  --paper: #181818;
  --paper-2: #222222;
  --ink: #f3f3f3;
  --ink-2: #b5b5b5;
  --ink-3: #9b9b9b;
  --rule: #2a2a2a;
  --glass: #181818;
  --glass-hi: #212121;
  --glass-strong: #202020;
  --glass-ctl: #1c1c1c;
  --glass-border: #2a2a2a;
  --surface-top: #181818;
  --surface-bottom: #181818;
  --control-tint: #1c1c1c;
  --control-shade: #1c1c1c;
  --sheet: #181818;
  --clear: #dec7d7;
  --studio-panel: #181818;
  --studio-raised: #222222;
  --studio-muted: #9b9b9b;
  --studio-border: #2a2a2a;
  --studio-hover: #dec7d70c;
  --shadow-sm: none;
  --shadow-md: 0 12px 30px #00000025;
}
html { scroll-padding-top: 96px; }
body { background: var(--bg); background-image: var(--page-grid); background-size: 40px 40px; }
body::before, body::after { display: none; }
.wrap { width: 100%; max-width: var(--max-w); padding-inline: 32px; }
main { padding-top: 106px; }
main > .wrap { padding-bottom: 16px; }
main h1 { font-weight: 650; letter-spacing: -.045em; }
main h2 { font-size: 25px; line-height: 1.2; font-weight: 650; letter-spacing: -.03em; }
main h3 { font-weight: 600; letter-spacing: -.015em; }
.eyebrow { color: var(--studio-muted); font-size: 12px; }
.amount { font-weight: 600; letter-spacing: -.04em; }
.arrow-link { color: var(--ink-2); font-weight: 500; }
:root[data-theme="dark"] .arrow-link { color: var(--ink-2); }
.arrow-link:hover { color: var(--accent-text); }

/* The chrome spans the viewport. Navigation stays close to the content. */
body > header { padding: 0; border-bottom: 1px solid var(--studio-border); background: var(--bg); }
body > header > .card {
  max-width: none;
  border: 0;
  border-radius: 0 !important;
  background: var(--bg);
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
body > header > .card > .flex:first-child {
  max-width: var(--max-w);
  height: 72px;
  margin-inline: auto;
  padding-inline: 28px;
  gap: 24px;
}
header a[aria-label="Checkout home"] { padding-right: 5px; }
header a[aria-label="Checkout home"] [aria-label="PAID"] { display: none !important; }
header nav[aria-label="Primary"] { justify-content: flex-start; gap: 2px; }
header nav a.rounded-full {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 11px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
:root header nav a[aria-current="page"], :root #mobile-nav a[aria-current="page"] {
  color: var(--accent-pink-text);
  background: color-mix(in srgb, var(--accent-pink) 9%, transparent);
  box-shadow: none;
}
header nav a:hover { background: var(--studio-hover); }
header .btn, header .pill { border-radius: 8px; }
header .btn:not(.btn-primary), header .pill {
  border-color: var(--studio-border);
  background: var(--studio-panel);
  box-shadow: none;
}
header .kbd { border-color: var(--studio-border); background: transparent; color: var(--ink-3); font-size: 9px; }
header .btn-primary { font-size: 13px; }
header .pill { font-size: 12px; }
#mobile-nav { border-radius: 0; max-height: calc(100dvh - 72px); padding: 18px; background: var(--studio-panel); }
#mobile-nav nav { gap: 6px; }
#mobile-nav a { border-radius: 8px; }

/* Flat surfaces leave the emphasis to artwork, values and meaningful actions. */
.card, main .card-md, footer > .card {
  border: 1px solid var(--studio-border);
  border-radius: 14px;
  background: var(--studio-panel);
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.card-hover, a.card, button.card { transition: background-color 180ms ease, border-color 180ms ease, transform 220ms var(--ios-smooth); }
@media (hover: hover) {
  .card-hover:hover, a.card:hover, button.card:hover {
    border-color: #dec7d766;
    background: var(--studio-raised);
    box-shadow: none;
    transform: translateY(-2px);
  }
}
.btn, .pill { border-radius: 9px; box-shadow: none; }
.btn-primary, .btn-primary:disabled {
  border: 1px solid transparent;
  color: var(--on-accent);
  background: var(--accent-primary);
  box-shadow: none;
}
.btn-primary:hover { color: var(--on-accent); background: var(--accent-primary-hover); box-shadow: none; }
main .btn-primary::after { display: none; }
.btn:not(.btn-primary):not(.btn-white) { background: var(--studio-panel); border-color: var(--studio-border); }
.field {
  border: 1px solid var(--studio-border);
  border-radius: 9px;
  background: var(--studio-panel);
  box-shadow: none;
}
.field:hover { border-color: #dec7d766; }
.field:focus { border-color: var(--focus-ring); box-shadow: 0 0 0 3px #dec7d71a; }
.seg { padding: 4px; border: 1px solid var(--studio-border); border-radius: 10px; background: var(--studio-panel); box-shadow: none; }
.seg > button, .seg[data-glass-seg]::before { border-radius: 7px; }
.seg[data-glass-seg]::before { border: 0; background: var(--studio-raised); box-shadow: none; }
.seg > button { font-size: 13px; }
.chip { border-radius: 6px; box-shadow: none; font-size: 10px; }
.chip-cleared { color: var(--clear); background: color-mix(in srgb, var(--clear) 9%, transparent); }
.row { padding-block: 17px; border-color: var(--studio-border); transition: background-color 150ms ease; }
.row:hover { background: var(--studio-hover); }
.bar { height: 3px; border-radius: 4px; background: var(--paper-2); }
.bar > span { background: var(--stamp-hi); }
.panel, .sheet { border: 1px solid var(--studio-border); border-radius: 16px; background: var(--studio-panel); box-shadow: 0 24px 100px #0005; -webkit-backdrop-filter: none; backdrop-filter: none; }
.sheet[role="dialog"]:has([role="combobox"]) { max-width: min(680px, calc(100vw - 32px)); }
/* Keep dialog backgrounds crisp; a full-screen blur repeatedly samples the
   animated hero and desaturation made the whole page appear gray. */
.panel-scrim { background: #08080866; -webkit-backdrop-filter: none; backdrop-filter: none; }
.ios-enter { animation-duration: 360ms; }
main .hero { border-radius: 14px; box-shadow: none; }

/* Wallet dialog: compact account surface inspired by the PokeStocks flow. */
.fixed.inset-0:has(> .sheet[aria-labelledby="wallet-title"]) {
  align-items: center !important;
  padding: 16px !important;
}
.fixed.inset-0:has(> .sheet[aria-labelledby="wallet-title"]) > .panel-scrim {
  background: #08080870;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.sheet[role="dialog"][aria-labelledby="wallet-title"] {
  width: min(420px, calc(100vw - 32px));
  max-width: 420px;
  padding: 0 !important;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--stamp-hi) 22%, var(--studio-border));
  border-radius: 20px;
  background: #161616;
  box-shadow: 0 34px 100px #00000094, 0 0 36px #c2a8b912;
}
.sheet[role="dialog"][aria-labelledby="wallet-title"] > div:first-child {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 12px;
  min-height: 92px;
  padding: 17px 16px 16px 18px;
  border-bottom: 1px solid var(--studio-border);
}
.sheet[role="dialog"][aria-labelledby="wallet-title"] > div:first-child::before {
  content: "";
  width: 40px;
  height: 40px;
  border: 1px solid #dec7d733;
  border-radius: 11px;
  background: #252525 url('/brand/logo-pink.svg') center / 30px 30px no-repeat;
}
.sheet[role="dialog"][aria-labelledby="wallet-title"] > div:first-child > div:first-of-type {
  display: flex;
  min-width: 0;
  flex-direction: column;
}
.sheet[role="dialog"][aria-labelledby="wallet-title"] > div:first-child > div:first-of-type::before {
  content: "CHECKOUT";
  order: -2;
  margin-bottom: 3px;
  color: var(--stamp-hi);
  font: 700 9px/1.1 var(--font-mono);
  letter-spacing: .13em;
}
.sheet[role="dialog"][aria-labelledby="wallet-title"] #wallet-title {
  order: -1;
  margin: 0;
  color: #f7f7f7;
  font-size: 18px !important;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -.025em;
}
.sheet[role="dialog"][aria-labelledby="wallet-title"] #wallet-title + p {
  margin: 4px 0 0;
  color: #9f9f9f;
  font-size: 11px;
}
.sheet[role="dialog"][aria-labelledby="wallet-title"] > div:first-child > button {
  width: 34px !important;
  height: 34px !important;
  min-height: 34px;
  padding: 0;
  border: 1px solid #ffffff0d;
  border-radius: 9px;
  background: #ffffff08;
  color: #a8a8a8;
}
.sheet[role="dialog"][aria-labelledby="wallet-title"] > div:nth-child(2) {
  gap: 10px;
  margin: 0 !important;
  padding: 14px;
}
.sheet[role="dialog"][aria-labelledby="wallet-title"] button[data-wallet-option] {
  position: relative;
  min-height: 70px;
  padding: 12px 14px;
  border: 1px solid #ffffff12;
  border-radius: 13px;
  background: #1e1e1e;
  color: #f5f5f5;
  box-shadow: none;
}
.sheet[role="dialog"][aria-labelledby="wallet-title"] button[data-wallet-option]:hover {
  border-color: #dec7d766;
  background: #242424;
}
.sheet[role="dialog"][aria-labelledby="wallet-title"] button[data-wallet-option] > span:first-child {
  position: relative;
  width: 34px;
  height: 34px;
  flex: none;
  border: 1px solid #dec7d729;
  border-radius: 9px;
  background: #262626;
}
.sheet[role="dialog"][aria-labelledby="wallet-title"] button[data-wallet-option] > span:first-child::before,
.sheet[role="dialog"][aria-labelledby="wallet-title"] button[data-wallet-option] > span:first-child::after {
  content: "";
  position: absolute;
  left: 8px;
  width: 18px;
  height: 12px;
  border: 1.5px solid #dec7d7;
  border-radius: 3px;
}
.sheet[role="dialog"][aria-labelledby="wallet-title"] button[data-wallet-option] > span:first-child::before { top: 7px; }
.sheet[role="dialog"][aria-labelledby="wallet-title"] button[data-wallet-option] > span:first-child::after { top: 13px; background: #262626; }
.sheet[role="dialog"][aria-labelledby="wallet-title"] button[data-wallet-option] img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}
.sheet[role="dialog"][aria-labelledby="wallet-title"] button[data-wallet-option] > span:nth-child(2) > span:first-child {
  color: #f4f4f4;
  font-size: 14px;
}
.sheet[role="dialog"][aria-labelledby="wallet-title"] button[data-wallet-option] > span:nth-child(2) > span:last-child {
  margin-top: 3px;
  color: #939393;
  font-size: 11px;
}
.sheet[role="dialog"][aria-labelledby="wallet-title"] button[data-wallet-option="No wallet found"] { padding-right: 102px; }
.sheet[role="dialog"][aria-labelledby="wallet-title"] button[data-wallet-option="No wallet found"]::after {
  content: "Scan again";
  position: absolute;
  right: 14px;
  top: 50%;
  padding: 9px 10px;
  border: 1px solid #ffffff0d;
  border-radius: 8px;
  background: #303030;
  color: #e6e6e6;
  font-size: 11px;
  font-weight: 650;
  transform: translateY(-50%);
}
.sheet[role="dialog"][aria-labelledby="wallet-title"] [role="alert"] {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--alert) 26%, transparent);
  border-radius: 10px;
  background: color-mix(in srgb, var(--alert) 8%, transparent);
  font-size: 11px;
  line-height: 1.45;
}
.sheet[role="dialog"][aria-labelledby="wallet-title"] > div:nth-child(2) > p:last-child {
  margin: 2px 2px 0;
  color: #919191;
  font-size: 10px;
  line-height: 1.5;
}
.sheet[role="dialog"][aria-labelledby="wallet-title"] .stub {
  position: relative;
  padding: 15px !important;
  border: 1px solid #ffffff12;
  border-radius: 13px;
  background: #1e1e1e;
}
.sheet[role="dialog"][aria-labelledby="wallet-title"] .stub::after {
  content: "Connected";
  position: absolute;
  right: 14px;
  top: 13px;
  padding-left: 11px;
  color: var(--clear);
  font: 650 9px/1 var(--font-mono);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.sheet[role="dialog"][aria-labelledby="wallet-title"] .stub::before {
  content: "";
  position: absolute;
  right: 73px;
  top: 16px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--clear);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--clear) 14%, transparent);
}
.sheet[role="dialog"][aria-labelledby="wallet-title"] .stub > div:first-child {
  color: var(--stamp-hi);
  font: 700 9px/1.2 var(--font-mono);
  letter-spacing: .11em;
  text-transform: uppercase;
}
.sheet[role="dialog"][aria-labelledby="wallet-title"] .stub > a {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding: 0 11px;
  border: 1px solid #ffffff0d;
  border-radius: 9px;
  background: #171717;
  color: #f5f5f5;
  text-decoration: none;
}
.sheet[role="dialog"][aria-labelledby="wallet-title"] .stub > div:last-child {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #ffffff0d;
}
.sheet[role="dialog"][aria-labelledby="wallet-title"] .stub + button {
  min-height: 42px;
  border-color: #ff777733;
  background: #ff77770a;
  color: #ff9999;
}
.sheet[role="dialog"][aria-labelledby="wallet-title"] .stub + button:hover {
  border-color: #ff777766;
  background: #ff777712;
}

/* Wallet surfaces follow the warm paper palette in light mode. */
:root:not([data-theme="dark"]) .sheet[role="dialog"][aria-labelledby="wallet-title"] {
  background: linear-gradient(145deg, #fffdfef7, #f8edf4f5);
  border-color: #83677824;
  box-shadow: 0 24px 70px #65455724, inset 0 1px 0 #ffffff;
}
:root:not([data-theme="dark"]) .sheet[role="dialog"][aria-labelledby="wallet-title"] > div:first-child {
  border-bottom-color: #8367781c;
}
:root:not([data-theme="dark"]) .sheet[role="dialog"][aria-labelledby="wallet-title"] > div:first-child::before {
  border-color: #83677824;
  background-color: #f2e3ed;
}
:root:not([data-theme="dark"]) .sheet[role="dialog"][aria-labelledby="wallet-title"] #wallet-title,
:root:not([data-theme="dark"]) .sheet[role="dialog"][aria-labelledby="wallet-title"] button[data-wallet-option] > span:nth-child(2) > span:first-child,
:root:not([data-theme="dark"]) .sheet[role="dialog"][aria-labelledby="wallet-title"] .stub > a {
  color: var(--ink);
}
:root:not([data-theme="dark"]) .sheet[role="dialog"][aria-labelledby="wallet-title"] #wallet-title + p,
:root:not([data-theme="dark"]) .sheet[role="dialog"][aria-labelledby="wallet-title"] button[data-wallet-option] > span:nth-child(2) > span:last-child,
:root:not([data-theme="dark"]) .sheet[role="dialog"][aria-labelledby="wallet-title"] > div:nth-child(2) > p:last-child {
  color: var(--ink-3);
}
:root:not([data-theme="dark"]) .sheet[role="dialog"][aria-labelledby="wallet-title"] > div:first-child > button,
:root:not([data-theme="dark"]) .sheet[role="dialog"][aria-labelledby="wallet-title"] button[data-wallet-option],
:root:not([data-theme="dark"]) .sheet[role="dialog"][aria-labelledby="wallet-title"] .stub {
  border-color: #8367781d;
  background: #fffafd;
  color: var(--ink);
}
:root:not([data-theme="dark"]) .sheet[role="dialog"][aria-labelledby="wallet-title"] button[data-wallet-option]:hover {
  border-color: #c079ad66;
  background: #f8edf4;
}
:root:not([data-theme="dark"]) .sheet[role="dialog"][aria-labelledby="wallet-title"] button[data-wallet-option] > span:first-child,
:root:not([data-theme="dark"]) .sheet[role="dialog"][aria-labelledby="wallet-title"] button[data-wallet-option] > span:first-child::after {
  background: #f2e3ed;
}
:root:not([data-theme="dark"]) .sheet[role="dialog"][aria-labelledby="wallet-title"] button[data-wallet-option="No wallet found"]::after {
  border-color: #8367781d;
  background: #f1e1eb;
  color: var(--ink);
}
:root:not([data-theme="dark"]) .sheet[role="dialog"][aria-labelledby="wallet-title"] .stub > a {
  border-color: #8367781a;
  background: #f7edf3;
}
:root:not([data-theme="dark"]) .sheet[role="dialog"][aria-labelledby="wallet-title"] .stub > div:last-child {
  border-top-color: #8367781a;
}
:root:not([data-theme="dark"]) .sheet[role="dialog"][aria-labelledby="wallet-title"] > div:first-child > div:first-of-type::before,
:root:not([data-theme="dark"]) .sheet[role="dialog"][aria-labelledby="wallet-title"] .stub > div:first-child {
  color: var(--accent-text);
}
:root:not([data-theme="dark"]) .sheet[role="dialog"][aria-labelledby="wallet-title"] button[data-wallet-option] > span:first-child::before,
:root:not([data-theme="dark"]) .sheet[role="dialog"][aria-labelledby="wallet-title"] button[data-wallet-option] > span:first-child::after {
  border-color: var(--accent-text);
}
:root:not([data-theme="dark"]) .sheet[role="dialog"][aria-labelledby="wallet-title"] .stub + button {
  color: #a63250;
  border-color: #a6325033;
  background: #a6325008;
}

/* Keep the React-owned composer and live receipt, with discovery above them. */
main .hero:has(h1) {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 0;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}
main .hero:has(h1) > checkout-discover {
  display: block;
  grid-column: 1 / -1;
  grid-row: 1;
  min-width: 0;
  margin-bottom: 36px;
}
main .hero:has(h1) > div:first-of-type {
  grid-column: 1;
  grid-row: 2;
  align-self: stretch;
  padding: 32px;
  border: 1px solid var(--studio-border);
  border-right: 0;
  border-radius: 14px 0 0 14px;
  background: var(--studio-panel);
}
main .hero:has(h1) > div:first-of-type::before {
  content: "YOUR NEXT MOVE";
  min-height: 0;
  padding: 0;
  margin-bottom: 14px;
  border: 0;
  border-radius: 0;
  color: var(--accent-pink-text);
  background: none;
  font-size: 10px;
  letter-spacing: .14em;
}
main .hero:has(h1) h1 { max-width: 16ch; font-size: 38px !important; line-height: 1.07 !important; }
main .hero:has(h1) h1 + p { max-width: 52ch; margin-top: 14px; font-size: 14px; line-height: 1.6; }
main .hero:has(h1) form { margin-top: 24px; }
main .hero:has(h1) form > label { font-size: 9px; }
main .hero:has(h1) > div:first-of-type > a { margin-top: 12px; font-size: 11px; }
main .hero:has(h1) > div:nth-of-type(2) {
  grid-column: 2;
  grid-row: 2;
  align-self: stretch;
  min-height: 340px;
  margin: 0;
  padding: 50px 42px;
  border: 1px solid var(--studio-border);
  border-radius: 0 14px 14px 0;
  background:
    linear-gradient(0deg, #272727b3, #27272700 50%),
    repeating-linear-gradient(0deg, transparent 0 39px, #dec7d70a 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, #dec7d70a 39px 40px),
    radial-gradient(ellipse at 65% 20%, #626262 0, #3c3c3c 65%, #2a2a2a);
  box-shadow: none;
}
main .hero:has(h1) > div:nth-of-type(2)::before { display: none; }
main .hero:has(h1) > div:nth-of-type(2)::after { content: "ON-CHAIN. EVERY TIME."; left: 28px; bottom: 22px; font-size: 9px; color: #dec7d7; }
main .hero:has(h1) > div:nth-of-type(2) > div { transform: rotate(-4deg); }
main .hero:has(h1) > div:nth-of-type(2) > img { display: none; }
main .hero:has(input[aria-label="X handle"]) > :nth-child(2) {
  background: #343434 url('/art/discover-cash.svg') center / cover no-repeat;
}
main .hero:has(input[aria-label="X handle"]) > :first-child::before { content: "YOUR CHEQUEBOOK"; }
main .hero:has(input[aria-label="X handle"]) > :nth-child(2)::after { content: "EVERY PAYMENT. ALL IN ONE PLACE."; color: #674b62; }
main .hero:has(input[aria-label="X handle"]) button[type="submit"] {
  border: 1px solid transparent;
  background: var(--accent-primary);
  color: var(--on-accent);
  box-shadow: none;
}
main .hero:has(h1) .hero-chip { top: 20px; right: 20px; border-radius: 8px; padding: 8px 12px; font-size: 10px; box-shadow: 0 8px 25px #17171733; }
main .hero:has(h1) .hero-chip > :last-child > :first-child { font-size: 10px; }
.hero form > div:has(> input):has(> button[type="submit"]) {
  min-height: 54px;
  padding: 5px;
  border: 1px solid var(--studio-border);
  border-radius: 10px;
  background: var(--bg);
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.hero form > div:has(> input):has(> button[type="submit"])::before { display: none; }
.hero form > div:has(> input):has(> button[type="submit"]):is(:hover, :focus-within) { transform: none; background: var(--bg); border-color: var(--focus-ring); box-shadow: 0 0 0 3px #dec7d712; }
.hero form > div:has(> input):has(> button[type="submit"]) > input { font-size: 15px; }
.hero form > div:has(> input):has(> button[type="submit"]) > button { border-radius: 7px; min-height: 42px; font-size: 13px; }
.hero form > span { font-size: 11px; }

main:has(.hero h1):has(checkout-discover) section[aria-label="Totals"] {
  gap: 0;
  grid-auto-rows: 1fr;
  margin-top: 16px;
  padding: 0;
  border: 1px solid var(--studio-border);
  border-radius: 12px;
  background: var(--studio-panel);
  box-shadow: none;
  overflow: hidden;
}
main:has(.hero h1):has(checkout-discover) section[aria-label="Totals"] > .card {
  min-width: 0;
  padding: 23px 26px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
main:has(.hero h1):has(checkout-discover) section[aria-label="Totals"] > .card:first-child { background: transparent; }
main:has(.hero h1):has(checkout-discover) section[aria-label="Totals"] > .card:focus-visible { outline-offset: -3px; }
main:has(.hero h1):has(checkout-discover) section[aria-label="Totals"] > .card + .card { border-left: 1px solid var(--studio-border); }
main:has(.hero h1):has(checkout-discover) section[aria-label="Totals"] > .card:hover { transform: none; background: var(--studio-hover); }
main:has(.hero h1):has(checkout-discover) section[aria-label="Totals"] .amount { font-size: 32px; }
main:has(.hero h1):has(checkout-discover) section[aria-label="Totals"] .card > :last-child { color: var(--ink-3); font-size: 11px; }
main section[aria-labelledby="burn-h"] { margin-top: 0; }
main section[aria-labelledby="burn-h"] > .card { border-left: 1px solid var(--studio-border); border-radius: 12px; }
main section[aria-labelledby="burn-h"] h2 { font-size: 18px; }
main section[aria-labelledby="feed-h"], main section[aria-labelledby="how-h"], main section[aria-labelledby="coins-h"] { margin-top: 40px; }
main section[aria-labelledby="feed-h"] { column-gap: 24px; }
main section[aria-labelledby="feed-h"] .card { border-radius: 12px; }
main section[aria-labelledby="feed-h"] .row { padding-inline: 12px; }
main section[aria-labelledby="how-h"] ol { gap: 16px; }
main section[aria-labelledby="how-h"] li { padding: 24px; }
main section[aria-labelledby="how-h"] li > div:first-child { height: 150px; margin: -24px -24px 0; border-radius: 13px 13px 0 0; background: radial-gradient(ellipse at 50% 120%, #dec7d723, transparent 75%), var(--studio-raised); }
main section[aria-labelledby="how-h"] li > div:first-child img { width: 124px !important; height: 124px !important; }
main section[aria-labelledby="how-h"] li [aria-hidden="true"] { border-radius: 8px; }
main section[aria-labelledby="how-h"] h3 { font-size: 20px; }

/* Existing live coin data becomes a browsable card collection. */
main a.card[href^="/coin/"] { overflow: hidden; padding: 18px; gap: 19px; border-radius: 12px; }
main a.card[href^="/coin/"] > :first-child {
  position: relative;
  align-items: flex-end;
  min-height: 164px;
  margin: -18px -18px 0;
  padding: 21px;
  isolation: isolate;
  background: radial-gradient(ellipse at 80% 5%, #dec7d738, transparent 65%), linear-gradient(145deg, #393939, #202020);
}
main a.card[href^="/coin/"]:nth-child(3n + 2) > :first-child { background: radial-gradient(ellipse at 80% 5%, #dec7d736, transparent 65%), linear-gradient(145deg, #3a3a3a, #242424); }
main a.card[href^="/coin/"]:nth-child(3n) > :first-child { background: radial-gradient(ellipse at 80% 5%, #c6c6c638, transparent 65%), linear-gradient(145deg, #3a3a3a, #282828); }
main a.card[href^="/coin/"] > :first-child::after { content: ""; position: absolute; right: -40px; top: -70px; z-index: -1; width: 200px; height: 200px; border: 1px solid #dec7d715; border-radius: 50%; box-shadow: 0 0 0 28px #dec7d705, 0 0 0 56px #dec7d703; }
main a.card[href^="/coin/"] > :first-child > span[aria-label] { position: absolute; right: 21px; top: 22px; width: 58px !important; height: 58px !important; border-radius: 14px !important; box-shadow: 0 6px 20px #0002 !important; }
main a.card[href^="/coin/"] > :first-child > span:not([aria-label]) { position: absolute; left: 21px; top: 22px; border-radius: 5px; }
main a.card[href^="/coin/"] > :first-child > div { color: #f3f3f3; }
main a.card[href^="/coin/"] > :first-child > div > :first-child { font-size: 22px; letter-spacing: -.025em; }
main a.card[href^="/coin/"] > :first-child > div > :last-child { margin-top: 5px; color: #cbcbcb; font-size: 12px; }
main a.card[href^="/coin/"] > :last-child { padding-top: 13px; }
main a.card[href^="/coin/"] .eyebrow { font-size: 10px; }
main a.card[href^="/coin/"] .amount { font-size: 22px; }
main a.card[href^="/coin/"] .text-right .amount { font-size: 17px; }

main section.hero:has(h2):has(input[maxlength="16"]) {
  margin-top: 52px;
  padding: 36px 40px;
  border: 1px solid #dec7d738;
  border-radius: 14px;
  background: linear-gradient(115deg, var(--studio-panel), var(--studio-raised));
  box-shadow: none;
}
main section.hero:has(h2):has(input[maxlength="16"])::after { display: none; }
main section.hero:has(h2):has(input[maxlength="16"]) h2 { max-width: 21ch; font-size: 34px; }
footer.wrap { margin-top: 60px; padding-bottom: 32px; }
footer > .card { padding: 32px 0; border: 0; border-top: 1px solid var(--studio-border); border-radius: 0; background: transparent; box-shadow: none; }
footer [aria-label="PAID"] { display: none !important; }
footer nav { font-size: 12px; }
footer nav a { transition: color 160ms ease; }
footer nav a:hover { color: var(--accent-text); }
footer > p { display: none; }

/* Important utilities live in a cascade layer in the captured build. */
@layer utilities {
  body > header > .card { border-radius: 0 !important; }
  main .hero:has(h1) h1 { font-size: 38px !important; line-height: 1.07 !important; }
  main section[aria-labelledby="burn-h"] > .card { padding: 22px 26px !important; }
}
@media (min-width: 1600px) {
  main .hero:has(h1) > div:first-of-type { padding: 36px 48px; }
  main .hero:has(h1) > div:nth-of-type(2) { padding-inline: 80px; }
}
@media (max-width: 1279px) and (min-width: 1024px) {
  body > header > .card > .flex:first-child { padding-inline: 20px; gap: 12px; }
  header nav a.rounded-full { padding-inline: 8px; font-size: 12px; }
  header button[aria-label="Search (Ctrl K)"] { width: 36px; min-width: 36px; padding: 0; gap: 0; font-size: 0; }
  header button[aria-label="Search (Ctrl K)"] .kbd { display: none; }
}
@media (max-width: 1023px) {
  body > header > .card > .flex:first-child { height: 64px; padding-inline: 24px; }
  main { padding-top: 92px; }
  .wrap { padding-inline: 24px; }
  main .hero:has(h1) > div:first-of-type { padding: 26px; }
  main .hero:has(h1) > div:nth-of-type(2) { min-height: 0; padding: 40px 26px; }
  main .hero:has(h1) h1 { font-size: 32px !important; }
  main .hero:has(h1) form > div:has(> button) { flex-wrap: wrap; }
  main:has(.hero h1):has(checkout-discover) section[aria-label="Totals"] > .card { padding: 22px; }
  main:has(.hero h1):has(checkout-discover) section[aria-label="Totals"] > .card:nth-child(3) { border-left: 0; }
  main:has(.hero h1):has(checkout-discover) section[aria-label="Totals"] > .card:nth-child(n + 3) { border-top: 1px solid var(--studio-border); }
  @layer utilities { main .hero:has(h1) h1 { font-size: 32px !important; } }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 82px; }
  .wrap { padding-inline: 16px; }
  body > header > .card > .flex:first-child { height: 64px; padding-inline: 16px; gap: 8px; }
  header a[aria-label="Checkout home"] > span { gap: 6px; }
  header a[aria-label="Checkout home"] img { width: 28px !important; height: 28px !important; }
  header a[aria-label="Checkout home"] > span > div { font-size: 14px !important; }
  main { padding-top: 88px; }
  main h2 { font-size: 23px; }
  main .hero:has(h1) { grid-template-columns: minmax(0, 1fr); }
  main .hero:has(h1) > checkout-discover { margin-bottom: 28px; }
  main .hero:has(h1) > div:first-of-type { grid-column: 1; padding: 26px 22px; border: 1px solid var(--studio-border); border-radius: 12px; }
  main .hero:has(h1) h1 { max-width: 17ch; font-size: 32px !important; }
  main .hero:has(h1) h1 + p { margin-top: 12px; font-size: 14px; }
  main .hero:has(h1) > div:nth-of-type(2) { display: none; }
  main .hero:has(h1) > div:first-of-type > a { font-size: 11px; }
  .hero form > div:has(> input):has(> button[type="submit"]) > button { padding-inline: 13px; font-size: 12px; }
  main:has(.hero h1):has(checkout-discover) section[aria-label="Totals"] { margin-top: 8px; }
  main:has(.hero h1):has(checkout-discover) section[aria-label="Totals"] > .card { padding: 18px 15px; }
  main:has(.hero h1):has(checkout-discover) section[aria-label="Totals"] .amount { font-size: clamp(18px, 5.8vw, 28px); }
  main:has(.hero h1):has(checkout-discover) section[aria-label="Totals"] .eyebrow { font-size: 11px; }
  main section[aria-labelledby="feed-h"], main section[aria-labelledby="how-h"], main section[aria-labelledby="coins-h"] { margin-top: 30px; }
  main section[aria-labelledby="feed-h"] { row-gap: 30px; }
  main section[aria-labelledby="how-h"] li { padding: 22px; }
  main section[aria-labelledby="how-h"] li > div:first-child { margin: -22px -22px 0; }
  main a.card[href^="/coin/"] > :first-child { min-height: 170px; }
  main section.hero:has(h2):has(input[maxlength="16"]) { margin-top: 36px; padding: 26px 22px; }
  main section.hero:has(h2):has(input[maxlength="16"]) h2 { font-size: 28px; }
  footer.wrap { margin-top: 36px; }
  footer > .card { padding-top: 26px; }
  .panel { border-radius: 16px 16px 0 0; }
  @layer utilities {
    main .hero:has(h1) h1 { font-size: 32px !important; }
    main section[aria-labelledby="burn-h"] > .card { padding: 22px !important; }
  }
}
@media (max-width: 380px) {
  body > header > .card > .flex:first-child { padding-inline: 12px; }
  .wrap { padding-inline: 12px; }
  main .hero:has(h1) > div:first-of-type { padding: 24px 18px; }
}
@media (prefers-reduced-transparency: reduce) {
  .card, body > header > .card, .field, .panel, .sheet { background: var(--studio-panel); }
  body > header > .card { background: var(--bg); }
  .panel-scrim { -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-reduced-motion: reduce) {
  .card-hover:hover, a.card:hover, button.card:hover { transform: none; }
}
