/* Traject — landing page
   ---------------------------------------------------------------
   1. Tokens
   2. Base
   3. Layout primitives
   4. Header / footer
   5. Type scale (section headings)
   6. Launch status & assurances
   7. Device mockups (iPhone frames)
   8. Sections: steps, feature, pillars, closing
   9. Responsive
   --------------------------------------------------------------- */

/* 1. Tokens ---------------------------------------------------- */
:root {
  --page-width: 1160px;

  --bg: #ffffff;
  --bg-grouped: #f2f2f7;
  --card: #ffffff;
  --card-nested: #f8f8f8;
  --tab-active: #efeff4;

  --text: #1c1c1e;
  --text-secondary: #6e6e73;
  --text-tertiary: #8e8e93;

  --separator: #e5e5ea;
  --separator-strong: #c7c7cc;
  --border: #d8d8de;

  --tint: #007aff;
  --tint-pressed: #0062cc;
  --positive: #1f7a35;
  --negative: #d70015;

  --device-bezel: #0c0c0e;

  --radius-card: 16px;
  --radius-control: 14px;

  --shadow-device: 0 40px 90px rgba(20, 28, 45, 0.22);
  --shadow-pill: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-tabbar: 0 6px 20px rgba(20, 28, 45, 0.1);

  --section-y: clamp(64px, 8vw, 104px);
  --column-gap: clamp(48px, 7vw, 96px);
}

/* 2. Base ------------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: var(--tint);
  text-decoration: none;
}

a:hover {
  color: var(--tint-pressed);
}

img,
svg {
  display: block;
}

/* 3. Layout primitives ----------------------------------------- */
.shell {
  width: min(var(--page-width), 100% - 48px);
  margin-inline: auto;
}

.section {
  background: var(--bg);
}

.section--grouped {
  background: var(--bg-grouped);
}

.section--ruled {
  border-block: 1px solid var(--separator);
}

.section__inner {
  padding-block: var(--section-y);
}

.split {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--column-gap);
}

.split--reverse {
  flex-direction: row-reverse;
  justify-content: center;
}

.split__copy {
  flex: 1 1 400px;
  min-width: min(100%, 320px);
  max-width: 520px;
}

.split__device {
  flex: 0 1 360px;
  min-width: min(100%, 300px);
  display: flex;
  justify-content: center;
}

/* 4. Header / footer ------------------------------------------- */
.site-header {
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.brand:hover {
  color: var(--text);
}

.brand__mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0 40px;
  border-top: 1px solid var(--separator);
  color: var(--text-tertiary);
  font-size: 13px;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 9px;
}

.site-footer__brand img {
  width: 20px;
  height: 20px;
  border-radius: 6px;
}

.site-footer__links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-footer__links a {
  color: var(--text-tertiary);
}

/* 5. Type scale ------------------------------------------------ */
.kicker {
  color: var(--text-tertiary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.kicker--tint {
  color: var(--tint);
}

.title-hero {
  font-size: clamp(42px, 5.2vw, 66px);
  line-height: 1.02;
  letter-spacing: -0.05em;
  font-weight: 700;
}

.title-section {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 700;
}

.title-section--large {
  font-size: clamp(34px, 4.4vw, 54px);
  line-height: 1.06;
  letter-spacing: -0.045em;
}

.lead {
  color: var(--text-secondary);
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.55;
}

.lead--hero {
  max-width: 560px;
  color: var(--text-secondary);
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.5;
  letter-spacing: -0.015em;
}

.lead--hero strong {
  color: var(--text);
  font-weight: 600;
}

/* 6. Launch status & assurances --------------------------------- */
.launch-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 34px;
  padding: 14px 22px;
  border: 1px solid rgba(0, 122, 255, 0.18);
  border-radius: var(--radius-control);
  background: rgba(0, 122, 255, 0.06);
  color: var(--tint-pressed);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.launch-status::before {
  content: "";
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--tint);
}

.assurances {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
}

.assurance {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--separator);
  border-radius: 999px;
  background: var(--bg-grouped);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.assurance::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tint);
}

/* 7. Device mockups -------------------------------------------- */
.phone {
  width: 100%;
  max-width: 360px;
  padding: 11px;
  border-radius: 56px;
  background: var(--device-bezel);
  box-shadow: var(--shadow-device), 0 2px 0 rgba(255, 255, 255, 0.14) inset;
}

.phone__screen {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  aspect-ratio: 360 / 760;
  border-radius: 46px;
  background: var(--bg-grouped);
}

.status-bar {
  position: relative;
  flex: 0 0 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 50px;
  padding-inline: 24px;
}

.status-bar__time {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.status-bar__notch {
  position: absolute;
  left: 50%;
  top: 9px;
  transform: translateX(-50%);
  width: 104px;
  height: 28px;
  border-radius: 999px;
  background: var(--device-bezel);
}

.status-bar__battery {
  width: 16px;
  height: 9px;
  border: 1.5px solid var(--text);
  border-radius: 3px;
  background: linear-gradient(90deg, var(--text) 70%, transparent 70%);
}

.nav-bar {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding-inline: 16px;
}

.nav-bar__title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav-bar__action {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding-inline: 16px;
  border-radius: 20px;
  background: var(--card);
  box-shadow: var(--shadow-pill);
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
}

.nav-bar__action--leading {
  left: 16px;
}

.nav-bar__action--trailing {
  right: 16px;
}

.nav-bar__action--round {
  width: 40px;
  height: 40px;
  padding: 0;
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
}

.nav-bar__action--back {
  width: 46px;
  height: 46px;
  padding: 0;
}

.screen-body {
  flex: 1 1 auto;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 12px 16px 0;
}

.screen-body--form {
  padding-top: 16px;
}

.group-label {
  padding: 0 0 7px 18px;
  color: var(--text-tertiary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.group-label + .group-label,
.list + .group-label,
.card + .group-label {
  padding-top: 22px;
}

.card {
  border-radius: var(--radius-card);
  background: var(--card);
}

.card--padded {
  padding: 18px;
}

.hero-card__label {
  color: var(--text-tertiary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.hero-card__value {
  margin-top: 6px;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}

.hero-card__delta {
  margin-top: 6px;
  color: var(--text-tertiary);
  font-size: 13px;
}

.hero-card__delta .positive {
  color: var(--positive);
  font-weight: 600;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stack--after-hero {
  margin-top: 24px;
}

.list {
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--card);
}

.list__separator {
  height: 1px;
  margin-left: 18px;
  background: var(--separator);
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 12px 18px;
}

.row--single {
  padding-block: 0;
}

.row__label {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.row__title {
  font-size: 17px;
}

.row__meta {
  color: var(--text-tertiary);
  font-size: 13px;
}

.row__value {
  font-size: 17px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.row__value .currency {
  color: var(--text-tertiary);
  font-weight: 400;
}

.row--placeholder {
  color: var(--text-tertiary);
  font-size: 17px;
}

.row--action {
  justify-content: flex-start;
  gap: 10px;
  color: var(--tint);
  font-size: 17px;
  font-weight: 500;
}

.row--action .glyph {
  font-size: 19px;
  line-height: 1;
}

.tab-bar-wrap {
  flex: 0 0 auto;
  padding: 12px 16px 18px;
}

.tab-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2px;
  height: 62px;
  padding-inline: 8px;
  border-radius: 31px;
  background: var(--card);
  box-shadow: var(--shadow-tabbar);
}

.tab {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding-block: 7px;
  border-radius: 20px;
  color: var(--text-tertiary);
  font-size: 11px;
}

.tab--active {
  background: var(--tab-active);
  color: var(--tint);
  font-weight: 600;
}

.tab svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

/* 8. Sections -------------------------------------------------- */
.statement {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(32px, 6vw, 80px);
}

.statement__kicker {
  flex: 0 0 auto;
  margin-top: 6px;
}

.statement__body {
  flex: 1 1 420px;
  min-width: min(100%, 320px);
  max-width: 760px;
}

.statement__body .lead {
  margin-top: 24px;
  max-width: 600px;
}

.section-head .kicker {
  margin-bottom: 14px;
}

.section-head .title-section {
  max-width: 720px;
}

.section-head .lead {
  margin-top: 20px;
  max-width: 620px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: clamp(28px, 4vw, 48px);
  margin-top: clamp(44px, 6vw, 72px);
}

.step__marker {
  display: flex;
  align-items: center;
  gap: 12px;
}

.step__number {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--tint);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
}

.step__rule {
  flex: 1 1 auto;
  height: 1px;
  background: var(--border);
}

.step:last-child .step__rule {
  background: transparent;
}

.step__title {
  margin-top: 22px;
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: -0.025em;
  font-weight: 600;
}

.step p {
  margin-top: 10px;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.55;
}

.points {
  margin-top: 30px;
  border-top: 1px solid var(--separator);
}

.points p {
  padding-block: 16px;
  border-bottom: 1px solid var(--separator);
  font-size: 16px;
  line-height: 1.5;
}

.pillars-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: clamp(24px, 4vw, 64px);
}

.pillars-head__title {
  flex: 1 1 420px;
  min-width: min(100%, 320px);
  max-width: 700px;
}

.pillars-head__lead {
  flex: 1 1 300px;
  min-width: min(100%, 280px);
  max-width: 420px;
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.55;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  column-gap: clamp(32px, 5vw, 72px);
  row-gap: clamp(28px, 4vw, 44px);
  margin-top: clamp(40px, 5vw, 64px);
}

.pillar {
  padding-top: 22px;
  border-top: 1px solid var(--separator-strong);
}

.pillar h3 {
  font-size: 20px;
  letter-spacing: -0.025em;
  font-weight: 600;
}

.pillar p {
  margin-top: 10px;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.55;
}

.closing {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-block: clamp(72px, 9vw, 120px);
  text-align: center;
}

.closing .title-section--large {
  max-width: 820px;
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.05;
}

.closing .lead {
  margin-top: 22px;
  max-width: 600px;
}

.closing__currencies {
  margin-top: 28px;
  max-width: 600px;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.6;
}

.closing .launch-status {
  margin-top: 36px;
}

/* 9. Responsive ------------------------------------------------ */
/* Once the columns stack, center the device instead of left-aligning it.
   Below this width the side-by-side layout has no free space, so desktop is unaffected. */
@media (max-width: 1100px) {
  .split {
    justify-content: center;
  }
}

/* Steps stack into one column: every step keeps its rule as a divider. */
@media (max-width: 863px) {
  .step:last-child .step__rule {
    background: var(--border);
  }
}

@media (max-width: 600px) {
  .assurances {
    justify-content: center;
  }

  .shell {
    width: min(var(--page-width), 100% - 32px);
  }

  .site-header {
    height: 70px;
  }
}

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

/* 10. Simple content pages (support, privacy, terms) ----------- */
.page-layout {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.page-layout > main {
  flex: 1 0 auto;
}

.page {
  padding-block: clamp(56px, 8vw, 96px) clamp(64px, 9vw, 112px);
  max-width: 640px;
}

.page h1 {
  font-size: clamp(34px, 4.4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 700;
}

.page p {
  margin-top: 20px;
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.6;
}

.page .contact {
  margin-top: 32px;
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 600;
  letter-spacing: -0.02em;
}
