/* The standalone marketing page uses the same midnight-plum theme as the app.
   Light colors remain in landing.html; only an active dark preference changes them. */
html[data-theme="dark"] {
  color-scheme: dark;
  --cream: #15111e;
  --ink: #f2edf8;
  --muted: #b7acc8;
  --pink: #f695bd;
  --pink-soft: #43283c;
  --purple: #bda0ff;
  --purple-soft: #322342;
  --line: #3b304d;
  --violet: #c5a8ff;
  --white: #1e1829;
}
html[data-theme="dark"] .logo-wagmi {
  background-image: linear-gradient(135deg, #f695bd, #bda0ff, #9fd5ff);
}
html[data-theme="dark"] :is(.preview, .feature, .community-sample>div) {
  background: var(--white);
}
html[data-theme="dark"] .preview { box-shadow: 0 18px 60px rgb(0 0 0 / .22); }
html[data-theme="dark"] .preview-row { border-color: var(--line); }
html[data-theme="dark"] .preview-conversation { background: #191421; }
html[data-theme="dark"] :is(.preview-compose, .skip) {
  background: #282035;
  border-color: var(--line);
}
html[data-theme="dark"] .button.secondary {
  background: var(--white);
  color: var(--ink);
  border-color: var(--line);
}
html[data-theme="dark"] :is(.button:not(.secondary), .preview-count) {
  color: #21142f;
}

/* Keep account access and appearance together at the trailing utility edge.
   DOM order matches visual and keyboard order: Sign in, then theme. */
.nav-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 12px; }
.nav > .logo { min-height: 44px; }
.nav-links > .desktop-link { min-width: 44px; justify-content: center; }

/* The theme control shares the app preference, without adding an app bundle
   to the public page or changing its sign-in links.
   Keep the switch geometry in sync with app/globals.css. */
.wm-theme-switch {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  width: 108px;
  min-width: 108px;
  height: 44px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #a18cb5;
  border-radius: 999px;
  background: linear-gradient(115deg, #fff8fc, #f0e7ff);
  color: #655774;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  box-shadow: inset 0 1px 3px rgb(58 46 77 / .06);
  transition: background 200ms ease, border-color 200ms ease;
}
.wm-theme-switch:hover { border-color: #7136b5; }
.wm-theme-switch:focus-visible { outline: 3px solid var(--violet); outline-offset: 4px; }
.wm-theme-switch__label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 13px 0 42px;
  pointer-events: none;
}
.wm-theme-switch__thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgb(113 54 181 / .12);
  border-radius: 50%;
  background: linear-gradient(145deg, #fff, #fff3f8);
  color: #7136b5;
  box-shadow: 0 2px 5px rgb(58 46 77 / .15), inset 0 1px 0 rgb(255 255 255 / .85);
  pointer-events: none;
  transition: transform 220ms cubic-bezier(.2, .8, .2, 1), background 200ms ease;
}
.wm-theme-switch__thumb svg {
  grid-area: 1 / 1;
  width: 20px;
  height: 20px;
  pointer-events: none;
  transition: opacity 160ms ease, transform 220ms ease;
}
.wm-theme-switch__moon { opacity: 0; transform: rotate(-20deg) scale(.8); }
.wm-theme-switch[aria-checked="true"] {
  border-color: #806b92;
  background: linear-gradient(115deg, #322342, #211a2d);
  color: #f2edf8;
}
.wm-theme-switch[aria-checked="true"]:hover { border-color: #c5a8ff; }
.wm-theme-switch[aria-checked="true"] .wm-theme-switch__label {
  justify-content: flex-start;
  padding: 0 42px 0 13px;
}
.wm-theme-switch[aria-checked="true"] .wm-theme-switch__thumb {
  transform: translateX(64px);
  background: linear-gradient(145deg, #f2eaff, #d6c2ff);
  color: #3a2e4d;
  border-color: rgb(255 255 255 / .35);
}
.wm-theme-switch[aria-checked="true"] .wm-theme-switch__sun { opacity: 0; transform: rotate(20deg) scale(.8); }
.wm-theme-switch[aria-checked="true"] .wm-theme-switch__moon { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .wm-theme-switch, .wm-theme-switch__thumb, .wm-theme-switch__thumb svg { transition: none; }
}
@media (forced-colors: active) {
  .wm-theme-switch, .wm-theme-switch[aria-checked="true"] { border-color: ButtonText; background: ButtonFace; color: ButtonText; }
  .wm-theme-switch__thumb, .wm-theme-switch[aria-checked="true"] .wm-theme-switch__thumb { border-color: ButtonText; background: ButtonFace; color: ButtonText; }
}
@media (max-width: 620px) {
  .nav { flex-wrap: wrap; }
  .nav-links { margin-left: auto; }
  .nav-actions { gap: 10px; }
  .landing-appearance { width: 100px; min-width: 100px; }
  .landing-appearance .wm-theme-switch__label { padding-right: 11px; }
  .landing-appearance[aria-checked="true"] .wm-theme-switch__label { padding-left: 11px; }
  .landing-appearance[aria-checked="true"] .wm-theme-switch__thumb { transform: translateX(56px); }
}
@media (max-width: 360px) {
  .nav { gap: 8px; }
  .nav-links { gap: 8px; }
  .nav-actions { gap: 8px; }
  .landing-appearance { width: 70px; min-width: 70px; }
  .landing-appearance .wm-theme-switch__label { display: none; }
  .landing-appearance[aria-checked="true"] .wm-theme-switch__thumb { transform: translateX(26px); }
}

/* NFT recognition is a product benefit immediately after the hero. Official
   network marks keep their original colors on white in either appearance. */
.network-section { padding: 0 0 64px; }
.network-panel {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 26px 40px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 8px 32px rgb(58 46 77 / .025);
}
.network-copy { min-width: 0; }
.network-copy h2 {
  margin: 12px 0 14px;
  font-size: clamp(28px, 2.7vw, 34px);
  letter-spacing: -.025em;
  line-height: 1.15;
}
.network-description { max-width: 440px; color: var(--muted); font-size: 15px; line-height: 1.75; }
.network-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-self: stretch;
  align-items: center;
  gap: 12px;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.network-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  align-self: center;
  min-width: 0;
  min-height: 140px;
  padding: 18px 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--cream);
  text-align: center;
}
.network-icon {
  display: grid;
  place-items: center;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border: 1px solid #e8e1ed;
  border-radius: 14px;
  background: #fff;
}
.network-symbol { display: block; width: 32px; height: 32px; }
.network-symbol--robinhood { width: 25px; height: 33px; }
.network-name { display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 42px; font-size: 15px; font-weight: 900; line-height: 1.4; }
.network-footer {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}
.network-note { max-width: 620px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.network-link { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; font-size: 13px; font-weight: 900; }
.network-link svg { flex-shrink: 0; }
.network-link:hover { text-decoration: underline; text-underline-offset: 4px; }
html[data-theme="dark"] .network-panel { box-shadow: none; }
@media (max-width: 1000px) {
  .network-panel { grid-template-columns: 1fr; gap: 24px; }
  .network-copy h2 br { display: none; }
  .network-description { max-width: 650px; }
  .network-item { min-height: 122px; gap: 12px; }
}
@media (max-width: 620px) {
  .network-section { padding-bottom: 48px; }
  .network-panel { padding: 24px; border-radius: 20px; gap: 22px; }
  .network-copy h2 { font-size: 29px; }
  .network-copy h2 br { display: initial; }
  .network-description { font-size: 15px; }
  .network-list { grid-template-columns: 1fr; gap: 10px; }
  .network-item { flex-direction: row; justify-content: flex-start; min-height: 68px; padding: 10px 14px; gap: 14px; border-radius: 14px; text-align: left; }
  .network-icon { flex-basis: 42px; width: 42px; height: 42px; border-radius: 12px; }
  .network-symbol { width: 29px; height: 29px; }
  .network-symbol--robinhood { width: 23px; height: 30px; }
  .network-name { min-height: 0; font-size: 16px; }
  .network-footer { padding-top: 15px; gap: 8px; }
  .network-note { font-size: 12px; }
}
