/* =========================================================
   FINRIVAL — Site design system
   Colours and type follow the iOS app so the site and the
   product feel like one thing. Shared by every page.
========================================================= */

:root {
  --bg: #06090d;
  --bg-2: #0a0f15;
  --surface: #0d131a;
  --surface-2: #111923;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.12);
  --line-3: rgba(255, 255, 255, 0.22);

  --text: #f2f5f8;
  --text-2: #a7b1bd;
  --text-3: #6b7683;

  --gold: #d8bf83;
  --gold-2: #eddcb2;
  --gold-deep: #8c7444;
  --navy: #344e80;
  --teal: #1fb5c6;
  --up: #5fd197;
  --down: #ff6b7a;

  --radius: 20px;
  --radius-lg: 28px;
  --radius-xl: 40px;

  --container: 1200px;
  --gutter: 24px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 0.61, 0.24, 1);
  --ease-io: cubic-bezier(0.76, 0, 0.24, 1);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  color-scheme: dark;
}

@media (max-width: 640px) {
  :root {
    --gutter: 20px;
    --header-h: 64px;
  }
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  background: var(--bg);
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -0.011em;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

::selection {
  background: rgba(216, 191, 131, 0.35);
  color: #fff;
}

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

.container {
  width: min(var(--container), 100% - var(--gutter) * 2);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 300;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-size: 14px;
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
}

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

.ic {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Type ---------- */

.kicker {
  display: block;
  color: var(--gold);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.display {
  font-size: clamp(46px, 7.2vw, 96px);
  font-weight: 650;
  line-height: 1;
  letter-spacing: -0.05em;
}

.h2 {
  font-size: clamp(38px, 5.2vw, 68px);
  font-weight: 650;
  line-height: 1.03;
  letter-spacing: -0.045em;
}

.h3 {
  font-size: clamp(28px, 2.8vw, 40px);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -0.038em;
}

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

.dim {
  color: var(--text-3);
}

/* ---------- Buttons & store badges ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.015em;
  white-space: nowrap;
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.btn--primary {
  background: var(--text);
  color: #05070a;
}

.btn--primary:hover {
  background: #fff;
  transform: translateY(-1px);
}

.btn--gold {
  background: var(--gold);
  color: #17130a;
}

.btn--gold:hover {
  background: var(--gold-2);
  transform: translateY(-1px);
}

.btn--ghost {
  border: 1px solid var(--line-2);
}

.btn--ghost:hover {
  border-color: var(--line-3);
}

.btn--sm {
  height: 38px;
  padding: 0 16px;
  font-size: 14.5px;
}

.link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold);
  font-size: 17px;
  font-weight: 500;
}

.link svg {
  width: 15px;
  height: 15px;
  transition: transform 0.3s var(--ease);
}

.link:hover svg {
  transform: translateX(3px);
}

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.store {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  height: 56px;
  padding: 0 22px 0 18px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: #000;
}

.store svg {
  width: 24px;
  height: 24px;
  flex: none;
}

.store__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.05;
  text-align: left;
}

.store__small {
  color: var(--text-2);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.store__big {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease);
}

.site-header.is-scrolled,
.site-header.is-open {
  border-bottom-color: var(--line);
  background: rgba(6, 9, 13, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}

.nav {
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.brand {
  justify-self: start;
}

.brand img {
  width: auto;
  height: 27px;
}

.nav__links {
  display: flex;
  gap: 30px;
}

.nav__links a {
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.25s var(--ease);
}

.nav__links a:hover,
.nav__links a[aria-current="page"] {
  color: var(--text);
}

.nav__actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 10px;
}

/* Language picker */
.lang {
  position: relative;
}

.lang__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 10px 0 11px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--text-2);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.lang__btn:hover,
.lang.is-open .lang__btn {
  border-color: var(--line-3);
  color: var(--text);
}

.lang__btn svg {
  width: 16px;
  height: 16px;
}

.lang__btn .lang__chev {
  width: 14px;
  height: 14px;
  transition: transform 0.3s var(--ease);
}

.lang.is-open .lang__chev {
  transform: rotate(180deg);
}

.lang__menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 70;
  min-width: 180px;
  padding: 6px;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  background: rgba(14, 19, 26, 0.94);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.8);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
}

.lang.is-open .lang__menu,
.lang:not(.is-ready):focus-within .lang__menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.lang__menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text-2);
  font-size: 15px;
  font-weight: 500;
  transition: background-color 0.2s, color 0.2s;
}

.lang__menu a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.lang__menu a svg {
  width: 16px;
  height: 16px;
  color: var(--gold);
  visibility: hidden;
}

.lang__menu a[aria-current] {
  color: var(--text);
}

.lang__menu a[aria-current] svg {
  visibility: visible;
}

.lang-row {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.lang-row a {
  flex: 1;
  padding: 11px 0;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  color: var(--text-2);
  font-size: 15px;
  font-weight: 500;
  text-align: center;
}

.lang-row a[aria-current] {
  border-color: rgba(216, 191, 131, 0.5);
  background: rgba(216, 191, 131, 0.08);
  color: var(--gold-2);
}

@media (max-width: 640px) {
  .lang__btn {
    height: 40px;
  }
}

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 999px;
}

.nav__toggle span,
.nav__toggle span::before,
.nav__toggle span::after {
  display: block;
  width: 18px;
  height: 1.6px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.35s var(--ease), background-color 0.2s;
}

.nav__toggle span {
  position: relative;
}

.nav__toggle span::before,
.nav__toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav__toggle span::before {
  transform: translateY(-6px);
}

.nav__toggle span::after {
  transform: translateY(6px);
}

.nav__toggle[aria-expanded="true"] span {
  background: transparent;
}

.nav__toggle[aria-expanded="true"] span::before {
  transform: rotate(45deg);
}

.nav__toggle[aria-expanded="true"] span::after {
  transform: rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 59;
  display: flex;
  flex-direction: column;
  padding: 16px var(--gutter) 32px;
  background: rgba(6, 9, 13, 0.97);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu nav a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 28px;
  font-weight: 650;
  letter-spacing: -0.035em;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.mobile-menu.is-open nav a {
  opacity: 1;
  transform: none;
}

.mobile-menu.is-open nav a:nth-child(2) { transition-delay: 0.03s; }
.mobile-menu.is-open nav a:nth-child(3) { transition-delay: 0.06s; }
.mobile-menu.is-open nav a:nth-child(4) { transition-delay: 0.09s; }
.mobile-menu.is-open nav a:nth-child(5) { transition-delay: 0.12s; }
.mobile-menu.is-open nav a:nth-child(6) { transition-delay: 0.15s; }

.mobile-menu__foot {
  margin-top: auto;
}

.mobile-menu__foot .stores {
  flex-direction: column;
}

.mobile-menu__foot .store {
  width: 100%;
}

@media (max-width: 1000px) {
  .nav {
    grid-template-columns: 1fr auto;
  }

  .nav__links {
    display: none;
  }

  .nav__toggle {
    display: grid;
  }
}

@media (max-width: 640px) {
  .nav__actions .btn {
    display: none;
  }

  .brand img {
    height: 24px;
  }
}

@media (min-width: 1001px) {
  .mobile-menu {
    display: none;
  }
}

/* ---------- Intro ---------- */

.intro {
  display: none;
}

.intro-play .intro {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: var(--bg);
  clip-path: inset(0 0 0 0);
  animation: intro-out 0.95s var(--ease-io) 1.75s forwards;
}

.intro__line {
  position: absolute;
  left: 0;
  top: 60%;
  width: 100%;
  height: min(46vh, 52vw);
  overflow: visible;
  transform: translateY(-46%);
}

.intro__line path {
  fill: none;
  stroke: url(#intro-grad);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 10px rgba(216, 191, 131, 0.55));
  animation: draw 1.5s var(--ease-io) 0.15s forwards;
}

.intro__glow {
  position: absolute;
  width: 70vmax;
  height: 70vmax;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(216, 191, 131, 0.1), rgba(52, 78, 128, 0.12) 50%, transparent);
  opacity: 0;
  animation: fade-in 1.4s var(--ease) 0.4s forwards;
}

.intro__logo {
  position: relative;
  width: min(240px, 56vw);
  height: auto;
  opacity: 0;
  filter: blur(14px);
  transform: scale(0.94);
  animation: logo-in 1s var(--ease) 0.7s forwards;
}

.intro.is-skipped {
  animation: intro-out 0.5s var(--ease-io) forwards;
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes fade-in {
  to {
    opacity: 1;
  }
}

@keyframes logo-in {
  to {
    opacity: 1;
    filter: blur(0);
    transform: none;
  }
}

@keyframes intro-out {
  to {
    clip-path: inset(0 0 100% 0);
    visibility: hidden;
  }
}

/* Entrance animation, chained after the intro when it plays */
:root {
  --intro: 0s;
}

.intro-play {
  --intro: 1.95s;
}

.rise {
  animation: rise 1.1s var(--ease) calc(var(--intro) + var(--d, 0s)) both;
}

.mask-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}

.mask-line > span {
  display: block;
  animation: line-up 1.1s var(--ease) calc(var(--intro) + var(--d, 0s)) both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes line-up {
  from {
    transform: translateY(105%);
  }
  to {
    transform: none;
  }
}

/* ---------- Device frame ---------- */

.device {
  --w: 300px;
  --pad: calc(var(--w) * 0.034);
  --screen: calc(var(--w) - var(--pad) * 2);
  position: relative;
  width: var(--w);
  padding: var(--pad);
  border-radius: calc(var(--w) * 0.165);
  background:
    linear-gradient(145deg, #4a4f57 0%, #1b1e23 14%, #0c0e11 50%, #1c1f24 86%, #50555d 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.14),
    inset 0 0 0 calc(var(--pad) * 0.32) #030405,
    0 50px 100px -30px rgba(0, 0, 0, 0.85),
    0 20px 40px -20px rgba(0, 0, 0, 0.6);
}

.device img {
  width: 100%;
  height: auto;
  aspect-ratio: 720 / 1565;
  border-radius: calc(var(--w) * 0.132);
  background: #0b1118;
}

.device::after {
  content: "";
  position: absolute;
  top: calc(var(--pad) + var(--screen) * 0.027);
  left: 50%;
  width: calc(var(--screen) * 0.305);
  height: calc(var(--screen) * 0.088);
  border-radius: 999px;
  background: #000;
  transform: translateX(-50%);
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--header-h) + clamp(48px, 8vw, 104px));
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 34%;
  z-index: -1;
  width: min(1400px, 160vw);
  height: 1100px;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, rgba(216, 191, 131, 0.13), rgba(52, 78, 128, 0.16) 45%, transparent);
  transform: translateX(-50%);
  pointer-events: none;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 10px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
}

.hero__badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--up);
  box-shadow: 0 0 0 4px rgba(95, 209, 151, 0.15);
}

.hero h1 {
  margin-top: 28px;
}

.hero .lead {
  margin: 26px auto 0;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}

/* The centre phone sits in the flow so the stage is always tall enough to show
   every phone in full; the side phones are positioned against it */
.hero__stage {
  --spread: 0;
  position: relative;
  margin-top: clamp(56px, 7vw, 88px);
  padding-bottom: clamp(72px, 9vw, 120px);
}

.hero__stage .device {
  position: absolute;
  top: 0;
  left: 50%;
}

.hero__stage .device--center {
  --w: clamp(250px, 26vw, 340px);
  position: relative;
  z-index: 3;
  transform: translateX(-50%);
}

.hero__stage .device--side {
  --w: clamp(210px, 22vw, 290px);
  z-index: 2;
  top: clamp(40px, 5vw, 72px);
  filter: brightness(0.8);
}

.hero__stage .device--left {
  transform: translateX(calc(-50% - var(--w) * 0.78 - var(--spread) * 60px)) rotate(-5deg);
}

.hero__stage .device--right {
  transform: translateX(calc(-50% + var(--w) * 0.78 + var(--spread) * 60px)) rotate(5deg);
}

.hero__stage .rise {
  animation-name: rise-stage;
}

@keyframes rise-stage {
  from {
    opacity: 0;
    translate: 0 90px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

/* On phones one large, fully visible screen reads better than three small ones;
   the product tour shows the others right below */
@media (max-width: 640px) {
  .hero__stage .device--center {
    --w: min(280px, 76vw);
  }

  .hero__stage .device--side {
    display: none;
  }
}

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

.section {
  position: relative;
  padding: clamp(96px, 12vw, 168px) 0;
}

.section-head {
  max-width: 820px;
  margin-bottom: clamp(48px, 6vw, 88px);
}

.section-head .h2 {
  margin-top: 14px;
}

.section-head .lead {
  margin-top: 22px;
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head--center .lead {
  margin-inline: auto;
}

/* ---------- Product tour ---------- */

.tour__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
}

.tour__step {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 0;
  max-width: 500px;
  opacity: 0.28;
  transition: opacity 0.6s var(--ease);
}

.tour__step.is-active {
  opacity: 1;
}

.tour__step .h3 {
  margin-top: 12px;
}

.tour__step p {
  margin-top: 18px;
  color: var(--text-2);
  font-size: 18px;
  line-height: 1.55;
}

.facts {
  display: grid;
  gap: 12px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.facts li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 15.5px;
}

.facts svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--gold);
}

.tour__inline {
  display: none;
}

.tour__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  place-items: center;
}

.tour__sticky::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(216, 191, 131, 0.1), rgba(52, 78, 128, 0.12) 50%, transparent);
  pointer-events: none;
}

.tour__device {
  --w: clamp(270px, 24vw, 320px);
}

.tour__screens {
  position: relative;
}

.tour__screens img + img {
  position: absolute;
  inset: 0;
}

.tour__screens img {
  opacity: 0;
  transform: scale(1.015);
  transition: opacity 0.7s var(--ease), transform 0.9s var(--ease);
}

.tour__screens img.is-active {
  opacity: 1;
  transform: none;
}

.tour__progress {
  position: absolute;
  right: 0;
  top: 50%;
  display: grid;
  gap: 10px;
  transform: translateY(-50%);
}

.tour__progress span {
  width: 4px;
  height: 22px;
  border-radius: 4px;
  background: var(--line-2);
  transition: background-color 0.4s var(--ease), height 0.4s var(--ease);
}

.tour__progress span.is-active {
  height: 40px;
  background: var(--gold);
}

@media (max-width: 900px) {
  .tour__grid {
    grid-template-columns: 1fr;
  }

  .tour__sticky {
    display: none;
  }

  .tour__step {
    min-height: 0;
    max-width: none;
    padding: 0 0 96px;
    opacity: 1;
    text-align: center;
  }

  .tour__step .facts {
    justify-items: center;
  }

  .tour__inline {
    display: block;
    margin: 48px auto 0;
  }

  .tour__inline.device {
    --w: min(290px, 74vw);
  }
}

/* ---------- Finrival AI spotlight ---------- */

.spotlight__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
}

.spotlight .h2 {
  margin-top: 14px;
}

.spotlight .lead {
  margin-top: 22px;
}

.spotlight__visual {
  position: relative;
  display: grid;
  justify-items: center;
}

.spotlight__device {
  --w: clamp(280px, 26vw, 340px);
}

.spotlight__visual::before {
  content: "";
  position: absolute;
  top: 10%;
  left: 50%;
  width: min(520px, 100%);
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(31, 181, 198, 0.12), rgba(52, 78, 128, 0.12) 50%, transparent);
  pointer-events: none;
}

@media (max-width: 900px) {
  .spotlight__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .spotlight .lead {
    margin-inline: auto;
  }

  .spotlight .facts {
    justify-items: center;
  }
}

/* ---------- More features ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: clamp(28px, 3.4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
}

.feature__icon {
  width: 28px;
  height: 28px;
  color: var(--gold);
}

.feature h3 {
  margin-top: 40px;
  font-size: clamp(24px, 2.2vw, 30px);
  font-weight: 650;
  letter-spacing: -0.035em;
}

.feature p {
  max-width: 460px;
  margin-top: 12px;
  color: var(--text-2);
  font-size: 17px;
}

.feature__meta {
  margin-top: auto;
  padding-top: 28px;
  color: var(--text-3);
  font-size: 14px;
  font-weight: 500;
}

@media (max-width: 960px) {
  .features {
    grid-template-columns: 1fr;
  }

  .feature {
    min-height: 0;
  }
}

/* ---------- Principles ---------- */

.principles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 32px;
}

.principle {
  padding-top: 24px;
  border-top: 1px solid var(--line-2);
}

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

.principle p {
  margin-top: 10px;
  color: var(--text-2);
  font-size: 15.5px;
}

.principle .link {
  margin-top: 14px;
  font-size: 15px;
}

@media (max-width: 1000px) {
  .principles {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .principles {
    grid-template-columns: 1fr;
  }
}

/* ---------- PRO ---------- */

.pro {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
  padding: clamp(32px, 6vw, 80px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(80% 100% at 0% 0%, rgba(216, 191, 131, 0.11), transparent 60%),
    linear-gradient(180deg, var(--surface-2), var(--bg-2));
}

.pro::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(237, 220, 178, 0.5), transparent);
}

.pro-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 600;
}

.pro-badge b {
  padding: 3px 9px;
  border: 1.5px solid rgba(216, 191, 131, 0.55);
  border-radius: 9px;
  background: rgba(216, 191, 131, 0.1);
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.pro .h2 {
  margin-top: 18px;
}

.pro .lead {
  margin-top: 20px;
}

.pro .btn {
  margin-top: 36px;
}

/* Free vs PRO, mirroring the paywall table in the app (no prices: they differ per country) */
.plans-card {
  padding: clamp(20px, 2.6vw, 32px);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  background: rgba(7, 10, 14, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 30px 60px -30px rgba(0, 0, 0, 0.7);
}

.plans {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 15.5px;
}

.plans th,
.plans td {
  padding: 16px 14px;
  border-bottom: 1px solid var(--line);
  font-weight: 400;
  text-align: left;
  vertical-align: middle;
}

.plans th:first-child {
  padding-left: 0;
}

.plans thead th {
  padding-top: 8px;
  padding-bottom: 14px;
  color: var(--text-3);
  font-size: 14px;
  font-weight: 500;
}

.plans thead th.is-pro {
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.plans tbody th {
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}

.plans__icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-right: 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-2);
  vertical-align: middle;
}

.plans__icon svg {
  width: 17px;
  height: 17px;
}

.plans td {
  color: var(--text-2);
}

@media (min-width: 1000px) {
  .plans td:not(.is-pro) {
    white-space: nowrap;
  }
}

.plans .is-pro {
  background: rgba(216, 191, 131, 0.07);
  color: var(--gold-2);
  font-weight: 500;
}

.plans thead .is-pro {
  border-radius: 14px 14px 0 0;
}

.plans tbody tr:last-child > * {
  border-bottom: 0;
}

.plans tbody tr:last-child .is-pro {
  border-radius: 0 0 14px 14px;
}

.plans__note {
  margin-top: 20px;
  color: var(--text-3);
  font-size: 13.5px;
}

.gold {
  color: var(--gold);
}

/* Phones: the table gets the full card width (long Polish and Turkish words need it) */
@media (max-width: 560px) {
  .pro {
    padding: 32px 18px;
  }

  .plans-card {
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
  }

  .plans {
    font-size: 13.5px;
    hyphens: auto;
    overflow-wrap: break-word;
  }

  .plans th,
  .plans td {
    padding: 11px 6px;
  }

  .plans .is-pro {
    padding-right: 8px;
    padding-left: 8px;
  }

  .plans__icon {
    display: none;
  }

  .plans tbody th {
    white-space: normal;
  }
}

@media (max-width: 900px) {
  .pro {
    grid-template-columns: 1fr;
  }
}

/* ---------- Inner page hero ---------- */

.page-hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(56px, 9vw, 120px)) 0 clamp(48px, 6vw, 80px);
  text-align: center;
}

.page-hero::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  z-index: -1;
  width: min(1100px, 140vw);
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(216, 191, 131, 0.1), rgba(52, 78, 128, 0.12) 50%, transparent);
  transform: translate(-50%, -30%);
  pointer-events: none;
}

.page-hero__title {
  margin-top: 18px;
}

.page-hero .lead {
  margin: 26px auto 0;
}

/* ---------- Product: the rising loop ---------- */

.loop {
  padding: clamp(24px, 4vw, 48px) 0 clamp(96px, 12vw, 160px);
}

.loop .container {
  position: relative;
}

.loop__steps {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 32px);
}

/* Each step sits higher than the one before, so the four steps read as a rising chart */
.loop__step {
  display: flex;
  flex-direction: column;
  padding-top: calc((3 - var(--i)) * clamp(40px, 5vw, 64px));
}

.loop__head {
  position: relative;
  padding-top: 34px;
  min-height: 150px;
}

.loop__dot {
  position: absolute;
  top: 0;
  left: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 6px rgba(216, 191, 131, 0.14), 0 0 24px rgba(216, 191, 131, 0.5);
}

.loop__num {
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}

.loop__title {
  margin-top: 6px;
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.loop__head p {
  max-width: 250px;
  margin-top: 10px;
  color: var(--text-2);
  font-size: 15.5px;
  line-height: 1.5;
}

.loop__device {
  --w: min(100%, 230px);
  margin-top: 28px;
}

.loop__line {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.loop__path {
  fill: none;
  stroke: url(#loop-grad);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  filter: drop-shadow(0 0 8px rgba(216, 191, 131, 0.35));
}

.loop__arrow {
  fill: #1fb5c6;
}

/* Drawing animation: the line runs through the steps, then each step appears */
.js .loop__path {
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 2s var(--ease-io);
}

.js .loop__arrow {
  opacity: 0;
  transition: opacity 0.4s var(--ease) 1.8s;
}

.js .loop__dot,
.js .loop__head > :not(.loop__dot),
.js .loop__device {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: calc(0.25s + var(--i) * 0.4s);
}

.js .loop__dot {
  transform: scale(0.3);
}

.js .loop__device {
  transition-delay: calc(0.45s + var(--i) * 0.4s);
}

.loop.is-drawn .loop__path {
  stroke-dashoffset: 0;
}

.loop.is-drawn .loop__arrow,
.loop.is-drawn .loop__dot,
.loop.is-drawn .loop__head > *,
.loop.is-drawn .loop__device {
  opacity: 1;
  transform: none;
}

/* Phones and tablets: a vertical timeline, the line runs down the left */
@media (max-width: 900px) {
  .loop__steps {
    grid-template-columns: 1fr;
    gap: 56px;
    padding-left: 34px;
  }

  .loop__steps::before {
    content: "";
    position: absolute;
    top: 6px;
    bottom: 40px;
    left: 6px;
    width: 2px;
    border-radius: 2px;
    background: linear-gradient(180deg, #8c7444, var(--gold) 55%, #1fb5c6);
  }

  .loop__step {
    padding-top: 0;
  }

  .loop__head {
    min-height: 0;
    padding-top: 0;
  }

  .loop__dot {
    top: 2px;
    left: -34px;
  }

  .loop__head p {
    max-width: 420px;
  }

  .loop__device {
    --w: min(260px, 72vw);
  }

  .loop__line {
    display: none;
  }
}

/* ---------- Product: index of everything in the app ---------- */

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

.index__head {
  position: sticky;
  top: calc(var(--header-h) + 32px);
}

.index__head .h2 {
  margin-top: 14px;
}

.index__list > div {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 24px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.index__list > div:last-child {
  border-bottom: 1px solid var(--line);
}

.index__list dt {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.index__list dd {
  margin: 0;
  color: var(--text-2);
  font-size: 16.5px;
}

@media (max-width: 900px) {
  .index {
    grid-template-columns: 1fr;
  }

  .index__head {
    position: static;
  }
}

@media (max-width: 560px) {
  .index__list > div {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

/* ---------- Product: what it isn't ---------- */

.nots {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px 48px;
  padding: clamp(28px, 4vw, 44px) clamp(24px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
}

.nots__title {
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.nots__list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
}

.nots__list li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-2);
  font-size: 16px;
}

.nots__list span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(255, 107, 122, 0.35);
  border-radius: 50%;
  color: var(--down);
  font-size: 11px;
}

@media (max-width: 900px) {
  .nots {
    grid-template-columns: 1fr;
  }

  .nots__list {
    flex-direction: column;
  }
}

/* ---------- AI: a real answer, replayed ---------- */

.demo {
  padding: clamp(24px, 4vw, 48px) 0 clamp(96px, 12vw, 160px);
}

.demo__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
}

.demo__copy .h2 {
  margin-top: 14px;
}

.demo__source {
  margin-top: 16px;
  color: var(--text-3);
  font-size: 15px;
}

.demo__notes {
  counter-reset: note;
  display: grid;
  gap: 4px;
  margin-top: 36px;
}

.demo__notes li {
  counter-increment: note;
  position: relative;
  padding: 14px 0 14px 46px;
  border-top: 1px solid var(--line);
  opacity: 0.35;
  transition: opacity 0.5s var(--ease);
}

.demo__notes li::before {
  content: counter(note);
  position: absolute;
  left: 0;
  top: 14px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  color: var(--text-3);
  font-size: 13px;
  font-weight: 600;
  transition: background-color 0.4s, border-color 0.4s, color 0.4s;
}

.demo__notes li.is-on {
  opacity: 1;
}

.demo__notes li.is-current::before {
  border-color: var(--gold);
  background: var(--gold);
  color: #17130a;
}

.demo__notes b {
  display: block;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.demo__notes span {
  display: block;
  margin-top: 4px;
  color: var(--text-2);
  font-size: 15px;
}

.no-js .demo__notes li,
html:not(.js) .demo__notes li {
  opacity: 1;
}

.demo__replay {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  color: var(--gold);
  font-size: 15px;
  font-weight: 500;
}

.demo__replay svg {
  width: 16px;
  height: 16px;
}

.demo__visual {
  position: relative;
  display: grid;
  justify-items: center;
}

.demo__visual::before {
  content: "";
  position: absolute;
  top: 8%;
  left: 50%;
  width: min(520px, 100%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(216, 191, 131, 0.12), rgba(52, 78, 128, 0.12) 50%, transparent);
  transform: translateX(-50%);
  pointer-events: none;
}

.demo__device {
  --w: clamp(300px, 28vw, 360px);
}

@media (max-width: 900px) {
  .demo__grid {
    grid-template-columns: 1fr;
  }

  .demo__visual {
    order: -1;
  }

  .demo__copy {
    order: -2;
  }

  .demo__device {
    --w: min(340px, 86vw);
  }
}

/* The replayed chat: built in HTML so it can speak all three languages,
   styled after the app's Finrival AI sheet (build 83) */
.chat-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  aspect-ratio: 720 / 1565;
  overflow: hidden;
  border-radius: calc(var(--w) * 0.132);
  background: #080f15;
  color: #eef1f4;
  font-size: calc(var(--screen) * 0.041);
  line-height: 1.45;
  letter-spacing: -0.005em;
  text-align: left;
}

.cs-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.95em 1.9em 0.5em;
  font-size: 1.02em;
  font-weight: 600;
}

.cs-status__icons {
  display: flex;
  align-items: center;
  gap: 0.35em;
}

.cs-status__icons svg {
  width: auto;
  height: 0.72em;
  fill: currentColor;
}

.cs-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.6em;
  padding: 0.55em 1em 0.75em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #0b131a;
}

.cs-head img {
  width: 2.4em;
  height: 2.4em;
  border-radius: 0.6em;
}

.cs-head__title b {
  display: block;
  font-size: 1.12em;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.cs-head__title em {
  color: var(--gold);
  font-style: normal;
}

.cs-head__title small {
  display: block;
  overflow: hidden;
  color: #b9c0c8;
  font-size: 0.66em;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.cs-round {
  display: grid;
  place-items: center;
  width: 2.1em;
  height: 2.1em;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  color: #c9ced4;
  font-size: 0.95em;
}

.cs-tabs {
  display: flex;
  gap: 0.5em;
  overflow: hidden;
  padding: 0.6em 1em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
}

.cs-tabs span {
  flex: none;
  padding: 0.45em 0.75em;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.8em;
  color: #c9ced4;
  font-size: 0.8em;
  font-weight: 600;
}

.cs-tabs i {
  margin-left: 0.4em;
  color: #8b939c;
  font-style: normal;
}

.cs-tabs .is-active {
  max-width: 10.5em;
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  text-overflow: ellipsis;
}

.cs-tabs__new {
  border-color: transparent !important;
  background: rgba(216, 191, 131, 0.1);
  color: var(--gold) !important;
}

.cs-body {
  position: relative;
  flex: 1;
  overflow: hidden;
}

.cs-scroll {
  position: relative;
  padding: 1em 1em 1.4em;
  transition: transform 0.9s var(--ease);
}

.cs-q {
  width: fit-content;
  max-width: 82%;
  margin-left: auto;
  padding: 0.75em 0.95em;
  border: 1px solid rgba(216, 191, 131, 0.3);
  border-radius: 1em;
  background: #1c1e20;
  font-size: 0.93em;
}

.cs-thinking {
  display: none;
  align-items: center;
  gap: 0.55em;
  width: fit-content;
  margin: 1em 0 0 2.1em;
  padding: 0.65em 1em;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1em;
  background: rgba(255, 255, 255, 0.05);
  color: #b9c0c8;
  font-size: 0.88em;
  font-style: italic;
}

.cs-spinner {
  width: 0.95em;
  height: 0.95em;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: #e6e9ec;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.cs-answer {
  padding-left: 2.1em;
}

.cs-answer p {
  margin-top: 0.9em;
  font-size: 0.93em;
}

/* PRO answer layout, as in the app: verdict card, labelled sections, quiet disclaimer */
.cs-answer .cs-verdict {
  margin-top: 1em;
  padding: 0.85em 1em 0.95em;
  border: 1px solid rgba(216, 191, 131, 0.3);
  border-radius: 1em;
  background: rgba(216, 191, 131, 0.07);
}

.cs-verdict__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6em;
}

.cs-verdict__top span {
  color: #9aa2ab;
  font-size: 0.66em;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cs-verdict__top em {
  padding: 0.2em 0.7em;
  border: 1px solid rgba(154, 162, 171, 0.45);
  border-radius: 99em;
  color: #c3c9cf;
  font-size: 0.6em;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.cs-answer .cs-verdict p {
  margin-top: 0.5em;
  font-size: 0.96em;
  font-weight: 600;
  line-height: 1.38;
}

.cs-sec {
  margin-top: 1.25em;
}

.cs-sec h4 {
  color: var(--gold);
  font-size: 0.64em;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cs-answer .cs-sec p {
  position: relative;
  margin-top: 0.55em;
  padding-left: 1em;
  color: #d3d8dd;
  font-size: 0.86em;
}

.cs-sec p::before {
  content: "";
  position: absolute;
  left: 0.05em;
  top: 0.62em;
  width: 0.34em;
  height: 0.34em;
  border-radius: 50%;
  background: var(--gold);
}

.cs-sec b {
  color: #fff;
  font-weight: 700;
}

.cs-sec b:empty {
  display: none;
}

.cs-answer .cs-disclaimer {
  margin-top: 1.1em;
  padding-top: 0.7em;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #9aa2ab;
  font-size: 0.74em;
}

.cs-disclaimer + .cs-report {
  border-top: 0;
  padding-top: 0;
}

.cs-foot .cs-remaining--pro {
  color: var(--gold);
}

.cs-report {
  display: flex;
  align-items: center;
  gap: 0.45em;
  width: fit-content;
  padding-top: 0.6em;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #8b939c;
  font-size: 0.78em !important;
}

.cs-report svg {
  width: 1em;
  height: 1em;
}

.cs-follow {
  margin-top: 1.5em;
}

.cs-follow b {
  display: block;
  font-size: 0.9em;
}

.cs-follow small {
  display: block;
  margin-top: 0.3em;
  color: #9aa2ab;
  font-size: 0.74em;
  line-height: 1.45;
}

.cs-follow span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6em;
  margin-top: 0.55em;
  padding: 0.75em 0.9em;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.8em;
  font-size: 0.82em;
}

.cs-follow i {
  color: var(--gold);
  font-style: normal;
}

.cs-foot {
  padding: 0.7em 1em 1.7em;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: #080f15;
}

.cs-foot small {
  display: block;
  color: #9aa2ab;
  font-size: 0.68em;
}

.cs-foot b {
  display: block;
  margin: 0.25em 0 0.55em 0.3em;
  color: #9aa2ab;
  font-size: 0.7em;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.cs-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45em 0.45em 0.45em 1em;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.4em;
  color: #9aa2ab;
  font-size: 0.9em;
}

.cs-input span {
  display: grid;
  place-items: center;
  width: 1.9em;
  height: 1.9em;
  border-radius: 50%;
  background: #3a3f45;
  color: #e6e9ec;
}

/* Replay states, driven by site.js. Without JS the finished chat is shown */
.js .chat-screen .cs-q,
.js .chat-screen .cs-step {
  opacity: 0;
  transform: translateY(0.6em);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.js .chat-screen.is-q .cs-q,
.js .chat-screen .cs-step.is-shown {
  opacity: 1;
  transform: none;
}

.chat-screen.is-thinking .cs-thinking {
  display: inline-flex;
}

/* ---------- AI: where a question starts ---------- */

.modes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.mode {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
}

.mode h3 {
  font-size: 21px;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.mode p {
  margin-top: 6px;
  color: var(--text-3);
  font-size: 15px;
}

.mode span {
  align-self: flex-start;
  margin-top: 22px;
  padding: 9px 14px;
  border: 1px solid rgba(216, 191, 131, 0.28);
  border-radius: 14px 14px 14px 4px;
  background: rgba(216, 191, 131, 0.06);
  color: var(--gold-2);
  font-size: 15px;
}

@media (max-width: 960px) {
  .modes {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .modes {
    grid-template-columns: 1fr;
  }
}

/* ---------- AI: Free and PRO ---------- */

.tiers__title {
  margin-bottom: clamp(32px, 4vw, 48px);
}

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

.tier {
  padding: clamp(28px, 3.4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
}

.tier--pro {
  border-color: rgba(216, 191, 131, 0.28);
  background:
    radial-gradient(90% 90% at 100% 0%, rgba(216, 191, 131, 0.12), transparent 60%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
}

.tier__name {
  color: var(--text-3);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.tier--pro .tier__name {
  color: var(--gold);
}

.tier b {
  display: block;
  margin-top: 18px;
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.tier p {
  margin-top: 12px;
  color: var(--text-2);
  font-size: 16.5px;
}

.tier .link {
  margin-top: 20px;
  color: var(--gold);
}

@media (max-width: 760px) {
  .tiers {
    grid-template-columns: 1fr;
  }
}

/* ---------- PRO: the Free / PRO switch ---------- */

.flip {
  padding: clamp(16px, 3vw, 32px) 0 clamp(96px, 12vw, 160px);
}

.flip__switch {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 280px;
  margin: 0 auto clamp(40px, 5vw, 64px);
  padding: 5px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.flip__switch button {
  position: relative;
  z-index: 1;
  height: 48px;
  border-radius: 999px;
  color: var(--text-2);
  font-size: 16px;
  font-weight: 650;
  letter-spacing: 0.04em;
  transition: color 0.4s var(--ease);
}

.flip__switch button[aria-pressed="true"] {
  color: #0b0d10;
}

.flip__thumb {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 5px;
  width: calc(50% - 5px);
  border-radius: 999px;
  background: var(--text);
  transition: transform 0.5s var(--ease-io), background-color 0.5s var(--ease);
}

.flip.is-pro .flip__thumb {
  transform: translateX(100%);
  background: var(--gold);
  box-shadow: 0 8px 30px -8px rgba(216, 191, 131, 0.6);
}

.flip__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.flip__card {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  transition: border-color 0.6s var(--ease);
}

.flip.is-pro .flip__card {
  border-color: rgba(216, 191, 131, 0.22);
}

.flip__card--wide {
  grid-column: span 2;
}

.flip__card header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.flip__card header svg {
  width: 20px;
  height: 20px;
  color: var(--gold);
}

.flip__card h3 {
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.025em;
}

.flip__value {
  margin-top: auto;
  padding-top: 24px;
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.15;
  transition: color 0.5s var(--ease);
}

.flip.is-pro .flip__value {
  color: var(--gold-2);
}

.flip__note {
  margin-top: 8px;
  color: var(--text-3);
  font-size: 15px;
}

.flip .v-pro,
.flip.is-pro .v-free {
  display: none;
}

.flip.is-pro .v-pro {
  display: inline;
}

/* Shared "locked in Free, unlocked in PRO" look for the small visuals */
.viz-dots,
.viz-grid,
.viz-chips,
.viz-feed {
  margin-top: 28px;
}

.viz-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.viz-dots i {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gold);
}

.viz-dots .x,
.viz-grid .x {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--line-2);
  transition: background-color 0.5s var(--ease), box-shadow 0.5s var(--ease), opacity 0.5s var(--ease);
}

.flip.is-pro .viz-dots .x {
  background: var(--gold);
  box-shadow: none;
}

.flip.is-pro .viz-dots .x:nth-child(6) { opacity: 0.9; transition-delay: 0.05s; }
.flip.is-pro .viz-dots .x:nth-child(7) { opacity: 0.75; transition-delay: 0.1s; }
.flip.is-pro .viz-dots .x:nth-child(8) { opacity: 0.6; transition-delay: 0.15s; }
.flip.is-pro .viz-dots .x:nth-child(9) { opacity: 0.45; transition-delay: 0.2s; }
.flip.is-pro .viz-dots .x:nth-child(10) { opacity: 0.32; transition-delay: 0.25s; }
.flip.is-pro .viz-dots .x:nth-child(11) { opacity: 0.2; transition-delay: 0.3s; }
.flip.is-pro .viz-dots .x:nth-child(12) { opacity: 0.1; transition-delay: 0.35s; }

.viz-grid {
  display: grid;
  grid-template-columns: repeat(5, 18px);
  gap: 7px;
}

.viz-grid i {
  height: 18px;
  border-radius: 5px;
  background: var(--gold);
}

.flip.is-pro .viz-grid .x {
  background: var(--gold);
  box-shadow: none;
}

.flip.is-pro .viz-grid .x:nth-child(n + 6):nth-child(-n + 10) { transition-delay: 0.05s; }
.flip.is-pro .viz-grid .x:nth-child(n + 11):nth-child(-n + 15) { transition-delay: 0.12s; }
.flip.is-pro .viz-grid .x:nth-child(n + 16):nth-child(-n + 20) { transition-delay: 0.19s; }
.flip.is-pro .viz-grid .x:nth-child(n + 21) { transition-delay: 0.26s; }

.viz-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.viz-chips span {
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  transition: color 0.5s var(--ease), border-color 0.5s var(--ease), background-color 0.5s var(--ease);
}

.viz-chips .base {
  border: 1px solid rgba(216, 191, 131, 0.5);
  background: rgba(216, 191, 131, 0.1);
  color: var(--gold-2);
}

.viz-chips .x {
  border: 1px dashed var(--line-3);
  color: var(--text-3);
}

.flip.is-pro .viz-chips .x {
  border-style: solid;
  border-color: rgba(216, 191, 131, 0.5);
  background: rgba(216, 191, 131, 0.1);
  color: var(--gold-2);
}

.viz-feed {
  display: grid;
  gap: 7px;
  max-width: 220px;
}

.viz-feed i {
  height: 10px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.1);
}

.viz-feed i:nth-child(2) {
  width: 70%;
}

.viz-feed b {
  display: grid;
  place-items: center;
  height: 34px;
  overflow: hidden;
  border: 1px dashed var(--line-3);
  border-radius: 8px;
  color: var(--text-3);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  transition: height 0.5s var(--ease-io), opacity 0.4s var(--ease), border-color 0.4s;
}

.flip.is-pro .viz-feed b {
  height: 0;
  opacity: 0;
  border-color: transparent;
}

@media (max-width: 960px) {
  .flip__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .flip__grid {
    grid-template-columns: 1fr;
  }

  .flip__card--wide {
    grid-column: auto;
  }

  .flip__switch {
    width: min(280px, 100%);
  }
}

/* ---------- PRO: plans and questions ---------- */

.tiers--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .tiers--three {
    grid-template-columns: 1fr;
  }
}

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

.faq .h2 {
  margin-top: 14px;
}

.faq__list details {
  border-top: 1px solid var(--line);
}

.faq__list details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq__list summary {
  position: relative;
  padding: 22px 40px 22px 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  list-style: none;
  cursor: pointer;
}

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

.faq__list summary::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 12px;
  height: 12px;
  border-right: 1.6px solid var(--text-3);
  border-bottom: 1.6px solid var(--text-3);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.3s var(--ease);
}

.faq__list details[open] summary::after {
  transform: translateY(-30%) rotate(225deg);
}

.faq__list p {
  max-width: 620px;
  padding-bottom: 24px;
  color: var(--text-2);
  font-size: 16.5px;
}

@media (max-width: 900px) {
  .faq {
    grid-template-columns: 1fr;
  }
}

/* ---------- Legal documents ---------- */

.doc-hero {
  padding-bottom: clamp(40px, 5vw, 64px);
}

.doc-hero__meta {
  margin-top: 22px;
  color: var(--text-3);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.doc {
  padding-bottom: clamp(96px, 12vw, 160px);
}

.doc__grid {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}

.doc__aside {
  position: sticky;
  top: calc(var(--header-h) + 28px);
  max-height: calc(100vh - var(--header-h) - 56px);
  overflow-y: auto;
  scrollbar-width: thin;
}

.doc__toc summary {
  margin-bottom: 14px;
  color: var(--text-3);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  list-style: none;
  pointer-events: none;
}

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

.doc__toc ol {
  counter-reset: toc;
  display: grid;
  gap: 2px;
  padding-left: 0;
  border-left: 1px solid var(--line);
}

.doc__toc li {
  counter-increment: toc;
}

.doc__toc a {
  display: grid;
  grid-template-columns: 26px 1fr;
  margin-left: -1px;
  padding: 6px 0 6px 14px;
  border-left: 1px solid transparent;
  color: var(--text-3);
  font-size: 14px;
  line-height: 1.4;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.doc__toc a::before {
  content: counter(toc, decimal-leading-zero);
  color: var(--text-3);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  opacity: 0.7;
}

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

.doc__toc a.is-active {
  border-left-color: var(--gold);
  color: var(--text);
}

.doc__toc a.is-active::before {
  color: var(--gold);
  opacity: 1;
}

.doc__body {
  counter-reset: section;
  max-width: 720px;
}

.doc__body section {
  counter-increment: section;
  padding-top: 56px;
  scroll-margin-top: calc(var(--header-h) + 8px);
}

.doc__body section:first-of-type {
  padding-top: 24px;
}

.doc__body h2 {
  scroll-margin-top: calc(var(--header-h) + 24px);
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.doc__body h2::before {
  content: counter(section, decimal-leading-zero);
  display: block;
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}

.doc__body h3 {
  margin-top: 32px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.doc__body p,
.doc__body li,
.doc__body dd {
  color: var(--text-2);
  font-size: 16.5px;
  line-height: 1.7;
}

.doc__body p {
  margin-top: 14px;
}

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

.doc__body a {
  color: var(--gold-2);
  text-decoration: underline;
  text-decoration-color: rgba(216, 191, 131, 0.35);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}

.doc__body a:hover {
  text-decoration-color: var(--gold-2);
}

.doc__body ul {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.doc__body ul li {
  position: relative;
  padding-left: 22px;
}

.doc__body ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.8;
}

.defs {
  display: grid;
  margin-top: 18px;
  border-top: 1px solid var(--line);
}

.defs dt {
  padding-top: 18px;
  color: var(--text);
  font-size: 16.5px;
  font-weight: 600;
}

.defs dd {
  margin: 6px 0 0;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.callout {
  margin-top: 20px;
  padding: 18px 20px;
  border: 1px solid rgba(216, 191, 131, 0.28);
  border-radius: 16px;
  background: rgba(216, 191, 131, 0.07);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
}

.contact-card {
  margin-top: 20px;
  padding: 22px 24px;
  border: 1px solid var(--line-2);
  border-radius: 18px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
}

.contact-card span {
  color: var(--text-3);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact-card b {
  display: block;
  margin-top: 6px;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.contact-card p {
  margin-top: 8px;
}

.doc-note {
  margin-bottom: 8px;
  padding: 14px 18px;
  border: 1px dashed var(--line-3);
  border-radius: 14px;
  color: var(--text-3) !important;
  font-size: 14.5px !important;
}

.glance {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.glance__item {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
}

.glance__item b {
  display: block;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.glance__item span {
  display: block;
  margin-top: 6px;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.55;
}

/* Delete Account: the two ways to delete */
.paths {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 8px;
}

.path {
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
}

.path--web {
  border-color: rgba(216, 191, 131, 0.28);
  background:
    radial-gradient(90% 90% at 100% 0%, rgba(216, 191, 131, 0.1), transparent 60%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
}

.path__tag {
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.path h3 {
  margin-top: 10px;
  font-size: 21px;
  letter-spacing: -0.03em;
}

.path__steps {
  counter-reset: step;
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.path__steps li {
  counter-increment: step;
  position: relative;
  padding-left: 40px;
}

.path__steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(216, 191, 131, 0.45);
  border-radius: 50%;
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
}

.path__steps b {
  display: block;
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
}

.path__steps span {
  display: block;
  color: var(--text-2);
  font-size: 15px;
}

.path p {
  margin-top: 12px;
}

.doc__body .path .btn {
  align-self: flex-start;
  margin-top: 20px;
  color: #17130a;
  text-decoration: none;
}

.path small {
  margin-top: 12px;
  color: var(--text-3);
  font-size: 13px;
}

@media (max-width: 900px) {
  .doc__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .doc__aside {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .doc__toc {
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 14px 18px;
  }

  .doc__toc summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    pointer-events: auto;
    cursor: pointer;
  }

  .doc__toc summary::after {
    content: "";
    width: 7px;
    height: 7px;
    margin: -4px 4px 0 0;
    border-right: 1.5px solid var(--text-3);
    border-bottom: 1.5px solid var(--text-3);
    transform: rotate(45deg);
    transition: transform 0.3s var(--ease);
  }

  .doc__toc[open] summary::after {
    margin-top: 4px;
    transform: rotate(-135deg);
  }

  .doc__toc[open] summary {
    margin-bottom: 12px;
  }

  .glance,
  .paths {
    grid-template-columns: 1fr;
  }
}

/* ---------- Support ---------- */

.help-contact {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  align-items: center;
  gap: 32px 56px;
  padding: clamp(28px, 4.5vw, 56px);
  border: 1px solid rgba(216, 191, 131, 0.24);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(70% 100% at 0% 0%, rgba(216, 191, 131, 0.12), transparent 60%),
    linear-gradient(180deg, var(--surface-2), var(--bg-2));
}

.help-contact__title {
  margin-top: 12px;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.help-contact p {
  margin-top: 12px;
  color: var(--text-2);
  font-size: 17px;
}

.help-contact__actions {
  display: grid;
  justify-items: start;
}

.help-contact__warn {
  display: flex;
  gap: 10px;
  margin-top: 18px !important;
  color: var(--text-3) !important;
  font-size: 14.5px !important;
}

.help-contact__warn svg {
  flex: none;
  width: 17px;
  height: 17px;
  margin-top: 2px;
  color: var(--gold);
}

.topics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.topic {
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.topic:hover {
  border-color: rgba(216, 191, 131, 0.35);
  transform: translateY(-2px);
}

.topic svg {
  width: 24px;
  height: 24px;
  color: var(--gold);
}

.topic b {
  margin-top: 26px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.topic span {
  margin-top: 6px;
  color: var(--text-2);
  font-size: 15px;
}

.doc-links {
  display: grid;
  border-top: 1px solid var(--line);
}

.doc-links a {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  transition: color 0.25s;
}

.doc-links b {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.doc-links span {
  color: var(--text-2);
  font-size: 16px;
}

.doc-links svg {
  width: 20px;
  height: 20px;
  color: var(--text-3);
  transition: transform 0.3s var(--ease), color 0.3s;
}

.doc-links a:hover svg {
  transform: translateX(4px);
  color: var(--gold);
}

@media (max-width: 900px) {
  .help-contact {
    grid-template-columns: 1fr;
  }

  .topics {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .topics {
    grid-template-columns: 1fr;
  }

  .doc-links a {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 16px;
  }

  .doc-links span {
    grid-row: 2;
  }

  .doc-links svg {
    grid-row: 1 / 3;
    grid-column: 2;
  }
}

/* ---------- Final CTA ---------- */

.cta {
  position: relative;
  text-align: center;
}

.cta__icon {
  width: 88px;
  height: 88px;
  margin: 0 auto 36px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: linear-gradient(160deg, #18212c, #0b1118);
  box-shadow: inset 0 0 0 1px var(--line-2), 0 30px 60px -20px rgba(216, 191, 131, 0.25);
}

.cta__icon svg {
  width: 44px;
  height: 44px;
}

.cta .lead {
  margin: 22px auto 0;
}

.cta .stores {
  justify-content: center;
  margin-top: 40px;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: clamp(64px, 8vw, 104px) 0 40px;
  border-top: 1px solid var(--line);
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 48px;
}

.footer__brand img {
  width: auto;
  height: 26px;
}

.footer__brand p {
  max-width: 320px;
  margin-top: 18px;
  color: var(--text-3);
  font-size: 14.5px;
}

.footer__col h4 {
  font-size: 14px;
  font-weight: 600;
}

.footer__col ul {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.footer__col a {
  color: var(--text-2);
  font-size: 14.5px;
  transition: color 0.25s;
}

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

.footer__bottom {
  display: grid;
  gap: 14px;
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: 12.5px;
  line-height: 1.65;
}

.footer__bottom-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-2);
}

@media (max-width: 900px) {
  .footer__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px 24px;
  }
}

/* ---------- Scroll reveal ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: var(--d, 0s);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
