/* toqanWallet landing. One light world on purpose: white ground, night ink, pink for the button.
   The three corner triangles are the only large colour and sit behind everything. */
:root {
  --night: #0e0f12;
  --white: #ffffff;
  --canvas: #f7f5f6;
  --ink: #0e0f12;
  --ink-2: #55535a;
  --ink-3: #8e8a92;
  --rule: #ece7ea;
  --rule-strong: #ddd5da;
  --quiet: #efecee;
  --pink-50: #fceef5;
  --pink-100: #f7cee2;
  --pink-300: #eda4c8;
  --pink-500: #dc5895;
  --pink-700: #b03a73;
  --stop: #e8482e;

  --display: "Funnel Display", "Geist", ui-sans-serif, system-ui, sans-serif;
  --sans: "Funnel Sans", "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 40px);
}

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

[hidden] {
  display: none !important;
}

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

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

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

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

a {
  color: inherit;
}

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

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.mono {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0;
}

.muted {
  color: var(--ink-3);
}

/* ---------- Depth: corner triangles ---------- */

.depth {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.tri {
  position: absolute;
  display: block;
  will-change: transform;
}

/* Top right: a pale wedge cut from the corner. */
.tri-a {
  top: -6vh;
  right: -4vw;
  width: min(54vw, 760px);
  height: min(62vh, 640px);
  opacity: 0.55;
}

/* Bottom left: a deeper wedge, lower so the hero copy stays on white. */
.tri-b {
  bottom: -14vh;
  left: -6vw;
  width: min(44vw, 620px);
  height: min(56vh, 560px);
  opacity: 0.32;
}

/* A solid pink triangle half off the right edge: the one saturated shape. */
.tri-c {
  top: 62vh;
  right: -11vw;
  width: min(22vw, 300px);
  height: min(22vw, 300px);
  opacity: 0.9;
  transform-origin: 50% 60%;
}

main,
.nav,
.foot {
  position: relative;
  z-index: 1;
}

/* ---------- Buttons and links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 14px;
  background: var(--pink-500);
  color: var(--night);
  font: 500 16px/1 var(--sans);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 160ms var(--ease-out),
    background-color 160ms var(--ease-out);
}

.btn:hover {
  background: #e36aa3;
}

.btn:active {
  transform: scale(0.97);
}

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

.btn-sm {
  height: 40px;
  padding: 0 16px;
  border-radius: 12px;
  font-size: 14px;
}

.btn-night {
  background: var(--night);
  color: var(--white);
}

.btn-night:hover {
  background: #2a2b31;
}

.text-link {
  font-size: 14px;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--rule-strong);
  text-underline-offset: 5px;
  transition: text-decoration-color 160ms var(--ease-out);
}

.text-link:hover {
  text-decoration-color: currentColor;
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid rgba(14, 15, 18, 0.06);
}

.nav-row {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 400 19px/1 var(--sans);
  letter-spacing: -0.02em;
  text-decoration: none;
}

.logo svg {
  width: 28px;
  height: 28px;
  flex: none;
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: var(--ink-2);
}

.nav-links a {
  text-decoration: none;
  transition: color 160ms var(--ease-out);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

/* ---------- Hero ---------- */

.hero {
  padding-block: clamp(56px, 10vw, 120px) clamp(64px, 9vw, 112px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  padding: 6px 12px 6px 10px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  font: 400 12px/1.4 var(--mono);
  color: var(--ink-2);
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pink-500);
}

h1 {
  font: 300 clamp(44px, 6.4vw, 84px) / 1 var(--display);
  letter-spacing: -0.045em;
  text-wrap: balance;
  max-width: 12ch;
}

.lead {
  margin-top: 28px;
  max-width: 34em;
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.55;
  color: var(--ink-2);
}

.join {
  margin-top: 40px;
  max-width: 480px;
}

.field {
  display: flex;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--rule-strong);
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(14, 15, 18, 0.03), 0 12px 32px -16px rgba(14, 15, 18, 0.18);
  transition: border-color 160ms var(--ease-out);
}

.field:focus-within {
  border-color: var(--ink);
}

.field input {
  flex: 1;
  min-width: 0;
  height: 52px;
  padding: 0 14px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: 400 16px/1 var(--sans);
  outline: none;
}

.field input::placeholder {
  color: var(--ink-3);
}

.field input[aria-invalid="true"] {
  color: var(--stop);
}

.trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.note {
  margin-top: 14px;
  font-size: 14px;
  color: var(--ink-3);
}

.note.error {
  color: var(--stop);
}

.joined {
  margin-top: 40px;
  max-width: 480px;
  padding: 24px;
  border: 1px solid var(--rule);
  border-radius: 20px;
  background: var(--white);
}

.joined-title {
  font: 400 24px/1.2 var(--display);
  letter-spacing: -0.02em;
}

.joined .note {
  margin-top: 8px;
  color: var(--ink-2);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.chip {
  height: 44px;
  padding: 0 18px;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font: 500 14px/1 var(--sans);
  cursor: pointer;
  transition:
    transform 160ms var(--ease-out),
    background-color 160ms var(--ease-out),
    border-color 160ms var(--ease-out);
}

.chip:hover {
  border-color: var(--pink-300);
}

.chip:active {
  transform: scale(0.97);
}

.chip[aria-pressed="true"] {
  background: var(--pink-100);
  border-color: var(--pink-300);
}

/* ---------- Hero stage: the product, not an illustration ---------- */

.stage {
  position: relative;
  display: grid;
  gap: 16px;
  max-width: 440px;
  justify-self: end;
  width: 100%;
  padding-block: 24px;
}

.card {
  border: 1px solid var(--rule);
  background: var(--white);
  box-shadow:
    0 1px 0 rgba(14, 15, 18, 0.02),
    0 30px 60px -30px rgba(14, 15, 18, 0.22),
    0 18px 36px -24px rgba(176, 58, 115, 0.12);
}

.pass {
  display: grid;
  gap: 6px;
  padding: 24px;
  border-radius: 24px;
  margin-right: 40px;
}

.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.agent {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.tile {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #d97757;
  color: var(--white);
  font: 500 15px/1 var(--sans);
}

.pass > .mono:nth-of-type(1) {
  margin-top: 18px;
}

.amount {
  font: 300 56px/1 var(--display);
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}

.amount span {
  color: var(--ink-3);
}

.track {
  height: 4px;
  margin-top: 14px;
  border-radius: 4px;
  background: var(--rule);
  overflow: hidden;
}

.track span {
  display: block;
  width: 22%;
  height: 100%;
  background: var(--pink-500);
}

.rule {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
  color: var(--ink-2);
}

.ask {
  display: grid;
  gap: 10px;
  padding: 20px;
  border-radius: 20px;
  margin-left: 40px;
}

.ask-title {
  font: 400 19px/1.3 var(--display);
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.ask-title strong {
  font-weight: 500;
}

.quote {
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--quiet);
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.45;
}

.ask-actions {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 8px;
  margin-top: 4px;
}

.fake {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  border-radius: 12px;
  font: 500 14px/1 var(--sans);
}

.fake svg {
  width: 18px;
  height: 18px;
}

.fake-quiet {
  background: var(--quiet);
}

.fake-pink {
  background: var(--pink-100);
  color: var(--night);
}

/* ---------- Works with ---------- */

.works-with {
  border-block: 1px solid var(--rule);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.works-row {
  display: flex;
  align-items: center;
  gap: 40px;
  min-height: 84px;
  flex-wrap: wrap;
  padding-block: 16px;
}

.works-row ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  font: 400 20px/1 var(--display);
  letter-spacing: -0.02em;
  color: var(--ink-2);
}

/* ---------- Sections ---------- */

.section {
  padding-block: clamp(80px, 11vw, 144px);
}

.section-tight {
  padding-top: clamp(40px, 6vw, 72px);
}

.section-head {
  display: grid;
  gap: 16px;
  max-width: 640px;
}

.label {
  color: var(--pink-700);
}

h2 {
  font: 300 clamp(34px, 4.2vw, 54px) / 1.05 var(--display);
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.sub {
  max-width: 34em;
  font-size: 17px;
  color: var(--ink-2);
}

h3 {
  font: 500 18px/1.3 var(--sans);
  letter-spacing: -0.01em;
}

/* How it works: three steps on one shared baseline grid. */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 64px;
  border-top: 1px solid var(--ink);
}

.steps li {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 12px;
  padding: 28px 32px 0 0;
}

.steps li + li {
  padding-left: 32px;
  border-left: 1px solid var(--rule);
}

.step-n {
  color: var(--ink-3);
}

.steps p {
  color: var(--ink-2);
  max-width: 30ch;
}

.mini {
  display: flex;
  align-items: center;
  height: 56px;
  margin-top: 20px;
  padding: 0 14px;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: var(--white);
}

.mini-link {
  font-size: 14px;
}

.mini-link span {
  color: var(--ink-3);
}

.mini-seg {
  gap: 6px;
  padding: 6px;
}

.mini-seg span {
  flex: 1;
  display: grid;
  place-items: center;
  height: 100%;
  border-radius: 10px;
  font: 500 14px/1 var(--sans);
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
}

.mini-seg .on {
  background: var(--pink-100);
  color: var(--night);
}

.mini-learn {
  justify-content: space-between;
  gap: 12px;
  padding-right: 8px;
}

.mini-learn .mono {
  color: var(--ink-2);
  line-height: 1.3;
}

.pill {
  flex: none;
  display: grid;
  place-items: center;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--quiet);
  font: 500 13px/1 var(--sans);
}

/* Safety: the one dark band. It slides over the triangles. */

.dark {
  position: relative;
  padding-block: clamp(88px, 11vw, 144px);
  background: var(--night);
  color: var(--white);
}

.dark .label {
  color: var(--pink-300);
}

.dark .sub {
  color: #b5b3ba;
}

.gates {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 64px;
  counter-reset: gate;
}

.gates li {
  position: relative;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 24px 24px 0 0;
  border-top: 1px solid #33343b;
}

.gates li::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--night);
  border: 1px solid #7d7a83;
}

.gates li:last-child::before {
  background: var(--pink-500);
  border-color: var(--pink-500);
}

.gates .mono {
  color: #7d7a83;
}

.gates h3 {
  font-size: 17px;
}

.gates p {
  font-size: 14px;
  line-height: 1.5;
  color: #b5b3ba;
  max-width: 22ch;
}

/* Funding models */

.models {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 56px;
}

.models article {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 32px;
  border: 1px solid var(--rule);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.models h3 {
  font: 400 26px/1.15 var(--display);
  letter-spacing: -0.025em;
  margin-top: 8px;
}

.models p:last-child {
  color: var(--ink-2);
  max-width: 36ch;
}

/* FAQ */

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

.faq {
  border-top: 1px solid var(--ink);
}

.faq details {
  border-bottom: 1px solid var(--rule);
  background: rgba(255, 255, 255, 0.86);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  padding-block: 18px;
  font: 500 17px/1.35 var(--sans);
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: none;
  width: 11px;
  height: 11px;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 11px 1.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 1.5px 11px no-repeat;
  transition: transform 200ms var(--ease-out);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  max-width: 52ch;
  padding-bottom: 22px;
  color: var(--ink-2);
}

/* Closing */

.closing {
  padding-block: clamp(72px, 10vw, 128px);
  border-top: 1px solid var(--rule);
  background: rgba(247, 245, 246, 0.9);
}

.closing-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.closing-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Footer */

.foot {
  border-top: 1px solid var(--rule);
  background: var(--canvas);
}

.foot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  flex-wrap: wrap;
  padding-block: 28px;
}

.logo-sm {
  font-size: 16px;
}

.logo-sm svg {
  width: 22px;
  height: 22px;
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .nav-links {
    display: none;
  }

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

  .stage {
    justify-self: start;
    max-width: 460px;
  }

  .gates {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 40px;
  }

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

@media (max-width: 720px) {
  .nav-actions .text-link {
    display: none;
  }

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

  .steps li,
  .steps li + li {
    padding: 28px 0 32px;
    border-left: 0;
  }

  .steps li + li {
    border-top: 1px solid var(--rule);
  }

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

  .pass {
    margin-right: 16px;
  }

  .ask {
    margin-left: 16px;
  }

  .tri-a {
    width: 90vw;
    height: 44vh;
  }

  .tri-b {
    width: 80vw;
    height: 40vh;
  }

  .tri-c {
    width: 34vw;
    height: 34vw;
    right: -14vw;
  }
}

@media (max-width: 480px) {
  .field {
    flex-direction: column;
  }

  .field .btn {
    width: 100%;
  }

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

  .amount {
    font-size: 48px;
  }

  .closing-actions {
    width: 100%;
  }
}

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

  .btn,
  .chip,
  .faq summary::after {
    transition: none;
  }
}
