/* ==========================================================
   Vetra — case 01
   Light editorial page + iPhone mock, two app themes.
   Same paper base as the hub and Movaro, one green accent.
   No 3D, no perspective, no filters inside the phone:
   the screen stays pixel-crisp at every size.
   ========================================================== */

/* Tokens */
:root {
  color-scheme: light;
  --page: #F1ECE3;
  --page-2: #E7E0D2;
  --ink: #0C0C0B;
  --ink-soft: #2B2925;
  --muted: #5F594E;
  --line: rgba(12, 12, 11, .14);
  --line-strong: rgba(12, 12, 11, .26);
  --hot: #0C6B4B;
  --max: 1400px;
  --pad: clamp(20px, 4vw, 48px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);
  --font: 'Onest', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
}

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

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

body.page {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

body.page::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, ul, ol, dl, dd, dt { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: var(--hot); color: var(--page); }

:focus-visible {
  outline: 2px solid var(--hot);
  outline-offset: 3px;
  border-radius: 4px;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.mono {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 99px;
  background: var(--ink);
  color: var(--page);
  font-size: 13px;
  transform: translateY(-160%);
  transition: transform .2s var(--ease-soft);
}
.skip:focus { transform: none; }

main { position: relative; z-index: 2; }

/* Header */
.top {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 64px;
  padding: 0 var(--pad);
  background: rgba(241, 236, 227, .82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.top__brand {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1;
}
.top__brand span { color: var(--hot); }
.top__meta { color: var(--muted); margin-left: auto; }
.top__meta span { color: var(--line-strong); }
.top__link {
  font-size: 13px;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--line-strong);
  transition: color .2s, border-color .2s;
}
.top__link:hover { color: var(--hot); border-color: var(--hot); }

/* Tag */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .14em;
}
.tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--hot);
}
.tag__num { color: var(--ink); }

.section__title,
.showcase__title {
  margin-top: 18px;
  font-size: clamp(30px, 4.2vw, 58px);
  font-weight: 600;
  line-height: .98;
  letter-spacing: -.035em;
}
.section__lead {
  max-width: 44ch;
  color: var(--muted);
  font-size: clamp(14px, 1.15vw, 16px);
  line-height: 1.6;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 26px;
  border-radius: 99px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transition: transform .25s var(--ease), background-color .2s, color .2s, border-color .2s;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn--ink { background: var(--ink); color: var(--page); }
.btn--ink:hover { background: var(--hot); transform: translateY(-2px); }
.btn--ink:active { transform: translateY(0); }
.btn--ghost { border: 1px solid var(--line-strong); color: var(--ink); }
.btn--ghost:hover {
  border-color: var(--ink);
  background: rgba(12, 12, 11, .05);
  transform: translateY(-2px);
}
.btn--ghost:active { transform: translateY(0); }
.btn:focus-visible { outline-offset: 4px; }

/* Poster */
.poster {
  position: relative;
  isolation: isolate;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(36px, 5.5vw, 80px) var(--pad) clamp(30px, 3.6vw, 56px);
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
  min-height: min(calc(100svh - 64px), 900px);
}
.poster::before {
  content: '';
  position: absolute;
  inset: -6% 0 0 30%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(46% 40% at 62% 46%, rgba(15, 122, 87, .10), rgba(255, 255, 255, .34) 46%, transparent 74%);
}
.poster__copy { min-width: 0; }

.poster__title {
  margin-top: clamp(18px, 2.2vw, 28px);
  font-size: clamp(38px, 6vw, 88px);
  font-weight: 600;
  line-height: .94;
  letter-spacing: -.04em;
}
.poster__title .line { display: block; }
.poster__title em {
  font-style: normal;
  color: var(--hot);
}
.poster__lead {
  max-width: 46ch;
  margin-top: clamp(20px, 2.4vw, 30px);
  color: var(--ink-soft);
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.6;
}
.poster__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(24px, 3vw, 36px);
}
.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(18px, 3vw, 40px);
  margin-top: clamp(28px, 3.4vw, 44px);
  border-top: 1px solid var(--line);
}
.facts__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.facts dt {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.facts dd { font-size: 13px; text-align: right; }
.facts dd span { margin-left: .3em; color: var(--muted); }

.poster__device {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  min-width: 0;
}
.poster__caption {
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

/* Theme switch above the phone */
.themes {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--page-2);
}
.themes__btn {
  padding: 7px 15px;
  border-radius: 99px;
  font-size: 12px;
  line-height: 1.2;
  color: var(--muted);
  transition: color .2s, background-color .2s;
}
.themes__btn:hover { color: var(--ink); }
.themes__btn.is-on { background: var(--ink); color: var(--page); }
.themes--compact { padding: 3px; }
.themes--compact .themes__btn { padding: 5px 11px; font-size: 11px; }

/* iPhone frame */
.device {
  --radius: clamp(40px, 3.8vw, 56px);
  --home: #0C0C0C;
  position: relative;
  width: var(--device-w, 316px);
  max-width: 100%;
  aspect-ratio: 393 / 852;
  margin-inline: auto;
  padding: clamp(7px, .6vw, 9px);
  border-radius: var(--radius);
  background:
    linear-gradient(148deg, #514E46 0%, #24221F 24%, #0D0C0A 52%, #3B3831 76%, #131210 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .18),
    inset 0 0 0 3px rgba(0, 0, 0, .62),
    0 40px 70px -30px rgba(12, 12, 11, .45),
    0 12px 26px -14px rgba(12, 12, 11, .28),
    0 0 0 1px rgba(12, 12, 11, .08);
}
.device[data-theme="dark"] { --home: rgba(244, 240, 232, .92); }

.device__btn {
  position: absolute;
  width: 3.5px;
  border-radius: 3px 0 0 3px;
  background: linear-gradient(180deg, #7A766A, #46423A 55%, #26241F);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .4);
}
.device__btn--mute    { left: -3.5px; top: 15.5%; height: 4.6%; }
.device__btn--vol-up  { left: -3.5px; top: 23%;   height: 8.4%; }
.device__btn--vol-down{ left: -3.5px; top: 33%;   height: 8.4%; }
.device__btn--power   { right: -3.5px; top: 26%;  height: 12.6%; border-radius: 0 3px 3px 0; }

.device__screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: calc(var(--radius) - 9px);
  background: #000;
  container-type: inline-size;
  isolation: isolate;
}
.device__screen::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 9;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05);
  pointer-events: none;
}

.device__island {
  position: absolute;
  top: 2.1cqw;
  left: 50%;
  z-index: 6;
  width: 30cqw;
  height: 7.2cqw;
  border-radius: 99px;
  background: #000;
  transform: translateX(-50%);
}
.device__island::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 3.4cqw;
  width: 2.2cqw;
  height: 2.2cqw;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #1E2A33, #060809 70%);
  transform: translateY(-50%);
}

.device__home {
  position: absolute;
  left: 50%;
  bottom: 1.5cqw;
  z-index: 7;
  width: 34cqw;
  height: 1.25cqw;
  border-radius: 99px;
  background: var(--home);
  transform: translateX(-50%);
  transition: background-color .3s var(--ease-soft);
}

/* App tokens — light and dark live on the same system */
.app {
  --canvas: #F4F0E7;
  --surface: #FFFFFF;
  --soft: #E8E2D5;
  --ink: #0C0C0B;
  --muted: #77746D;
  --line: #E4DFD2;
  --acc: #0C0C0C;
  --on-acc: #FFFFFF;
  --good: #12946A;
  --bad: #C0432F;
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  font-size: 3.9cqw;
  line-height: 1.3;
  transition: background-color .3s var(--ease-soft), color .3s var(--ease-soft);
}
.device[data-theme="dark"] .app {
  --canvas: #121211;
  --surface: #1D1D1A;
  --soft: #2C2C27;
  --ink: #F4F0E8;
  --muted: #8F8B82;
  --line: rgba(244, 240, 232, .1);
  --acc: #EFEAE0;
  --on-acc: #0C0C0B;
  --good: #3FBF8E;
  --bad: #E47A60;
}
.app * {
  transition-property: background-color, color, border-color;
  transition-duration: .3s;
  transition-timing-function: var(--ease-soft);
}

/* Status bar */
.v-status {
  position: relative;
  z-index: 5;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 12.6cqw;
  padding: 4.8cqw 7.6cqw 0;
  font-size: 3.5cqw;
  font-weight: 600;
  letter-spacing: .01em;
}
.v-status__icons { display: flex; align-items: center; gap: 1.5cqw; }
.v-status__icons .v-ico { fill: none; stroke: none; height: 2.9cqw; width: auto; }
.v-status__icons .v-ico:first-child { width: 4.7cqw; }
.v-status__icons .v-ico:first-child rect { fill: currentColor; }
.v-status__icons .v-ico:nth-child(2) { width: 4.3cqw; }
.v-status__icons .v-ico:nth-child(2) path:first-child { fill: currentColor; }
.v-status__icons .v-ico:nth-child(2) path:last-child { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.v-status__icons .v-ico--bat { width: 6.5cqw; }
.v-ico--bat rect:first-of-type { fill: none; stroke: currentColor; stroke-width: 1.1; }
.v-ico--bat rect:nth-of-type(2) { fill: currentColor; stroke: none; }
.v-ico--bat path { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }

/* Icons */
.v-ico {
  width: 5cqw;
  height: 5cqw;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Home content */
.hero-screen {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 3.6cqw;
  padding: 2.4cqw 5.6cqw 1.6cqw;
  overflow: hidden;
}

.v-head { display: flex; align-items: center; justify-content: space-between; }
.v-brand { font-size: 4.8cqw; font-weight: 700; letter-spacing: -.03em; }
.v-avatar {
  display: grid;
  place-items: center;
  width: 9.4cqw;
  height: 9.4cqw;
  border-radius: 50%;
  background: var(--soft);
  font-size: 3.2cqw;
  font-weight: 600;
  letter-spacing: .02em;
}

.v-label { font-size: 3.5cqw; color: var(--muted); }
.v-balance {
  margin-top: -1.6cqw;
  font-size: 10.2cqw;
  font-weight: 600;
  letter-spacing: -.04em;
  line-height: 1.02;
  font-variant-numeric: tabular-nums;
}
.v-balance span {
  font-size: .68em;
  letter-spacing: -.02em;
  color: var(--muted);
}
.v-balance em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 3.4cqw;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--muted);
}
.v-fiat { margin-top: -2cqw; font-size: 3.2cqw; color: var(--muted); }
.v-fiat span { color: var(--good); }

.v-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.2cqw; }
.v-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.8cqw;
  padding: 3.4cqw 1cqw 3.6cqw;
  border-radius: 5.2cqw;
  background: var(--surface);
  font-size: 2.9cqw;
  font-weight: 500;
  white-space: nowrap;
}
.v-tile .v-ico { width: 5.4cqw; height: 5.4cqw; }
.v-tile--ink { background: var(--acc); color: var(--on-acc); }

.v-strip {
  display: flex;
  align-items: center;
  gap: 3cqw;
  padding: 3cqw 4cqw;
  border-radius: 4.6cqw;
  background: var(--surface);
}
.v-strip__ico {
  display: grid;
  place-items: center;
  width: 7.6cqw;
  height: 7.6cqw;
  flex: none;
  border-radius: 50%;
  background: color-mix(in srgb, var(--good) 14%, transparent);
  color: var(--good);
  font-size: 3.4cqw;
  font-weight: 700;
}
.v-strip__body { display: flex; flex-direction: column; gap: .4cqw; min-width: 0; }
.v-strip__body b { font-size: 3.2cqw; font-weight: 600; }
.v-strip__body i { font-style: normal; font-size: 2.8cqw; color: var(--muted); }
.v-strip__chev { margin-left: auto; width: 4cqw; height: 4cqw; color: var(--muted); }

.v-rates {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 2.4cqw 3.4cqw;
  border-radius: 4cqw;
  background: var(--surface);
}
.v-rates span { display: flex; flex-direction: column; gap: .3cqw; min-width: 0; }
.v-rates span:not(:first-child) { padding-left: 3.2cqw; border-left: 1px solid var(--line); }
.v-rates i {
  font-style: normal;
  font-family: var(--mono);
  font-size: 2.4cqw;
  letter-spacing: .06em;
  color: var(--muted);
}
.v-rates b { font-size: 3cqw; font-weight: 500; white-space: nowrap; }
.v-rates em { font-style: normal; font-size: 2.4cqw; color: var(--good); }
.v-rates em.v-neg { color: var(--bad); }

.v-section {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 3cqw;
  color: var(--muted);
}
.v-link { color: var(--ink); font-weight: 500; }

.v-tx { display: flex; flex-direction: column; }
.v-tx li {
  display: grid;
  grid-template-columns: 8.6cqw minmax(0, 1fr) auto;
  align-items: center;
  gap: 3cqw;
  padding: 2.2cqw 0;
}
.v-tx li + li { border-top: 1px solid var(--line); }
.v-tx__tile {
  display: grid;
  place-items: center;
  width: 8.6cqw;
  height: 8.6cqw;
  border-radius: 50%;
  background: var(--surface);
  font-size: 3.2cqw;
  font-weight: 600;
}
.v-tx__tile--in { background: color-mix(in srgb, var(--good) 14%, transparent); color: var(--good); }
.v-tx__main { display: flex; flex-direction: column; gap: .4cqw; min-width: 0; }
.v-tx__main b { font-size: 3.3cqw; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-tx__main i { font-style: normal; font-size: 2.8cqw; color: var(--muted); }
.v-amt {
  font-size: 3.3cqw;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.v-amt--in { color: var(--good); }

.v-more {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 9cqw;
  margin-top: auto;
  font-size: 3.1cqw;
  color: var(--muted);
}
.v-hint { margin-top: auto; text-align: center; font-size: 2.9cqw; color: var(--muted); }
.screen[data-screen="earn"] .v-btn,
.screen[data-screen="card"] .v-btn { margin-top: 0; flex: none; }
.v-note {
  display: flex;
  align-items: center;
  gap: 2.4cqw;
  margin-top: auto;
  font-size: 2.9cqw;
  color: var(--muted);
}
.v-note .v-ico { width: 4.2cqw; height: 4.2cqw; }

/* Small shared parts */
.v-pill {
  padding: 1.2cqw 2.6cqw;
  border-radius: 99px;
  background: color-mix(in srgb, var(--good) 14%, transparent);
  color: var(--good);
  font-size: 2.7cqw;
  font-weight: 600;
  white-space: nowrap;
}
.v-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 12.6cqw;
  margin-top: auto;
  border-radius: 99px;
  background: var(--acc);
  color: var(--on-acc);
  font-size: 3.7cqw;
  font-weight: 600;
}
.v-switch {
  position: relative;
  width: 11cqw;
  height: 6.4cqw;
  flex: none;
  border-radius: 99px;
  background: var(--soft);
}
.v-switch::after {
  content: '';
  position: absolute;
  top: .7cqw;
  left: .7cqw;
  width: 5cqw;
  height: 5cqw;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .25);
  transition: transform .24s var(--ease);
}
.v-switch.is-on { background: var(--acc); }
.v-switch.is-on::after { background: var(--on-acc); transform: translateX(4.6cqw); }
.v-meter {
  display: block;
  height: 1.6cqw;
  border-radius: 99px;
  background: var(--soft);
  overflow: hidden;
}
.v-meter i { display: block; height: 100%; border-radius: 99px; background: var(--ink); }

/* Screen stage */
.screens {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 3.4cqw;
  padding: 2.4cqw 5.6cqw 2.4cqw;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 2.4cqw, 0);
  transition:
    opacity .26s var(--ease-soft),
    transform .34s var(--ease),
    visibility 0s linear .34s;
}
.screen.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}

.v-screenhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3cqw;
  flex: none;
}
.v-screenhead__title { font-size: 5.4cqw; font-weight: 600; letter-spacing: -.03em; }
.v-screenhead__link { font-size: 3.1cqw; color: var(--muted); }

/* Card */
.v-card {
  position: relative;
  flex: none;
  aspect-ratio: 1.586;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 4.4cqw 5cqw;
  border-radius: 5.6cqw;
  overflow: hidden;
  color: #161410;
  background: linear-gradient(118deg, #F6F3EB 0%, #DDD5C4 30%, #F1EBDE 48%, #C7BEAB 70%, #EDE6D6 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .6),
    0 12px 26px -14px rgba(0, 0, 0, .55);
}
.v-card::after {
  content: '';
  position: absolute;
  top: -40%;
  left: -25%;
  width: 70%;
  height: 180%;
  pointer-events: none;
  background: linear-gradient(100deg, transparent 22%, rgba(255, 255, 255, .5) 50%, transparent 78%);
  transform: rotate(20deg);
}
.v-card__top { display: flex; align-items: center; justify-content: space-between; }
.v-card__brand { font-size: 4.4cqw; font-weight: 700; letter-spacing: -.03em; }
.v-card__wave { width: 5.4cqw; height: 5.4cqw; }
.v-card__chip {
  width: 8.6cqw;
  height: 6.6cqw;
  border-radius: 1.5cqw;
  background:
    linear-gradient(90deg, transparent 46%, rgba(70, 55, 25, .35) 47%, rgba(70, 55, 25, .35) 53%, transparent 54%),
    linear-gradient(180deg, #E4D7B0, #B5A070 45%, #E9DCB6 60%, #A08A5C);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5);
}
.v-card__num {
  font-family: var(--mono);
  font-size: 4.2cqw;
  letter-spacing: .06em;
}
.v-card__foot { display: flex; align-items: flex-end; justify-content: space-between; }
.v-card__foot i {
  display: block;
  font-style: normal;
  font-size: 2.3cqw;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .55;
}
.v-card__foot b { font-size: 2.9cqw; font-weight: 600; letter-spacing: .05em; }
.v-card__exp { text-align: right; }

.v-switchrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3cqw;
  padding: 3cqw 4cqw;
  border-radius: 4.4cqw;
  background: var(--surface);
  flex: none;
}
.v-switchrow__body { display: flex; flex-direction: column; gap: .5cqw; min-width: 0; }
.v-switchrow__body b { font-size: 3.4cqw; font-weight: 500; }
.v-switchrow__body i { font-style: normal; font-size: 2.8cqw; color: var(--muted); }

.v-limit {
  display: flex;
  flex-direction: column;
  gap: 2.2cqw;
  padding: 3.2cqw 4cqw;
  border-radius: 4.4cqw;
  background: var(--surface);
  flex: none;
}
.v-limit__top { display: flex; justify-content: space-between; font-size: 3.1cqw; color: var(--muted); }
.v-limit__top b { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }

/* History */
.v-tabs { display: flex; gap: 2cqw; flex: none; }
.v-tab {
  padding: 2.4cqw 4.2cqw;
  border-radius: 99px;
  background: var(--surface);
  font-size: 3.1cqw;
  color: var(--muted);
  white-space: nowrap;
}
.v-tab.is-on { background: var(--acc); color: var(--on-acc); font-weight: 500; }
.v-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 2.4cqw; flex: none; }
.v-summary span {
  display: flex;
  flex-direction: column;
  gap: 1cqw;
  padding: 3.2cqw 4cqw;
  border-radius: 4.4cqw;
  background: var(--surface);
}
.v-summary i { font-style: normal; font-size: 2.9cqw; color: var(--muted); }
.v-summary b { font-size: 4.8cqw; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.v-pos { color: var(--good); }
.v-day {
  margin-top: 1.2cqw;
  font-size: 2.7cqw;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Earn */
.v-rate {
  position: relative;
  flex: none;
  padding: 4.6cqw 5cqw 4.2cqw;
  border-radius: 5.2cqw;
  overflow: hidden;
  background: linear-gradient(152deg, #1D1C18, #0C0C0B 78%);
  color: #EFEAE0;
}
.v-rate__label { font-size: 2.8cqw; letter-spacing: .1em; text-transform: uppercase; opacity: .55; }
.v-rate__value {
  margin-top: 1cqw;
  font-size: 11.4cqw;
  font-weight: 600;
  letter-spacing: -.055em;
  line-height: 1;
}
.v-rate__value span { margin-left: .3cqw; font-size: 5.4cqw; }
.v-rate__note { margin-top: 1.4cqw; font-size: 2.9cqw; opacity: .6; }
.v-rate__spark {
  position: absolute;
  right: 4.6cqw;
  bottom: 4.4cqw;
  display: flex;
  align-items: flex-end;
  gap: 1.1cqw;
  height: 12cqw;
}
.v-rate__spark i { display: block; width: 1.3cqw; border-radius: 99px; background: rgba(239, 234, 224, .32); }
.v-rate__spark i:nth-last-child(-n+2) { background: #8FE3C0; }

.v-seg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1cqw;
  flex: none;
  padding: 1.1cqw;
  border-radius: 99px;
  background: var(--surface);
}
.v-seg__item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 7.6cqw;
  border-radius: 99px;
  font-size: 3cqw;
  color: var(--muted);
  white-space: nowrap;
}
.v-seg__item.is-on { background: var(--acc); color: var(--on-acc); font-weight: 500; }

.v-range {
  display: flex;
  flex-direction: column;
  gap: 2.2cqw;
  flex: none;
  padding: 3.2cqw 4cqw;
  border-radius: 4.4cqw;
  background: var(--surface);
}
.v-range > span:first-child { display: flex; justify-content: space-between; font-size: 3.1cqw; color: var(--muted); }
.v-range b { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.v-meter--range { height: 2.2cqw; }
.v-range__ends {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 2.6cqw;
  color: var(--muted);
}
.v-range__ends i { font-style: normal; }

.v-position {
  display: flex;
  align-items: center;
  gap: 3.2cqw;
  flex: none;
  padding: 3.2cqw 4cqw;
  border-radius: 4.4cqw;
  background: var(--surface);
}
.v-ring { position: relative; display: grid; place-items: center; width: 13cqw; height: 13cqw; flex: none; }
.v-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.v-ring circle { fill: none; stroke-width: 3.4; }
.v-ring__track { stroke: var(--soft); }
.v-ring__fill { stroke: var(--good); stroke-dasharray: 62 100; stroke-linecap: round; }
.v-ring b { font-size: 3.4cqw; font-weight: 600; letter-spacing: -.02em; }
.v-ring em { font-style: normal; font-size: 2.3cqw; }
.v-position__body { display: flex; flex-direction: column; gap: .6cqw; min-width: 0; }
.v-position__body b { font-size: 3.3cqw; font-weight: 500; }
.v-position__body i { font-style: normal; font-size: 2.8cqw; color: var(--muted); }

/* Profile */
.v-id { display: flex; align-items: center; gap: 3.6cqw; flex: none; }
.v-id__avatar {
  display: grid;
  place-items: center;
  width: 13cqw;
  height: 13cqw;
  flex: none;
  border-radius: 50%;
  background: var(--soft);
  font-size: 4.2cqw;
  font-weight: 600;
}
.v-id__body { display: flex; flex-direction: column; gap: .8cqw; min-width: 0; }
.v-id__body b { font-size: 4.4cqw; font-weight: 600; letter-spacing: -.02em; }
.v-id__body i { font-style: normal; font-size: 2.9cqw; color: var(--muted); }
.v-menu {
  display: flex;
  flex-direction: column;
  flex: none;
  border-radius: 4.4cqw;
  background: var(--surface);
  overflow: hidden;
}
.v-menu li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3cqw;
  padding: 3.6cqw 4cqw;
  font-size: 3.4cqw;
}
.v-menu li + li { border-top: 1px solid var(--line); }
.v-menu .v-ico { width: 4cqw; height: 4cqw; color: var(--muted); }
.v-sign {
  margin-top: auto;
  padding-bottom: 1cqw;
  font-size: 2.4cqw;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-align: center;
  color: var(--muted);
}

/* Tab bar */
.tabbar {
  position: relative;
  z-index: 4;
  flex: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: start;
  padding: 1.4cqw 6cqw 4.2cqw;
  background: var(--canvas);
}
.tabbar__pill {
  position: absolute;
  top: 1.4cqw;
  left: 6cqw;
  width: calc((100% - 12cqw) / 5);
  height: 10cqw;
  border-radius: 99px;
  background: var(--surface);
  transform: translateX(calc(var(--tab, 0) * 100%));
  transition: transform .36s var(--ease);
}
.tab {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 10cqw;
  color: var(--muted);
  transition: color .24s;
}
.tab .v-ico { width: 5.4cqw; height: 5.4cqw; }
.tab.is-on { color: var(--ink); }

/* Showcase */
.showcase {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(44px, 5.4vw, 82px) var(--pad) clamp(40px, 6vw, 80px);
}
.showcase__head,
.principles__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: clamp(16px, 4vw, 56px);
  align-items: end;
  margin-bottom: clamp(32px, 5vw, 64px);
}
.showcase__lead { color: var(--muted); font-size: 14px; line-height: 1.6; }

.showcase__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .88fr);
  gap: clamp(28px, 5vw, 80px);
}
.showcase__device {
  position: relative;
  min-width: 0;
}
.showcase .device { --device-w: min(clamp(226px, 19vw, 264px), 27vh); }
.poster .device { --device-w: min(clamp(248px, 23vw, 320px), 31.5vh); }

.device-sticky {
  position: sticky;
  top: clamp(80px, 12vh, 116px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(12px, 1.4vw, 18px);
  padding: clamp(14px, 1.6vw, 22px) clamp(14px, 1.7vw, 24px) clamp(16px, 1.9vw, 26px);
  border: 1px solid var(--line);
  border-radius: clamp(24px, 2.4vw, 34px);
  background:
    radial-gradient(62% 42% at 50% 22%, rgba(255, 255, 255, .78), transparent 72%),
    linear-gradient(180deg, #EDE6D9 0%, #E3DCCC 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .7),
    0 30px 70px -50px rgba(12, 12, 11, .4);
}
.stage__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  font-size: 10px;
  color: var(--muted);
}
.stage__top span:first-child { color: var(--ink); }
.stage__top i {
  font-style: normal;
  color: var(--hot);
  margin-right: 6px;
}
.stage__rail {
  display: flex;
  gap: 6px;
  width: 100%;
}
.stage__rail i {
  flex: 1;
  height: 3px;
  border-radius: 3px;
  background: rgba(12, 12, 11, .16);
  transition: background-color .3s var(--ease-soft);
}
.stage__rail i.is-on { background: var(--ink); }
.stage__foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(10px, 1.2vw, 14px);
}
.device-sticky__caption {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: .5em;
  font-size: 10px;
  color: var(--muted);
}
#device-count { color: var(--hot); }
#device-label { color: var(--ink-soft); }

.steps {
  padding-top: clamp(120px, calc(50vh - 300px), 420px);
  padding-bottom: clamp(220px, 34vh, 380px);
  border-top: 1px solid var(--line);
}
.step {
  display: grid;
  grid-template-columns: clamp(38px, 4vw, 54px) minmax(0, 1fr);
  gap: clamp(12px, 2vw, 24px);
  align-items: center;
  min-height: clamp(240px, 42vh, 440px);
  padding: clamp(24px, 3.4vw, 42px) 0;
  border-bottom: 1px solid var(--line);
  opacity: .42;
  transition: opacity .35s var(--ease-soft);
}
.step.is-active { opacity: 1; }
.step__index { font-size: 11px; color: var(--muted); transition: color .3s; }
.step.is-active .step__index { color: var(--hot); }
.step__body { display: flex; flex-direction: column; gap: 10px; max-width: 46ch; }
.step__title {
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.025em;
}
.step__note { font-size: 14px; line-height: 1.6; color: var(--muted); }

/* Principles */
.principles {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(52px, 7vw, 110px) var(--pad) 0;
}
.principles__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}
.principle {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.principle__num { color: var(--muted); }
.principle h3 {
  margin-top: 26px;
  font-size: clamp(17px, 1.5vw, 21px);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.25;
}
.principle p { margin-top: 10px; font-size: 13px; line-height: 1.6; color: var(--muted); }

/* Figures */
.figures {
  max-width: var(--max);
  margin: clamp(52px, 7vw, 110px) auto 0;
  padding: clamp(26px, 4vw, 48px) var(--pad);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 32px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.figure b {
  display: block;
  font-size: clamp(44px, 6.4vw, 92px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.055em;
  font-variant-numeric: tabular-nums;
}
.figure span { display: block; margin-top: 12px; font-size: 12px; color: var(--muted); }

/* Footer */
.foot {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(20px, 2.6vw, 30px) var(--pad) clamp(24px, 3vw, 38px);
  border-top: 1px solid var(--line);
}
.foot__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px clamp(20px, 3vw, 40px);
}
.foot__brand { font-size: 21px; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.foot__brand span { color: var(--hot); }
.foot__note { font-size: 10px; color: var(--muted); }
.foot__links { display: flex; flex-wrap: wrap; gap: clamp(16px, 2vw, 28px); font-size: 13px; }
.foot__links a { padding-bottom: 2px; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.foot__links a:hover { color: var(--hot); border-color: var(--hot); }

/* Entrance (JS adds .js + .is-loaded) */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease-soft), transform .85s var(--ease);
}
.js .reveal.is-in { opacity: 1; transform: none; }

.js .poster__title .line {
  overflow: hidden;
  padding-bottom: .08em;
  margin-bottom: -.08em;
}
.js .poster__title .line > span {
  display: block;
  transform: translateY(112%);
  transition: transform 1s var(--ease);
}
.page.is-loaded .poster__title .line > span { transform: none; }
.page.is-loaded .poster__title .line:nth-child(2) > span { transition-delay: .07s; }
.page.is-loaded .poster__title .line:nth-child(3) > span { transition-delay: .14s; }

.js .poster__copy > .tag,
.js .poster__lead,
.js .poster__actions,
.js .facts,
.js .poster__device {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease-soft), transform .8s var(--ease);
}
.js .poster__device { transition-duration: .85s, 1s; transition-delay: .12s; }
.js .poster__lead { transition-delay: .2s; }
.js .poster__actions { transition-delay: .28s; }
.js .facts { transition-delay: .36s; }

.page.is-loaded .poster__copy > .tag,
.page.is-loaded .poster__lead,
.page.is-loaded .poster__actions,
.page.is-loaded .facts,
.page.is-loaded .poster__device {
  opacity: 1;
  transform: none;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal,
  .js .poster__title .line > span,
  .js .poster__copy > .tag,
  .js .poster__lead,
  .js .poster__actions,
  .js .facts,
  .js .poster__device {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .screen { transform: none; transition: opacity .12s linear, visibility 0s; }
  .tabbar__pill,
  .v-switch::after,
  .v-ico,
  .btn,
  .top__link,
  .app * { transition: none; }
}

@media (max-height: 860px) and (min-width: 981px) {
  .poster { padding-top: 32px; padding-bottom: 40px; }
}

/* Responsive */
@media (max-width: 1180px) {
  .poster { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 32px; }
  .poster__title { font-size: clamp(38px, 5.6vw, 74px); }
  .showcase__grid { grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: 32px; }
}

@media (max-width: 980px) {
  .poster {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: clamp(30px, 5vw, 44px);
  }
  .poster__copy { max-width: 660px; }
  .poster .device { --device-w: clamp(232px, 74vw, 330px); }
  .poster__device { align-items: center; }

  .showcase__grid { display: flex; flex-direction: column; gap: 0; }
  .showcase__device {
    order: -1;
    position: sticky;
    top: 64px;
    z-index: 4;
    align-self: stretch;
    max-width: none;
    margin: 0 calc(var(--pad) * -1) 18px;
    padding: 12px var(--pad) 14px;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0 0 26px 26px;
    background:
      radial-gradient(70% 60% at 50% 0%, rgba(255, 255, 255, .8), transparent 70%),
      linear-gradient(180deg, #EDE6D9 0%, #E3DCCC 100%);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .7),
      0 22px 40px -34px rgba(12, 12, 11, .5);
  }
  .showcase .device { --device-w: clamp(180px, 46vw, 230px); }
  .steps { padding-top: 0; padding-bottom: clamp(140px, 20vh, 240px); }
  .device-sticky {
    position: static;
    gap: 10px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
  }
  .stage__foot {
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    gap: 10px;
  }
  .device-sticky__caption { justify-content: flex-start; }
  .step { min-height: 34vh; }

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

@media (max-width: 720px) {
  :root { --pad: 20px; }
  .top { height: 56px; }
  .showcase__device { top: 56px; }
  .top__meta { display: none; }
  .top__meta + .top__link { margin-left: auto; }
  .top__link { font-size: 12px; }

  .poster { padding-top: 26px; }
  .poster__title { font-size: clamp(34px, 9.6vw, 54px); }
  .poster__lead { font-size: 15px; }
  .poster__actions { flex-direction: column; align-items: stretch; }
  .poster__actions .btn { width: 100%; }
  .facts { grid-template-columns: 1fr; }

  .showcase__head,
  .principles__head { grid-template-columns: 1fr; align-items: start; gap: 20px; }
  .section__title { font-size: clamp(28px, 7.4vw, 42px); }
  .showcase__device { top: 56px; }
  .step { grid-template-columns: 34px minmax(0, 1fr); gap: 12px; min-height: 38vh; padding: 24px 0; }
  .step__title { font-size: 22px; }

  .principle h3 { margin-top: 18px; }
  .figures { padding-top: 28px; padding-bottom: 28px; }
  .figure span { font-size: 11px; }

  .foot__row { flex-direction: column; align-items: flex-start; gap: 12px; }
}

@media (max-width: 520px) {
  .poster__title { font-size: clamp(32px, 10.4vw, 44px); }
  .themes__btn { padding: 6px 12px; font-size: 11px; }
  .principles__grid { grid-template-columns: 1fr; }
  .figures { grid-template-columns: 1fr; gap: 22px; }
  .figure b { font-size: clamp(52px, 15vw, 64px); }
  .showcase .device { --device-w: clamp(160px, 46vw, 190px); }
  .step { min-height: 30vh; }
}
