@font-face {
  font-family: "Gloock";
  src: url("assets/fonts/gloock.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/manrope-regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/manrope-medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/manrope-semibold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #050705;
  --paper: #f5f4eb;
  --white: #f7f9f4;
  --muted: #c9d1c5;
  --neon: #ccff00;
  --forest: #122113;
  --line: rgb(247 249 244 / 34%);
  --display: "Gloock", Georgia, serif;
  --body: "Manrope", sans-serif;
  font-family: var(--body);
  background: var(--ink);
  color: var(--white);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  overflow-x: hidden;
}

[hidden] {
  display: none !important;
}

button,
input,
select {
  font: inherit;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--neon);
  outline-offset: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 1rem;
  left: 1rem;
  padding: 0.75rem 1rem;
  background: var(--neon);
  color: var(--ink);
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.hero {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-width: 0;
  min-height: 100svh;
  padding: 1.1rem clamp(1rem, 4vw, 4.5rem) 0;
  isolation: isolate;
  overflow: hidden;
}

.hero-media,
.hero-shade {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.role-transition {
  --role-origin-x: 50%;
  --role-origin-y: 50%;
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at var(--role-origin-x) var(--role-origin-y), rgb(204 255 0 / 24%) 0 5rem, rgb(204 255 0 / 8%) 18rem, transparent 42rem);
  clip-path: circle(0 at var(--role-origin-x) var(--role-origin-y));
}

.role-transition.is-active {
  animation: role-wash 900ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.nav,
.role-gate,
.agent-connect,
.hero-copy,
.receipt {
  z-index: 1;
}

.hero-shade {
  z-index: -1;
  background:
    linear-gradient(180deg, rgb(0 0 0 / 42%) 0%, transparent 34%, transparent 70%, rgb(0 0 0 / 30%) 100%),
    radial-gradient(circle at 50% 40%, transparent 0 30%, rgb(0 0 0 / 20%) 86%);
}

.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(100%, 94rem);
  margin: 0 auto;
  padding: 0.55rem 0.65rem 0.55rem 1.45rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(3 8 4 / 68%);
  box-shadow: 0 18px 50px rgb(0 0 0 / 24%);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  width: max-content;
  font: 400 1.55rem/1 var(--display);
  text-decoration: none;
}

.brand img {
  width: 1.65rem;
  height: 1.65rem;
}

.hero-sigil {
  position: absolute;
  z-index: 0;
  top: 28%;
  right: clamp(2rem, 8vw, 9rem);
  width: clamp(9rem, 15vw, 15rem);
  pointer-events: none;
  animation: sigil-exit 700ms 3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-sigil svg {
  display: block;
  overflow: visible;
  width: 100%;
}

.sigil-lines {
  fill: none;
  stroke: var(--white);
  stroke-width: 0.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 2px var(--neon));
}

.sigil-lines path {
  stroke-dasharray: 180;
  stroke-dashoffset: 180;
  animation: sigil-draw 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.sigil-string { animation-delay: 380ms !important; }
.sigil-release {
  stroke: var(--neon);
  animation-delay: 780ms !important;
}

.sigil-nodes {
  fill: var(--white);
  stroke: var(--neon);
  stroke-width: 0.8;
}

.sigil-nodes circle {
  opacity: 0;
  transform: scale(0.25);
  transform-box: fill-box;
  transform-origin: center;
  filter: drop-shadow(0 0 2px var(--neon));
  animation: sigil-node 420ms 1.05s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.sigil-nodes .sigil-release-node {
  fill: var(--neon);
  animation-delay: 1.35s;
}

@keyframes sigil-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes sigil-node {
  to { opacity: 1; transform: scale(1); }
}

@keyframes sigil-exit {
  to { opacity: 0; filter: blur(8px); }
}

.nav-links {
  display: flex;
  gap: 2.2rem;
}

.nav-links a,
.nav-cta,
.wallet-pill {
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

.nav-links a {
  color: var(--muted);
}

.nav-links a:hover {
  color: var(--white);
}

.nav-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.buy-token {
  min-height: 44px;
  padding: 0.65rem 1rem;
  border: 1px solid var(--neon);
  border-radius: 999px;
  background: var(--neon);
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.buy-token:hover { background: var(--white); border-color: var(--white); }

@media (max-width: 600px) {
  .hero .nav { grid-template-columns: auto minmax(0, 1fr); }
  .nav-actions { flex-wrap: wrap; justify-content: flex-end; }
  .buy-token { padding-inline: 0.75rem; }
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.65rem;
  border-radius: 999px;
  white-space: nowrap;
}

.nav-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--white);
}
.nav-social svg { width: 18px; height: 18px; fill: currentColor; }
.nav-social:hover { color: var(--neon); }
@media (max-width: 480px) {
  .nav-actions .nav-cta { display: none; }
}

.wallet-pill {
  min-height: 2.65rem;
  padding: 0.65rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  white-space: nowrap;
}

.wallet-pill[data-connected="true"]::before {
  content: "";
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin-right: 0.45rem;
  border-radius: 50%;
  background: var(--neon);
}

.nav-cta {
  gap: 0.65rem;
  padding: 0.72rem 1.15rem;
  background: var(--neon);
  color: var(--ink);
}

.nav-cta svg,
.search button svg {
  width: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.hero-copy {
  position: relative;
  align-self: center;
  width: min(64rem, 100%);
  margin: clamp(2rem, 8vh, 7rem) auto clamp(8rem, 16vh, 12rem);
  text-align: center;
}

.role-gate,
.agent-connect {
  position: relative;
  align-self: center;
  width: min(54rem, 100%);
  margin: clamp(2rem, 8vh, 7rem) auto clamp(6rem, 12vh, 9rem);
  text-align: center;
  animation: role-reveal 560ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.role-gate h1 {
  margin-bottom: 0.65rem;
  font-size: clamp(4rem, 9vw, 6rem);
}

.role-gate > p,
.agent-connect > p {
  max-width: 55ch;
  margin: 0 auto 1.7rem;
  color: #eef4e9;
  line-height: 1.6;
  text-wrap: balance;
  text-shadow: 0 2px 16px rgb(0 0 0 / 54%);
}

.role-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: min(39rem, 100%);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgb(247 249 244 / 72%);
  border-radius: 1rem;
  background: rgb(4 10 5 / 76%);
  box-shadow: 0 22px 60px rgb(0 0 0 / 25%);
  backdrop-filter: blur(16px);
}

.role-choice {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.2rem 1rem;
  min-height: 8.5rem;
  padding: 1.45rem 1.55rem;
  border: 0;
  background: transparent;
  color: var(--white);
  text-align: left;
  cursor: pointer;
  transition: background-color 180ms ease-out, color 180ms ease-out, opacity 220ms ease-out, transform 260ms cubic-bezier(0.16, 1, 0.3, 1), filter 220ms ease-out;
}

.role-choice + .role-choice {
  border-left: 1px solid var(--line);
}

.role-choice span {
  align-self: end;
  font: 400 clamp(2rem, 4vw, 3rem) / 1 var(--display);
  letter-spacing: -0.03em;
}

.role-choice small {
  align-self: start;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
}

.role-choice svg {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  width: 1.35rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  transition: transform 180ms ease-out;
}

.role-choice:hover,
.role-choice:focus-visible {
  background: var(--neon);
  color: var(--ink);
}

.role-choice:hover small,
.role-choice:focus-visible small { color: #1e2918; }
.role-choice:hover svg { transform: translate(2px, -2px); }

.role-choice:disabled { cursor: default; }

.role-gate.is-leaving {
  animation: role-depart 430ms cubic-bezier(0.55, 0, 1, 0.45) both;
  will-change: transform, opacity, filter;
}

.role-gate.is-leaving h1,
.role-gate.is-leaving > p {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 180ms ease-in, transform 220ms ease-in;
}

.role-gate.is-leaving .role-choice:not(.is-selected) {
  opacity: 0;
  transform: scale(0.94);
  filter: blur(4px);
}

.role-gate.is-leaving .role-choice.is-selected {
  z-index: 1;
  background: var(--neon);
  color: var(--ink);
  transform: scale(1.025);
  box-shadow: 0 18px 45px rgb(204 255 0 / 22%);
}

.role-gate.is-leaving .role-choice.is-selected small { color: #1e2918; }

.hero-copy.is-arriving {
  animation: human-arrive 680ms 40ms cubic-bezier(0.16, 1, 0.3, 1) both;
  will-change: transform, opacity, filter, clip-path;
}

.receipt.is-arriving {
  animation: receipt-arrive 720ms 140ms cubic-bezier(0.16, 1, 0.3, 1) both;
  will-change: transform, opacity;
}

.agent-connect.is-arriving {
  animation: agent-arrive 680ms cubic-bezier(0.16, 1, 0.3, 1) both;
  will-change: transform, opacity, filter, clip-path;
}

.agent-connect.is-departing {
  animation: agent-depart 220ms ease-in both;
}

.agent-connect {
  width: min(48rem, 100%);
  padding: clamp(1.4rem, 4vw, 2.4rem);
  border: 1px solid rgb(247 249 244 / 58%);
  border-radius: 1rem;
  background: rgb(3 8 4 / 78%);
  box-shadow: 0 22px 60px rgb(0 0 0 / 32%);
  backdrop-filter: blur(18px);
}

.agent-connect h1 {
  margin-bottom: 1rem;
  font-size: clamp(2.8rem, 6vw, 5rem);
}

.role-back {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  margin: 0 auto 1.5rem;
  padding: 0.5rem 0.7rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}

.role-back:hover { color: var(--white); }
.role-back svg { width: 1rem; fill: none; stroke: currentColor; stroke-width: 1.6; }

.agent-clients {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}

.agent-clients button {
  display: grid;
  grid-template-columns: 2rem 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.7rem;
  row-gap: 0.18rem;
  align-items: center;
  min-height: 5rem;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: rgb(247 249 244 / 6%);
  color: var(--white);
  text-align: left;
  cursor: pointer;
  transition: border-color 180ms ease-out, background-color 180ms ease-out, color 180ms ease-out;
}

.agent-clients button:hover,
.agent-clients button[aria-pressed="true"] {
  border-color: transparent;
  background: var(--neon);
  color: var(--ink);
}

.agent-client-icon {
  grid-row: 1 / -1;
  width: 2rem;
  height: 2rem;
  fill: currentColor;
}

.agent-client-icon-image {
  border-radius: 0.5rem;
  object-fit: cover;
}

.agent-clients button span { font: 400 1.4rem/1 var(--display); }
.agent-clients button small { font-size: 0.875rem; font-weight: 600; }

.connection-command {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.75rem;
  padding: 1rem;
  border-radius: 0.75rem;
  background: #050705;
  text-align: left;
}

.connection-command span {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.connection-command code {
  overflow-wrap: anywhere;
  color: var(--white);
  font: 500 0.78rem/1.6 ui-monospace, "Cascadia Code", monospace;
}

.connection-status {
  min-height: 1.2rem;
  margin: 0.7rem auto 0 !important;
  color: var(--muted) !important;
  font-size: 0.875rem !important;
  text-shadow: none !important;
}

@keyframes role-reveal {
  from { opacity: 0.2; transform: translateY(14px); filter: blur(5px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes role-wash {
  0% { opacity: 0; clip-path: circle(0 at var(--role-origin-x) var(--role-origin-y)); }
  38% { opacity: 1; }
  72% { opacity: 0.65; clip-path: circle(85vmax at var(--role-origin-x) var(--role-origin-y)); }
  100% { opacity: 0; clip-path: circle(100vmax at var(--role-origin-x) var(--role-origin-y)); }
}

@keyframes role-depart {
  0%, 36% { opacity: 1; transform: scale(1); filter: blur(0); }
  100% { opacity: 0; transform: scale(0.965) translateY(-14px); filter: blur(7px); }
}

@keyframes human-arrive {
  from { opacity: 0; transform: translateY(22px) scale(0.975); filter: blur(8px); clip-path: inset(18% 0 0); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); clip-path: inset(0); }
}

@keyframes receipt-arrive {
  from { opacity: 0; transform: translateY(70%); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes agent-arrive {
  from { opacity: 0; transform: translateY(18px) scale(0.97); filter: blur(8px); clip-path: inset(16% 7% 12%); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); clip-path: inset(0); }
}

@keyframes agent-depart {
  to { opacity: 0; transform: translateY(10px) scale(0.98); filter: blur(5px); }
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 14ch;
  margin-inline: auto;
  margin-bottom: 1.2rem;
  font: 400 clamp(3.7rem, 7.6vw, 6rem) / 0.94 var(--display);
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.hero-copy > p {
  max-width: 58ch;
  margin: 0 auto 1.5rem;
  color: #eef4e9;
  font-size: clamp(0.9rem, 1.4vw, 1.05rem);
  line-height: 1.55;
  text-wrap: balance;
  text-shadow: 0 2px 16px rgb(0 0 0 / 54%);
}

.search {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  width: min(42rem, 100%);
  margin: 0 auto;
  padding: 0.38rem 0.42rem 0.38rem 1rem;
  border: 1px solid rgb(247 249 244 / 72%);
  border-radius: 999px;
  background: rgb(4 10 5 / 76%);
  box-shadow: 0 22px 60px rgb(0 0 0 / 25%);
  backdrop-filter: blur(16px);
}

.search-icon {
  width: 1.35rem;
  fill: none;
  stroke: var(--white);
  stroke-width: 1.6;
}

.search input {
  min-width: 0;
  padding: 0.75rem 0.9rem;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--white);
}

.search input::placeholder {
  color: #c9d1c5;
  opacity: 1;
}

.search button {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--neon);
  color: var(--ink);
  cursor: pointer;
  transition: transform 180ms ease-out, box-shadow 180ms ease-out;
}

.search button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgb(204 255 0 / 28%);
}

.search button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.demo-status {
  width: max-content;
  max-width: 100%;
  min-height: 1.25rem;
  margin-top: 0.65rem !important;
  margin-bottom: 0 !important;
  padding: 0.32rem 0.65rem;
  border-radius: 999px;
  background: rgb(0 0 0 / 58%);
  color: #f7f9f4 !important;
  font-size: 0.875rem !important;
  text-shadow: none !important;
}

.roundup-consent {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  margin: 0.9rem 0;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.45;
}

.roundup-consent input {
  margin-top: 0.15rem;
  accent-color: var(--neon);
}

.marketplace {
  min-height: 100svh;
  padding: 0 clamp(1rem, 4vw, 4.5rem) clamp(5rem, 9vw, 8rem);
  background: radial-gradient(circle at 80% 5%, rgb(204 255 0 / 12%), transparent 28rem), var(--ink);
}

.marketplace-header {
  position: sticky;
  z-index: 8;
  top: 0;
  display: grid;
  grid-template-columns: 1fr minmax(20rem, 42rem) 1fr;
  gap: 1rem;
  align-items: center;
  width: min(100%, 94rem);
  margin: 0 auto;
  padding: 0.75rem 0;
  background: var(--ink);
  isolation: isolate;
}

.marketplace-header::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset-block: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: var(--ink);
  pointer-events: none;
}

.marketplace-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  width: max-content;
  font: 400 1.45rem/1 var(--display);
  text-decoration: none;
}

.marketplace-brand img { width: 1.55rem; height: 1.55rem; }

.marketplace-search {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 0.3rem 0.35rem 0.3rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #10150f;
}

.search:focus-within,
.marketplace-search:focus-within {
  border-color: transparent;
  outline: 2px solid var(--neon);
  outline-offset: 3px;
}

.marketplace-search input {
  min-width: 0;
  padding: 0.65rem 0.75rem;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--white);
}

.marketplace-search button,
.product-detail-buy {
  min-height: 2.6rem;
  padding: 0.65rem 1rem;
  border: 0;
  border-radius: 999px;
  background: var(--neon);
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}

.marketplace-search button:disabled { cursor: wait; opacity: 0.58; }

.marketplace-home {
  justify-self: end;
  color: var(--muted);
  font-size: 0.875rem;
  text-decoration: none;
}

.marketplace-intro {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: end;
  width: min(100%, 94rem);
  margin: clamp(4rem, 8vw, 7rem) auto 2.25rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.product-detail-source {
  color: var(--neon);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.marketplace-intro h2 {
  max-width: 12ch;
  margin: 0;
  font: 400 clamp(3.2rem, 6vw, 6rem) / 0.92 var(--display);
  letter-spacing: -0.04em;
}

.marketplace-intro p { margin: 0; color: var(--muted); font-size: 0.875rem; }

.marketplace-toolbar {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  width: min(100%, 94rem);
  margin: 0 auto 1.25rem;
}

.marketplace-toolbar label,
.marketplace-toolbar button {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.65rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.875rem;
}

.marketplace-toolbar select { border: 0; outline: 0; background: var(--ink); color: var(--white); }
.marketplace-toolbar button { margin-left: auto; color: var(--white); cursor: pointer; }

.marketplace-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  width: min(100%, 94rem);
  margin: 0 auto;
}

.marketplace-card {
  display: grid;
  grid-template-rows: auto auto minmax(3.8rem, auto) auto auto auto;
  gap: 0.55rem;
  min-width: 0;
  padding: 0.75rem;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 1rem;
  background: var(--paper);
  color: #111610;
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease-out, border-color 180ms ease-out;
}

.marketplace-card:hover { border-color: var(--neon); transform: translateY(-4px); }

.marketplace-card img {
  width: 100%;
  height: clamp(11rem, 18vw, 16rem);
  margin-bottom: 0.35rem;
  object-fit: contain;
  border-radius: 0.75rem;
  background: var(--white);
}

.marketplace-card-meta,
.marketplace-card-rating { color: #596255; font-size: 0.875rem; }

.marketplace-card-name {
  display: -webkit-box;
  overflow: hidden;
  font: 400 1.18rem/1.08 var(--display);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.marketplace-card-price { font: 400 1.65rem/1 var(--display); }

.marketplace-card-roundup {
  width: max-content;
  max-width: 100%;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: #e4e8d9;
  color: #263023;
  font-size: 0.875rem;
  font-weight: 600;
}

.marketplace-empty { width: min(100%, 94rem); margin: 4rem auto; color: var(--muted); text-align: center; }

.product-dialog {
  width: min(64rem, calc(100% - 2rem));
  max-height: calc(100svh - 2rem);
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 1rem;
  background: var(--paper);
  box-shadow: 0 28px 90px rgb(0 0 0 / 55%);
  color: #111610;
}

.product-dialog::backdrop { background: rgb(1 4 2 / 82%); backdrop-filter: blur(12px); }

.product-dialog-close {
  position: absolute;
  z-index: 2;
  top: 1rem;
  right: 1rem;
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border: 1px solid rgb(17 22 16 / 18%);
  border-radius: 50%;
  background: var(--paper);
  color: #111610;
  cursor: pointer;
}

.product-dialog-close svg { width: 1.1rem; fill: none; stroke: currentColor; stroke-width: 1.7; }
.product-detail { display: grid; grid-template-columns: 1.05fr 0.95fr; min-height: 34rem; }
.product-detail-image { display: grid; padding: clamp(2rem, 6vw, 5rem); place-items: center; background: var(--white); }
.product-detail-image img { width: 100%; max-height: 26rem; object-fit: contain; }
.product-detail-copy { align-self: center; padding: clamp(2rem, 5vw, 4rem); }

.product-detail-copy h2 {
  margin: 0.8rem 0 1rem;
  font: 400 clamp(2rem, 4vw, 3.4rem) / 0.98 var(--display);
  letter-spacing: -0.03em;
}

.product-detail-rating { color: #596255; font-size: 0.875rem; }
.product-detail-price { display: block; margin: 1.25rem 0; font: 400 2.6rem/1 var(--display); }

.product-detail-facts {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0;
  margin: 0;
  border-top: 1px solid rgb(17 22 16 / 18%);
}

.product-detail-facts dt,
.product-detail-facts dd {
  margin: 0;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgb(17 22 16 / 18%);
  font-size: 0.875rem;
}

.product-detail-facts dt { color: #596255; }
.product-detail-facts dd { padding-left: 1rem; font-weight: 600; text-align: right; }

.product-detail-attributes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem 1rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.product-detail-attributes li { display: grid; gap: 0.15rem; min-width: 0; }
.product-detail-attributes span { color: #596255; font-size: 0.875rem; }
.product-detail-attributes strong { overflow-wrap: anywhere; font-size: 0.875rem; }

.product-detail-roundup {
  display: grid;
  gap: 0.25rem;
  margin: 1.5rem 0;
  padding: 1rem;
  border-radius: 0.8rem;
  background: #e4e8d9;
}

.product-detail-roundup span,
.product-detail-roundup small { color: #4b5548; font-size: 0.875rem; }
.product-detail-roundup strong { font: 400 1.8rem/1 var(--display); }
.product-detail-actions { display: grid; gap: 0.85rem; text-align: center; }
.product-detail-actions a { color: #394136; font-size: 0.875rem; }

.marketplace-toolbar select:focus-visible {
  outline: 3px solid var(--neon);
  outline-offset: 2px;
}

.search input:focus-visible,
.marketplace-search input:focus-visible {
  outline: 0;
}

.checkout {
  width: min(42rem, calc(100% - 2rem));
  max-height: calc(100svh - 2rem);
  padding: 0;
  overflow: hidden auto;
  border: 0;
  border-radius: 1rem;
  background: var(--paper);
  box-shadow: 0 28px 90px rgb(0 0 0 / 55%);
  color: #111610;
}

.checkout::backdrop {
  background: rgb(0 4 1 / 72%);
  backdrop-filter: blur(10px);
}

.checkout-shell {
  padding: clamp(1.25rem, 4vw, 2.25rem);
}

.checkout-header,
.checkout-product,
.quote div {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.checkout-header {
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.checkout-header h2,
.checkout-success h2 {
  margin: 0.25rem 0 0;
  font: 400 clamp(2rem, 7vw, 3.4rem) / 1 var(--display);
  letter-spacing: -0.03em;
}

.merchant-chip {
  color: #465042;
  font-size: 0.875rem;
  font-weight: 600;
}

.checkout-close {
  display: grid;
  flex: 0 0 auto;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border: 1px solid rgb(17 22 16 / 24%);
  border-radius: 50%;
  background: transparent;
  color: #111610;
  cursor: pointer;
}

.checkout-close svg,
.success-orbit svg {
  width: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.checkout-product {
  justify-content: flex-start;
  gap: 0.9rem;
  padding: 1rem 0;
  border-block: 1px solid rgb(17 22 16 / 16%);
}

.checkout-product-image {
  width: 3.5rem;
  height: 3.5rem;
  flex: 0 0 auto;
  object-fit: contain;
  border-radius: 0.75rem;
  background: var(--paper);
}

.checkout-product > div:nth-child(2) {
  display: grid;
  gap: 0.15rem;
}

.checkout-product > div:nth-child(2) span {
  color: #465042;
  font-size: 0.875rem;
}

.checkout-product > div:nth-child(2) strong {
  font: 400 1.25rem/1 var(--display);
}

.checkout-product .merchant-chip {
  margin-left: auto;
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  background: #e4e8d9;
}

.shipping-fields {
  display: grid;
  grid-template-columns: 1fr 0.45fr 0.65fr;
  gap: 0.8rem;
  margin: 1.5rem 0;
  padding: 0;
  border: 0;
}

.shipping-fields legend {
  grid-column: 1 / -1;
  margin-bottom: 0.25rem;
  font: 400 1.35rem/1.1 var(--display);
}

.field {
  display: grid;
  gap: 0.35rem;
  color: #465042;
  font-size: 0.875rem;
  font-weight: 600;
}

.field-wide {
  grid-column: 1 / -1;
}

.field input {
  width: 100%;
  min-height: 2.85rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgb(17 22 16 / 24%);
  border-radius: 0.75rem;
  background: var(--paper);
  color: #111610;
}

.checkout-consent {
  margin: 0;
  padding: 1rem;
  border-radius: 0.8rem;
  background: #e4e8d9;
  color: #394136;
}

.checkout-consent strong {
  color: #111610;
}

.quote {
  margin-top: 1rem;
  padding: 0.4rem 1rem;
  border-radius: 0.8rem;
  background: #111610;
  color: var(--white);
}

.quote div {
  padding: 0.65rem 0;
  border-bottom: 1px solid rgb(247 249 244 / 16%);
  font-size: 0.875rem;
}

.quote div:last-child {
  border-bottom: 0;
}

.quote span {
  color: var(--muted);
}

.quote-purchase strong,
#quote-contribution {
  color: var(--neon);
}

.checkout-status {
  margin: 0.9rem 0;
  color: #465042;
  font-size: 0.875rem;
  line-height: 1.5;
}

.checkout-submit {
  width: 100%;
  min-height: 3.2rem;
  padding: 0.85rem 1rem;
  border: 0;
  border-radius: 999px;
  background: var(--neon);
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
}

.checkout-submit:disabled {
  cursor: wait;
  opacity: 0.58;
}

.checkout-success {
  padding: clamp(2rem, 8vw, 5rem) 0;
  text-align: center;
}

.success-orbit {
  display: grid;
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.25rem;
  place-items: center;
  border-radius: 50%;
  background: var(--neon);
}

.checkout-success p {
  max-width: 42ch;
  margin: 1rem auto 2rem;
  color: #465042;
  line-height: 1.6;
}

.success-stages {
  display: grid;
  margin: 0 auto 1rem;
  padding: 0.4rem 1rem;
  border-radius: 0.8rem;
  background: #111610;
  color: var(--white);
  text-align: left;
}

.success-stages span {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgb(247 249 244 / 16%);
  color: var(--muted);
  font-size: 0.875rem;
}

.success-stages span:last-child {
  border-bottom: 0;
}

.success-stages strong {
  color: var(--neon);
}

.checkout-success small {
  display: block;
  margin-bottom: 1rem;
  color: #465042;
}

.receipt {
  position: relative;
  display: grid;
  grid-template-columns: 1.45fr 0.8fr auto 0.9fr auto 1fr;
  align-items: center;
  width: min(86rem, 92vw);
  margin: 0 auto -0.2rem;
  padding: 1.35rem clamp(1rem, 3vw, 2.6rem);
  overflow: hidden;
  border-radius: 2.4rem 2.4rem 0 0;
  background: var(--paper);
  box-shadow: 0 -24px 55px rgb(0 0 0 / 30%);
  color: #111610;
  transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 600ms ease-out;
}

.receipt.updated {
  transform: translateY(-0.8rem);
  box-shadow: 0 -30px 75px rgb(204 255 0 / 22%);
}

.receipt-item,
.receipt-step {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.receipt-step {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  padding-left: clamp(1rem, 2vw, 2rem);
  border-left: 1px solid rgb(17 22 16 / 18%);
}

.receipt span {
  color: #394136;
  font-size: 0.875rem;
  font-weight: 600;
}

.receipt strong {
  display: block;
  font: 400 clamp(1.2rem, 2vw, 1.75rem) / 1.1 var(--display);
}

.product-orbit {
  display: grid;
  flex: 0 0 auto;
  width: 3.6rem;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: #e4e8d9;
}

.product-orbit svg {
  width: 2rem;
  fill: none;
  stroke: #172017;
  stroke-width: 2;
}

.operator {
  color: #111610 !important;
  font: 400 1.5rem/1 var(--display) !important;
}

.receipt-total strong {
  width: max-content;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--neon);
}

.mechanism {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(3rem, 10vw, 10rem);
  padding: clamp(7rem, 12vw, 12rem) clamp(1.4rem, 7vw, 8rem);
  background: var(--ink);
}

.mechanism-heading {
  position: sticky;
  top: 4rem;
  align-self: start;
}

.mechanism h2,
.roundups h2,
.closing h2 {
  margin-bottom: 1.5rem;
  font: 400 clamp(2.2rem, 3.2vw, 3.4rem) / 1.02 var(--display);
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.mechanism-heading p,
.roundups-copy p {
  max-width: 60ch;
  color: var(--muted);
  line-height: 1.7;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  padding: 2.5rem 0 3.5rem;
  border-top: 1px solid var(--line);
}

.step-line {
  display: block;
  max-width: 23ch;
  margin-bottom: 0.75rem;
  font: 400 clamp(1.45rem, 2.2vw, 2.25rem) / 1.12 var(--display);
  letter-spacing: -0.025em;
}

.steps p {
  max-width: 48ch;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.roundups {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  min-height: 48rem;
  background: var(--neon);
  color: var(--ink);
}

.roundups-copy,
.growth-scene {
  padding: clamp(5rem, 9vw, 9rem) clamp(1.4rem, 7vw, 8rem);
}

.roundups-copy {
  align-self: center;
}

.roundups-copy p {
  color: #1e2918;
}

.section-kicker {
  display: block;
  margin-bottom: 0.8rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rule-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
}

.rule {
  padding: 0.75rem 1rem;
  border: 1px solid #1b2517;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.rule.active {
  background: var(--ink);
  color: var(--white);
}

.pending-copy {
  margin-top: 1rem;
  color: #1e2918;
  font-size: 0.875rem;
}

.pending-copy strong { margin-left: 0.35rem; }

.growth-scene {
  position: relative;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: var(--forest);
  color: var(--white);
}

.growth-sun {
  position: absolute;
  top: 8%;
  left: 50%;
  width: min(25rem, 70%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 120px rgb(204 255 0 / 45%);
  transform: translateX(-50%);
}

.growth-row,
.growth-total,
.growth-scene > p {
  position: relative;
}

.asset-console {
  position: relative;
  z-index: 1;
  width: min(34rem, 100%);
  margin: auto;
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 1px solid rgb(247 249 244 / 28%);
  border-radius: 1.5rem;
  background: rgb(3 8 4 / 88%);
  box-shadow: 0 30px 90px rgb(0 0 0 / 36%);
  backdrop-filter: blur(18px);
}

.asset-console-head,
.swap-review {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.asset-console-head span,
.swap-review span {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.asset-console-head strong {
  font: 400 1.75rem/1 var(--display);
}

.asset-console-head button,
.asset-form button,
.swap-review button,
.wallet-list button,
.wallet-disconnect {
  border: 0;
  border-radius: 999px;
  background: var(--neon);
  color: var(--ink);
  cursor: pointer;
  font-weight: 600;
}

.asset-console-head button { padding: 0.7rem 0.9rem; }

.asset-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem;
  margin: 1.5rem 0 1rem;
  padding: 0.25rem;
  border-radius: 999px;
  background: rgb(247 249 244 / 8%);
}

.asset-tabs button {
  padding: 0.65rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.875rem;
}

.asset-tabs button.active { background: var(--white); color: var(--ink); }

.asset-form {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 0.65rem;
}

.asset-form label {
  color: var(--muted);
  font-size: 0.875rem;
}

.asset-form select,
.asset-form input {
  min-width: 0;
  font-size: 1rem;
  width: 100%;
  min-height: 3rem;
  margin-top: 0.35rem;
  padding: 0.7rem;
  border: 1px solid rgb(247 249 244 / 22%);
  border-radius: 0.7rem;
  outline: 0;
  background: #0b100b;
  color: var(--white);
}

.asset-form select:focus,
.asset-form input:focus { border-color: var(--neon); box-shadow: 0 0 0 1px var(--neon); }
.asset-form button { grid-column: 1 / -1; min-height: 3rem; }
.asset-form button:disabled,
.swap-review button:disabled { opacity: 0.5; cursor: wait; }

.swap-review {
  margin-top: 0.75rem;
  padding: 1rem;
  border-radius: 0.8rem;
  background: rgb(247 249 244 / 8%);
}

.swap-review strong { display: block; }
.swap-review button { padding: 0.75rem 1rem; }
.asset-status { min-height: 2.4em; margin: 0.85rem 0 0; color: var(--muted); font-size: 0.875rem; line-height: 1.55; }

.wallet-dialog {
  width: min(31rem, calc(100% - 2rem));
  padding: 0;
  border: 1px solid rgb(247 249 244 / 24%);
  border-radius: 1.6rem;
  background: #0b100b;
  color: var(--white);
}

.wallet-dialog::backdrop { background: rgb(0 4 1 / 78%); backdrop-filter: blur(10px); }
.wallet-shell { position: relative; padding: 2rem; }
.wallet-shell h2 { margin: 0 0 0.75rem; font: 400 2rem/1.05 var(--display); }
.wallet-shell > p { color: var(--muted); font-size: 0.875rem; line-height: 1.6; }
.wallet-close { position: absolute; top: 1rem; right: 1rem; border: 0; background: transparent; color: var(--white); cursor: pointer; font-size: 1.5rem; }
.wallet-list { display: grid; gap: 0.55rem; margin-top: 1.4rem; }
.wallet-list button { display: flex; align-items: center; gap: 0.75rem; width: 100%; padding: 0.85rem 1rem; text-align: left; }
.wallet-list img { width: 1.5rem; height: 1.5rem; border-radius: 0.35rem; }
.wallet-list span { margin-left: auto; font-size: 0.875rem; }
.wallet-status { min-height: 1.3rem; }
.wallet-disconnect { padding: 0.75rem 1rem; background: transparent; border: 1px solid var(--line); color: var(--white); }

.growth-row,
.growth-total {
  display: flex;
  justify-content: space-between;
  padding: 1.05rem 0;
  border-top: 1px solid var(--line);
}

.growth-row span {
  color: var(--muted);
}

.growth-total {
  align-items: end;
  margin-top: 1rem;
}

.growth-total strong {
  font: 400 clamp(3rem, 6vw, 5rem) / 1 var(--display);
}

.growth-scene > p {
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.closing {
  display: flex;
  min-height: 70vh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 7rem 1.4rem;
  text-align: center;
}

.closing h2 {
  max-width: 15ch;
}

.closing a {
  padding: 1rem 1.4rem;
  border-radius: 999px;
  background: var(--neon);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

footer {
  display: grid;
  grid-template-columns: 0.5fr 1fr 1fr;
  gap: 2rem;
  padding: 2rem clamp(1.4rem, 5vw, 5rem);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

footer p {
  max-width: 65ch;
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.6;
}

@media (max-width: 800px) {
  .hero {
    min-height: 54rem;
    padding-inline: 1rem;
  }

  .nav {
    grid-template-columns: 1fr auto;
    padding-left: 1rem;
  }

  .nav-links {
    display: none;
  }

  .nav-actions {
    gap: 0.35rem;
  }

  .nav-cta {
    min-height: 2.75rem;
    padding-inline: 0.75rem;
    font-size: 0.875rem;
  }

  .wallet-pill { min-height: 2.75rem; padding-inline: 0.75rem; font-size: 0.875rem; }

  .hero-sigil {
    display: none;
  }

  .hero-copy {
    margin-top: 5rem;
    margin-bottom: 14rem;
  }

  .role-gate,
  .agent-connect {
    margin-top: 4rem;
    margin-bottom: 8rem;
  }

  h1 {
    font-size: clamp(3.35rem, 15vw, 5rem);
  }

  .receipt {
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    width: calc(100vw - 2rem);
    padding: 1.2rem;
    border-radius: 1.2rem 1.2rem 0 0;
  }

  .receipt-item {
    grid-column: 1 / -1;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgb(17 22 16 / 18%);
  }

  .receipt-step {
    padding-left: 0;
    border-left: 0;
  }

  .op-plus {
    grid-column: 2;
    grid-row: 2;
  }

  .receipt-match {
    grid-column: 3;
    grid-row: 2;
  }

  .op-equals {
    grid-column: 1;
    grid-row: 3;
    justify-self: end;
  }

  .receipt-total {
    grid-column: 2 / -1;
    grid-row: 3;
    align-self: stretch;
    justify-content: center;
    padding: 0.8rem;
    border-radius: 0.8rem;
    background: #e4e8d9;
  }

  .marketplace-header {
    grid-template-columns: auto 1fr;
  }

  .marketplace-home {
    display: none;
  }

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

  .product-detail {
    grid-template-columns: 1fr;
  }

  .product-detail-image {
    min-height: 18rem;
  }

  .checkout {
    width: calc(100% - 1rem);
    max-height: calc(100svh - 1rem);
  }

  .mechanism,
  .roundups {
    grid-template-columns: 1fr;
  }

  .mechanism {
    gap: 3rem;
    padding-block: 6rem;
  }

  .mechanism-heading {
    position: static;
  }

  .roundups {
    min-height: auto;
  }

  .growth-scene {
    min-height: 38rem;
  }

  .asset-console { margin: auto; }

  footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .role-actions {
    grid-template-columns: 1fr;
  }

  .role-choice {
    min-height: 6.8rem;
  }

  .role-choice + .role-choice {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .asset-console-head,
  .swap-review {
    flex-wrap: wrap;
  }

  .asset-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .agent-connect {
    padding: 1.2rem;
  }

  .agent-connect h1 br { display: none; }

  .agent-clients {
    grid-template-columns: 1fr;
  }

  .agent-clients button {
    min-height: 3.5rem;
  }

  .marketplace {
    padding-inline: 0.75rem;
  }

  .marketplace-header {
    grid-template-columns: 1fr;
  }

  .marketplace-brand {
    display: none;
  }

  .marketplace-intro {
    display: block;
    margin-top: 3rem;
  }

  .marketplace-intro p {
    margin-top: 1rem;
  }

  .marketplace-toolbar {
    overflow-x: auto;
    padding-bottom: 0.4rem;
  }

  .marketplace-toolbar label,
  .marketplace-toolbar button {
    flex: 0 0 auto;
  }

  .marketplace-grid {
    grid-template-columns: 1fr;
  }

  .marketplace-card img {
    height: 17rem;
  }

  .product-dialog {
    width: calc(100% - 1rem);
    max-height: calc(100svh - 1rem);
  }

  .product-detail-image {
    min-height: 16rem;
    padding: 2rem;
  }

  .shipping-fields {
    grid-template-columns: 1fr 0.55fr;
  }

  .field:nth-of-type(4) {
    grid-column: 1 / -1;
  }

  .checkout-product .merchant-chip {
    display: none;
  }
}

@media (max-width: 460px) {
  .brand span {
    display: none;
  }
}

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

  .hero-media {
    display: none;
  }

  .hero {
    background: url("assets/hero-poster-4k-motion.jpg") center / cover no-repeat;
  }

  .hero-sigil {
    display: none;
  }

  .search button,
  .role-transition,
  .role-gate,
  .agent-connect,
  .role-choice,
  .marketplace-card,
  .receipt {
    transition: none !important;
    animation: none !important;
  }
}

/* Product journey and conversational marketplace. */
.hero.has-quick-results { min-height: 100svh; height: auto; padding-bottom: 3rem; }
.hero.has-quick-results .hero-copy { padding-block: 2rem; }
.hero.has-quick-results .receipt { display: none; }
.quick-results { width: min(52rem, 100%); margin: 1.5rem auto 0; text-align: left; }
.quick-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; }
.quick-card { min-width: 0; display: grid; gap: 0.6rem; padding: 1rem; border: 0; border-radius: 12px; background: var(--paper); color: var(--ink); text-align: left; cursor: pointer; }
.quick-card img { width: 100%; height: 110px; object-fit: contain; mix-blend-mode: multiply; }
.quick-card span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.8em; font-size: 0.875rem; line-height: 1.4; }
.quick-card strong { font-size: 1rem; font-variant-numeric: tabular-nums; }
.quick-card:hover { background: #fff; }
.quick-actions { display: flex; justify-content: center; gap: 0.75rem; margin-top: 1rem; }
.quick-actions button, #refinement-form button { min-height: 46px; padding: 0.8rem 1.25rem; border: 1px solid var(--neon); border-radius: 8px; background: var(--neon); color: var(--ink); font-weight: 600; cursor: pointer; }
.quick-actions button + button { background: var(--ink); color: var(--white); border-color: var(--line); }
.shopping-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 320px; align-items: start; gap: 2rem; }
.shopping-results { min-width: 0; }
.shopping-workspace .marketplace-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.haggle-assistant { position: sticky; top: 7rem; padding: 1.5rem; background: var(--forest); border-radius: 14px; }
.assistant-heading { display: flex; align-items: center; gap: 0.85rem; margin-bottom: 1.2rem; }
.assistant-heading img { width: 38px; height: 38px; }
.assistant-heading h3 { font: 400 1.7rem/1.15 var(--display); margin: 0 0 0.3rem; }
.assistant-heading p { margin: 0; font-size: 0.875rem; color: var(--neon); }
.assistant-intro { color: var(--muted); font-size: 0.875rem; line-height: 1.65; }
.chat-messages { max-height: 350px; overflow-y: auto; scrollbar-color: var(--muted) var(--forest); }
.chat-message { font-size: 0.875rem; line-height: 1.65; padding-block: 0.9rem; margin: 0; overflow-wrap: anywhere; }
.chat-message + .chat-message { border-top: 1px solid var(--line); }
.chat-message.user { color: var(--neon); }
.chat-suggestions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0 1.5rem; }
.chat-suggestions button { padding: 0.55rem 0.7rem; border: 1px solid var(--line); border-radius: 7px; background: transparent; color: var(--white); font-size: 0.875rem; cursor: pointer; }
#refinement-form { display: grid; gap: 0.75rem; }
#refinement-form label { font-size: 0.875rem; }
#refinement-message { width: 100%; padding: 0.85rem; border: 1px solid var(--line); border-radius: 8px; background: var(--ink); color: var(--white); resize: vertical; font: 400 1rem/1.5 var(--body); caret-color: var(--neon); }
#refinement-message::placeholder { color: var(--muted); }
.refinement-status { margin: 0.8rem 0 0; color: var(--muted); font-size: 0.875rem; line-height: 1.5; }
.haggle-assistant button:disabled { opacity: 0.6; cursor: wait; }
.product-story { padding: clamp(4rem, 8vw, 8rem) clamp(1rem, 6vw, 6rem); max-width: 100rem; margin: auto; }
.story-heading { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: end; }
.story-heading h2, .roundup-story h2 { font: 400 clamp(2.5rem, 4.5vw, 4.6rem)/1.07 var(--display); letter-spacing: -0.03em; margin: 0; }
.story-heading p, .roundup-story p { color: var(--muted); font-size: 1rem; line-height: 1.75; max-width: 60ch; }
.journey-diagram { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; padding: 0; margin: 3.5rem 0 6rem; }
.journey-diagram li { position: relative; padding: 1.5rem 2rem 0 0; border-top: 1px solid var(--line); }
.journey-index { display: inline-grid; place-items: center; width: 2rem; height: 2rem; margin-top: -2.5rem; background: var(--ink); color: var(--neon); border: 1px solid var(--neon); border-radius: 50%; font-size: 0.875rem; }
.journey-diagram h3 { font: 400 1.7rem/1.2 var(--display); margin: 1.2rem 0 0.75rem; }
.journey-diagram p { color: var(--muted); font-size: 1rem; line-height: 1.7; max-width: 34ch; }
.roundup-story { display: grid; grid-template-columns: 1.15fr 1fr; gap: 4rem; align-items: center; }
.roundup-story figure { margin: 0; min-width: 0; }
.roundup-story img { width: 100%; height: auto; display: block; border-radius: 12px; }
.roundup-story figcaption { color: var(--muted); margin-top: 1rem; font-size: 0.875rem; line-height: 1.5; }
.roundup-story h2 { margin-bottom: 1.5rem; }
.roundup-example { padding: 1.25rem 1.5rem; margin: 1.5rem 0; background: var(--paper); color: var(--ink); border-radius: 12px; }
.roundup-example > div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.5rem 0; }
.roundup-example dt, .roundup-example dd { font-size: 0.875rem; line-height: 1.5; }
.roundup-example dd { margin: 0; font-weight: 600; text-align: right; }
.roundup-story .vision-note { font-size: 0.875rem; }
@media (max-width: 1100px) {
  .shopping-workspace { grid-template-columns: minmax(0, 1fr) 290px; gap: 1rem; }
  .shopping-workspace .marketplace-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .roundup-story { gap: 2rem; }
}
@media (max-width: 760px) {
  .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-card img { height: 90px; }
  .quick-actions button { padding-inline: 1rem; font-size: 0.875rem; }
  .shopping-workspace, .story-heading, .roundup-story { grid-template-columns: minmax(0, 1fr); }
  .haggle-assistant { position: static; grid-row: 1; }
  .chat-messages { max-height: 180px; }
  .journey-diagram { grid-template-columns: 1fr; margin-bottom: 3rem; gap: 2rem; }
  .journey-diagram li { padding-right: 0; }
  .journey-diagram p { max-width: 60ch; }
  .story-heading { gap: 1.5rem; }
  .roundup-story { gap: 2rem; }
}
.marketplace-open .hero, .marketplace-open .product-story, .marketplace-open .roundups, .marketplace-open .closing { display: none; }

/* Haggle's mechanism is explained in its own receipt and account UI. */
.roundup-flow { padding: 1.75rem; border: 1px solid var(--line); border-radius: 16px; background: var(--ink); }
.roundup-flow > figcaption { display: flex; justify-content: space-between; gap: 1rem; margin: 0 0 1.5rem; color: var(--white); font-size: 1rem; }
.roundup-flow > figcaption > span { color: var(--muted); font-size: 0.875rem; }
.flow-purchase { padding: 1.5rem; background: var(--paper); color: var(--ink); border-radius: 12px 12px 0 0; }
.flow-brand { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1.5rem; font: 400 1.8rem var(--display); }
.roundup-story .flow-brand img { width: 24px; height: 30px; filter: brightness(0); border-radius: 0; }
.flow-receipt-line { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0; font-size: 0.875rem; }
.flow-total { margin-top: 0.75rem; padding-top: 1rem; border-top: 1px dashed #394136; }
.flow-total strong { font: 400 1.8rem var(--display); }
.flow-connector { display: grid; justify-items: center; height: 40px; }
.flow-connector span { width: 1px; height: 20px; background: var(--neon); }
.flow-connector svg { width: 20px; height: 20px; fill: none; stroke: var(--neon); stroke-width: 1.5; }
.flow-balance { padding: 1.5rem; background: var(--forest); border-radius: 12px; }
.flow-balance > span, .flow-destination span { font-size: 0.875rem; color: var(--muted); }
.flow-balance > strong { display: block; margin: 0.75rem 0 1.25rem; font: 400 3.5rem/1 var(--display); font-variant-numeric: tabular-nums; }
.flow-balance small { font: 400 1rem var(--body); color: var(--muted); }
.flow-track { height: 3px; background: var(--line); }
.flow-track > span { display: block; height: 100%; width: 100%; background: var(--neon); transform: scaleX(0.88); transform-origin: left; transition: transform 600ms cubic-bezier(.16,1,.3,1); }
.roundup-story .flow-balance p { font-size: 0.875rem; margin: 1rem 0 0; line-height: 1.5; }
.flow-destination { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.flow-destination strong { display: block; margin-top: 0.5rem; font: 400 2rem var(--display); }
.flow-destination > span { color: var(--neon); max-width: 15ch; text-align: right; }
#flow-demonstrate { margin-top: 1.5rem; width: 100%; padding: 0.9rem 1rem; background: var(--neon); color: var(--ink); border: 0; border-radius: 8px; font-weight: 600; cursor: pointer; }
.roundup-story .flow-note { margin: 0.8rem 0 0; font-size: 0.875rem; line-height: 1.5; }
@media (prefers-reduced-motion: reduce) { .flow-track > span { transition: none; } }
@media (max-width: 480px) { .roundup-flow { padding: 1.25rem; } }
.automation-settings { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; padding: 5rem clamp(1rem,6vw,6rem); max-width: 100rem; margin: auto; }
.automation-settings h2 { font: 400 clamp(2.5rem,4.5vw,4.6rem)/1.07 var(--display); letter-spacing: -0.03em; }
.automation-settings p { color: var(--muted); font-size: 1rem; line-height: 1.7; max-width: 55ch; }
.automation-console { padding: 1.5rem; border: 1px solid var(--line); border-radius: 14px; min-width: 0; }
.automation-balances { display: grid; gap: 1rem; margin: 1.5rem 0; }
.automation-balances dt { color: var(--muted); font-size: 0.875rem; }
.automation-balances dd { margin: 0.4rem 0 0; font: 400 2rem var(--display); }
#automation-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
#automation-form label { display: grid; gap: 0.5rem; font-size: 0.875rem; line-height: 1.5; }
#automation-form input:not([type="checkbox"]), #automation-form select { width: 100%; min-width: 0; padding: 0.85rem; border: 1px solid var(--line); border-radius: 8px; background: var(--forest); color: var(--white); font-size: 1rem; }
#automation-form label:first-child, #automation-form .automation-consent, #automation-form p, #automation-form button { grid-column: 1 / -1; }
#automation-form .automation-consent { display: flex; align-items: start; }
#automation-form input[type="checkbox"] { margin-top: 0.25rem; accent-color: var(--neon); }
#automation-form .automation-permission { font-size: 0.875rem; margin: 0; }
.automation-console button { padding: 0.85rem 1rem; border: 1px solid var(--line); border-radius: 8px; background: var(--forest); color: var(--white); cursor: pointer; font-size: 0.875rem; }
#automation-enable { background: var(--neon); color: var(--ink); border: 0; font-weight: 600; }
.automation-console :disabled { opacity: 0.55; cursor: not-allowed; }
.automation-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; }
#automation-transaction { overflow-wrap: anywhere; font-size: 0.875rem; }
.marketplace-open .automation-settings { display: none; }
@media(max-width:760px) { .automation-settings { grid-template-columns: 1fr; gap: 2rem; } #automation-form { grid-template-columns: 1fr; } }
.automation-activity { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.automation-activity h3 { margin: 0 0 0.75rem; font-size: 1rem; font-weight: 600; }
.automation-activity ul { list-style: none; padding: 0; margin: 0; }
.automation-activity li { padding: 0.6rem 0; font-size: 0.875rem; line-height: 1.5; color: var(--muted); }
.automation-activity a { text-underline-offset: 0.2em; }

/* Wallet workspace inherits Haggle's forest, paper and restrained lime. */
.account-panel[hidden], .account-panel section[hidden] { display: none !important; }
body.account-open main > :not(#account-panel):not(dialog) { display: none !important; }
body.account-open footer { display: none; }
.account-panel { min-height: 100svh; background: #122113; color: #f7f9f4; padding: 0 clamp(1rem, 5vw, 5rem) 4rem; }
.account-header { max-width: 1280px; margin: auto; min-height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid #c9d1c533; }
.account-header .brand { color: #f7f9f4; }
.profile-history { max-width: 1280px; margin: 2.5rem auto; }
.profile-history-heading { display: flex; align-items: start; justify-content: space-between; gap: 1.5rem; }
.profile-history h2 { font: 400 clamp(2rem, 4vw, 3rem)/1.1 var(--display); }
.profile-history p { color: var(--muted); max-width: 65ch; }
.profile-history-list { list-style: none; padding: 0; margin: 1.5rem 0; }
.profile-history-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.profile-history-list li > :first-child { flex: 1 1 15rem; }
.profile-history-list p { margin: 0.35rem 0 0; }
.profile-history-list button { min-height: 44px; text-align: left; background: none; border: 0; color: var(--white); cursor: pointer; padding: 0.5rem 0; }
.profile-history-list button:hover, .profile-history-list a { color: var(--neon); }
@media (max-width: 600px) {
  .profile-history-heading { flex-direction: column; }
  .account-nav { flex-wrap: wrap; }
}
.account-identity { display: flex; align-items: center; gap: 1rem; font-size: 14px; }
.account-identity button, .account-heading > a { color: #f7f9f4; border: 1px solid #c9d1c566; border-radius: 999px; background: transparent; padding: 12px 18px; font-size: 14px; }
.account-heading { max-width: 1280px; margin: 48px auto 36px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.account-heading h1 { font: 400 clamp(2.7rem, 5vw, 4.4rem)/1.05 Gloock, Georgia, serif; letter-spacing: -.03em; margin: 0 0 12px; }
.account-heading p { color: #c9d1c5; margin: 0; }
.account-nav { max-width: 1280px; margin: 0 auto; display: flex; gap: 24px; border-bottom: 1px solid #c9d1c533; }
.account-nav button { padding: 16px 0; color: #c9d1c5; background: none; border: 0; border-bottom: 2px solid transparent; border-radius: 0; font-size: 16px; }
.account-nav button[aria-current] { color: #ccff00; border-bottom-color: #ccff00; }
.account-panel .automation-settings, .account-panel .roundups { max-width: 1280px; margin: auto; padding: 40px 0; background: transparent; color: #f7f9f4; display: grid; grid-template-columns: minmax(220px, .7fr) minmax(0, 1.3fr); gap: clamp(24px, 5vw, 72px); }
.account-panel .automation-settings h2, .account-panel .roundups h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); }
.account-panel .automation-settings > div > p, .account-panel .roundups-copy > p { color: #c9d1c5; font-size: 16px; max-width: 40ch; }
.account-panel .roundups-copy { background: none; padding: 0; }
.account-panel .section-kicker, .account-panel .growth-sun, #automation-connect, #roundup-connect { display: none; }
.account-panel .growth-scene { min-height: 0; background: none; padding: 0; display: block; }
.account-panel .asset-console { width: 100%; position: static; transform: none; margin: 0; background: #050705; border: 1px solid #c9d1c533; border-radius: 16px; padding: 28px; }
.account-panel .automation-console { border-radius: 16px; background: #050705; padding: 28px; }
.account-panel :is(button,a,input,select):focus-visible { outline: 2px solid #ccff00; outline-offset: 4px; }
@media (max-width: 700px) {
 .account-header { min-height: 80px; }
 .account-identity { gap: 8px; }
 .account-identity button { padding: 10px 14px; }
 .account-heading { margin: 32px auto 24px; align-items: flex-start; flex-direction: column; gap: 20px; }
 .account-panel .automation-settings, .account-panel .roundups { grid-template-columns: 1fr; padding: 28px 0; }
 .account-nav { gap: 20px; }
 .account-nav button { font-size: 14px; }
 .account-panel .asset-console, .account-panel .automation-console { padding: 20px; }
}
.chat-messages { display: flex; flex-direction: column; gap: 14px; padding: 12px 0; }
.chat-message { padding: 0; border: 0; }
.chat-message + .chat-message { border: 0; }
.chat-message.user { align-self: flex-end; max-width: 92%; background: #c9d1c51a; border-radius: 12px; padding: 12px 16px; color: #f7f9f4; }
.chat-message.assistant { padding: 8px 0; }
#refinement-form { background: #050705; border: 1px solid #c9d1c566; border-radius: 16px; padding: 14px; }
#refinement-form label { color: #c9d1c5; }
#refinement-message { border: 0; padding: 0; min-height: 64px; resize: none; }
#refinement-message:focus-visible { outline: none; }
#refinement-form:focus-within { border-color: #c9d1c5; }
#refinement-form button { justify-self: end; border-radius: 999px; min-height: 44px; padding: 10px 18px; }
#refinement-form[aria-busy="true"] button { opacity: .55; }

.search-sources { width: min(42rem, 100%); min-width: 0; margin: 1rem auto 0; padding: 0; border: 0; text-align: left; }
.search-sources legend { padding: 0; font-size: .875rem; color: var(--white); }
.search-source-options { display: flex; flex-wrap: wrap; gap: .35rem 1.25rem; margin-top: .25rem; }
.search-source { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; font-size: .875rem; color: var(--white); cursor: pointer; }
.search-source input { width: 18px; height: 18px; margin: 0; accent-color: var(--neon); cursor: inherit; }
.search-source.is-upcoming { color: #a3ada0; cursor: not-allowed; }
.search-source.is-upcoming input { opacity: .5; }
.search-sources p { margin: .15rem 0 0; font: 400 .75rem/1.5 var(--body); color: var(--muted); }
.marketplace > .search-sources { width: 100%; margin: 1.25rem 0; }
