/* Tradiez landing page. Every colour, font, corner and size comes from tokens.css (made from design/tokens.json). */

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

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

body {
  margin: 0;
  background: var(--c-paper);
  color: var(--c-ink);
  font-family: var(--f-body);
  font-size: var(--t-body-size);
  line-height: var(--t-body-line);
  overflow-x: hidden;
}

img, svg { display: block; }
p, h1, h2, h3, ul { margin: 0; }
a { color: var(--c-ink); }
a:hover { color: var(--c-stone); }

:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 8px;
}

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

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 10;
  padding: 12px 18px; border-radius: var(--r-pill);
  background: var(--c-ink); color: var(--c-white); font-weight: var(--fw-semibold); text-decoration: none;
}
.skip:focus { top: 12px; color: var(--c-white); }

.wrap { max-width: 1184px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }

/* --- Shared pieces ----------------------------------------------------- */

h2 {
  font-family: var(--f-heading);
  font-weight: var(--fw-heading-display);
  font-size: clamp(36px, 4.6vw, 58px);
  line-height: 1;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.eyebrow {
  font-size: var(--t-eyebrow-size);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--t-eyebrow-spacing);
  text-transform: uppercase;
  color: var(--c-stone);
}
.eyebrow-green { color: var(--c-verified-text); }
.eyebrow-orange { color: var(--c-orange); }

.lead-s { font-size: 18px; color: var(--c-ink-soft); }
.small { font-size: 15px; color: var(--c-stone); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 30px;
  border: 0; border-radius: var(--r-pill);
  font: inherit; font-size: var(--t-button-size); font-weight: var(--fw-semibold);
  text-decoration: none; text-align: center; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-main { background: var(--c-orange); color: var(--c-ink); box-shadow: 0 14px 28px -14px var(--glow-orange); }
.btn-main:hover { color: var(--c-ink); }
.btn-white { background: var(--c-white); color: var(--c-ink); box-shadow: 0 1px 2px var(--shadow-hair), 0 0 0 1px var(--c-line); }
.btn-white:hover { color: var(--c-ink); }
.btn[disabled] { cursor: progress; opacity: 0.7; transform: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; font-size: var(--t-chip-size); font-weight: var(--fw-semibold); }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 13px; border-radius: var(--r-pill);
  background: var(--c-soft-fill); color: var(--c-ink);
}
.chip-verified { padding-left: 10px; background: var(--c-verified-tint); color: var(--c-verified-text); }
.chip-gold { background: var(--g-gold); color: var(--c-on-gold); }
.chip-big { min-height: var(--s-tap-target-min); padding: 0 18px; font-size: 15px; }

.tick {
  flex: 0 0 auto; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--c-verified); color: var(--c-white);
}
.tick-30 { width: 30px; height: 30px; }
.tick-46 { width: 46px; height: 46px; }

/* --- Header ------------------------------------------------------------ */

.top-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 14px 32px; padding-top: 20px; padding-bottom: 20px;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; min-height: var(--s-tap-target-min); }
.brand-tile {
  width: 40px; height: 40px; border-radius: 11px; background: var(--c-orange);
  display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
.brand-tile-s { width: 32px; height: 32px; border-radius: 9px; }
.wordmark {
  font-family: var(--f-heading); font-weight: var(--fw-heading-display);
  font-size: 26px; letter-spacing: -0.035em; line-height: 1; color: var(--c-ink);
}
.wordmark-s { font-size: 22px; color: var(--c-white); }

.lang {
  order: 3; position: relative; display: inline-flex; align-items: center;
  min-height: var(--s-tap-target-min); border-radius: var(--r-pill);
  background: var(--c-white); box-shadow: 0 0 0 1px var(--c-line);
  color: var(--c-ink);
}
.lang svg { position: absolute; left: 13px; pointer-events: none; }
.lang select {
  appearance: none; -webkit-appearance: none;
  min-height: var(--s-tap-target-min); padding: 0 34px 0 38px;
  border: 0; border-radius: var(--r-pill); background: transparent;
  color: inherit; font: inherit; font-size: 15px; font-weight: var(--fw-semibold); cursor: pointer;
}
.lang::after {
  content: ''; position: absolute; right: 15px; top: 50%; width: 7px; height: 7px; margin-top: -5px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg);
  pointer-events: none;
}

.nav { order: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; font-size: 16px; font-weight: var(--fw-medium); margin-left: auto; }
.nav a { display: inline-flex; align-items: center; min-height: var(--s-tap-target-min); text-decoration: none; }
.nav .nav-join {
  padding: 0 20px; border-radius: var(--r-pill);
  background: var(--c-ink); color: var(--c-white); font-weight: var(--fw-semibold);
}
.nav .nav-join:hover { color: var(--c-white); }

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

.hero {
  padding-top: 48px; padding-bottom: 104px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr));
  gap: 64px 72px; align-items: center;
}
.hero-text { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.pill-note {
  align-self: flex-start; display: flex; align-items: center; gap: 9px;
  padding: 7px 14px 7px 11px; border-radius: var(--r-pill);
  background: var(--c-white); box-shadow: 0 1px 2px var(--shadow-hair), 0 0 0 1px var(--c-line);
  font-size: 14px; font-weight: var(--fw-semibold);
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c-orange); }
h1 {
  font-family: var(--f-heading); font-weight: var(--fw-heading-display);
  font-size: clamp(52px, 7.8vw, 102px); line-height: 0.96; letter-spacing: var(--t-display-spacing);
  overflow-wrap: break-word;
}
.hl {
  display: inline-block; padding: 0 0.13em 0.05em; border-radius: 0.2em;
  background: var(--c-orange); color: var(--c-ink); transform: rotate(-2deg);
}
.lead { max-width: 520px; font-size: 19px; line-height: 1.55; color: var(--c-ink-soft); text-wrap: pretty; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.profile-wrap { position: relative; width: 100%; max-width: 448px; justify-self: center; }
.profile-block {
  position: absolute; top: -18px; right: -18px; width: 64%; height: 56%;
  border-radius: 40px; background: var(--c-orange);
}
.profile {
  position: relative; background: var(--c-white); border-radius: 30px; padding: 26px;
  display: flex; flex-direction: column; gap: 20px;
  box-shadow: 0 1px 2px var(--shadow-card), 0 28px 56px -28px var(--shadow-lift);
}
.who { display: flex; align-items: center; gap: 16px; }
.avatar {
  position: relative; flex: 0 0 auto; width: 80px; height: 80px; border-radius: 50%;
  padding: 4px; background: var(--g-gold);
}
.avatar-in {
  width: 100%; height: 100%; border-radius: 50%; border: 3px solid var(--c-white);
  background: var(--c-soft-fill); display: flex; align-items: center; justify-content: center;
  font-family: var(--f-heading); font-weight: var(--fw-heading-title); font-size: 23px;
}
.tick-pin { position: absolute; right: -4px; bottom: -4px; width: 30px; height: 30px; border: 3px solid var(--c-white); }
.who-name { font-family: var(--f-heading); font-weight: var(--fw-heading-title); font-size: 27px; line-height: 1.1; letter-spacing: -0.025em; }
.who-trade { font-size: 16px; color: var(--c-stone); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stat { display: flex; flex-direction: column; gap: 4px; padding: 14px 10px 12px; border-radius: var(--r-tile); background: var(--c-paper); }
.stat-n { font-family: var(--f-heading); font-weight: var(--fw-heading-title); font-size: clamp(20px, 5.6vw, 27px); line-height: 1; letter-spacing: -0.02em; }
.stat-l { font-size: 14px; line-height: 1.3; color: var(--c-stone); }
.vouched { font-size: 15px; line-height: 1.45; color: var(--c-ink-soft); }
.vouched strong { color: var(--c-ink); }
.profile-btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fake-btn { display: flex; align-items: center; justify-content: center; min-height: 50px; border-radius: var(--r-pill); font-weight: var(--fw-semibold); }
.fake-ink { background: var(--c-ink); color: var(--c-white); }
.fake-soft { background: var(--c-soft-fill); color: var(--c-ink); }

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

.section { padding-top: 24px; padding-bottom: 104px; }
.intro { display: flex; flex-direction: column; gap: 14px; max-width: 680px; margin-bottom: 44px; }

.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: 20px; }
.card {
  background: var(--c-white); border-radius: var(--r-card-small); padding: 10px 26px;
  box-shadow: 0 1px 2px var(--shadow-card), 0 0 0 1px var(--c-card-outline);
}
.card-top { align-self: start; }
.card > .eyebrow { padding: 18px 0 8px; }
.row { display: flex; align-items: flex-start; gap: 14px; padding: 16px 0; border-top: 1px solid var(--c-card-outline); }
.row:last-child { padding-bottom: 18px; }
.row h3 { font-size: 18px; font-weight: var(--fw-semibold); }
.row p { font-size: 16px; color: var(--c-stone); }
.row > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.row-tier { align-items: center; gap: 16px; padding: 18px 0; }
.row-tier:last-child { padding-bottom: 20px; }
.row .tier { font-family: var(--f-heading); font-weight: var(--fw-heading-title); font-size: 22px; letter-spacing: -0.02em; }
.ring { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%; padding: 5px; }
.ring span { display: block; width: 100%; height: 100%; border-radius: 50%; border: 2px solid var(--c-white); opacity: 0.85; }
.ring-silver { background: var(--g-silver); }
.ring-gold { background: var(--g-gold); }

.band-orange { background: var(--c-orange); color: var(--c-ink); }
.band { padding-top: 92px; padding-bottom: 92px; }
.band-orange h2 { margin-bottom: 44px; }
.trades { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 32px 28px; }
.trades > div { display: flex; flex-direction: column; gap: 12px; }
.trades h3 { font-size: 14px; font-weight: var(--fw-semibold); letter-spacing: var(--t-eyebrow-spacing); text-transform: uppercase; }
.trades ul { padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 19px; font-weight: var(--fw-semibold); }

.band-ink { background: var(--c-ink); color: var(--c-white); }
.band-tall { padding-top: 100px; padding-bottom: 100px; }
.band-ink .lead-s { color: var(--c-on-ink-muted); }
.tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; }
.tool { display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: 26px; background: var(--c-ink-raised); }
.tool-n { font-family: var(--f-heading); font-weight: var(--fw-heading-title); font-size: 15px; color: var(--c-orange); }
.tool h3 { font-family: var(--f-heading); font-weight: var(--fw-heading-title); font-size: var(--t-card-title-size); letter-spacing: var(--t-card-title-spacing); }
.tool p:last-child { color: var(--c-on-ink-body); }

.mark { padding-top: 108px; padding-bottom: 108px; display: flex; flex-wrap: wrap; align-items: center; gap: 48px 88px; }
.mark-tile {
  flex: 0 0 auto; width: 232px; height: 232px; border-radius: 54px; background: var(--c-orange);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 36px 60px -30px var(--glow-orange-strong);
}
.mark-text { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.mark-text .lead-s { max-width: 520px; }
.sticker-box { display: flex; flex-direction: column; gap: 10px; }
.sticker {
  align-self: flex-start; max-width: 100%; display: flex; align-items: center; gap: 14px;
  padding: 12px 20px 12px 12px; background: var(--c-white); border-radius: 22px;
  box-shadow: 0 1px 2px var(--shadow-card), 0 0 0 1px var(--c-card-outline), 0 18px 36px -22px var(--shadow-sticker);
}
.qr {
  flex: 0 0 auto; min-width: 62px; height: 62px; border: 1.5px dashed var(--c-ink); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-size: 14px; line-height: 1.1; font-weight: var(--fw-semibold); color: var(--c-stone); padding: 4px 6px;
}
.sticker-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.sticker-title { font-family: var(--f-heading); font-weight: var(--fw-heading-title); font-size: 20px; letter-spacing: -0.02em; line-height: 1.2; }
.sticker-line { font-size: 14px; color: var(--c-stone); }

/* --- Get the app ------------------------------------------------------- */

.app { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 28px 64px; align-items: center; }
.app .intro { margin-bottom: 0; }
.app-get { display: flex; flex-direction: column; gap: 16px; }
.apk { display: flex; flex-direction: column; gap: 10px; }
.apk[hidden] { display: none; }
.btn-wide { align-self: stretch; }
.quiet {
  display: flex; align-items: center; min-height: 56px; padding: 12px 22px;
  border-radius: var(--r-tile); background: var(--c-soft-fill);
  font-weight: var(--fw-semibold); color: var(--c-ink-soft);
}
.quiet[hidden] { display: none; }

/* --- Join -------------------------------------------------------------- */

.join { padding-bottom: 72px; }
.join-card {
  background: var(--c-white); border-radius: 36px; padding: clamp(28px, 5vw, 64px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr));
  gap: 36px 64px; align-items: center;
  box-shadow: 0 1px 2px var(--shadow-card), 0 0 0 1px var(--c-card-outline);
}
.join-text { display: flex; flex-direction: column; gap: 14px; }
.join-text .lead-s { max-width: 460px; }
.form { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: var(--fw-semibold); }
.field input,
.field select {
  width: 100%; min-height: var(--s-input); padding: 0 18px;
  border: 1px solid var(--c-input-border); border-radius: var(--r-input);
  background: var(--c-paper); color: var(--c-ink); font: inherit;
}
.field select { padding: 0 14px; }
.field input[aria-invalid='true'] { border-color: var(--c-ink); border-width: 2px; }
.consent { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; color: var(--c-ink-soft); }
.consent input {
  flex: 0 0 auto; width: 24px; height: 24px; margin: 10px 0 0; accent-color: var(--c-ink); cursor: pointer;
}
.consent label { padding: 8px 0; cursor: pointer; }
.consent a { font-weight: var(--fw-semibold); display: inline-flex; align-items: center; min-height: var(--s-tap-target-min); }
.form .btn { margin-top: 4px; }
.message { min-height: 1.5em; font-size: 16px; font-weight: var(--fw-semibold); }
.message:empty { min-height: 0; }
.message.is-done { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: var(--r-tile); background: var(--c-soft-fill); color: var(--c-ink); }
.message.is-error { padding: 12px 16px; border-radius: var(--r-tile); background: var(--c-ink); color: var(--c-white); }

/* --- Privacy and footer ------------------------------------------------ */

.privacy { padding-top: 32px; padding-bottom: 96px; }
.privacy ul { max-width: 760px; }
.privacy h2 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 20px; }
.privacy ul { padding-left: 22px; display: flex; flex-direction: column; gap: 8px; color: var(--c-ink-soft); }

.foot { background: var(--c-ink); color: var(--c-on-ink-muted); }
.foot-bar {
  padding-top: 36px; padding-bottom: 36px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 32px; font-size: 15px;
}
.foot-brand { display: flex; align-items: center; gap: 10px; }
.foot a { color: var(--c-white); display: inline-flex; align-items: center; min-height: var(--s-tap-target-min); }
.foot a:hover { color: var(--c-on-ink-body); }

/* --- Phones ------------------------------------------------------------ */

@media (max-width: 720px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  .top-bar { gap: 6px 16px; padding-top: 14px; padding-bottom: 8px; }
  .lang { order: 1; }
  .nav { order: 2; margin-left: 0; width: 100%; gap: 0 18px; font-size: 15px; }
  .nav .nav-join { padding: 0 18px; }
  .hero { padding-top: 24px; padding-bottom: 72px; gap: 56px; }
  .hero-text { gap: 22px; }
  .actions .btn { flex: 1 1 auto; }
  .section { padding-bottom: 72px; }
  .band, .band-tall { padding-top: 64px; padding-bottom: 64px; }
  .mark { padding-top: 72px; padding-bottom: 72px; gap: 40px; }
  .mark-tile { width: 200px; height: 200px; border-radius: 46px; }
  .mark-tile img { width: 164px; height: 164px; }
  .card { padding: 6px 20px; }
  .profile { padding: 22px; }
  .profile-block { right: -10px; }
  .join { padding-bottom: 48px; }
  .join-card { border-radius: var(--r-card); }
  .foot-bar { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* --- Page not found ---------------------------------------------------- */

.lost { min-height: 100vh; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 32px; padding-top: 48px; padding-bottom: 48px; }
.lost h1 { font-size: clamp(40px, 6vw, 72px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .btn:hover { transform: none; }
}
