/* Helvetica Now. Files in _local-fonts/ are under a DESKTOP license: preview only, never deploy
   (excluded via .vercelignore). For production, buy the web-font license and drop woff2 files in fonts/. */
@font-face { font-family: 'HN Display'; src: local('Helvetica Now Display'), local('HelveticaNowDisplay-Regular'), url('fonts/HelveticaNowDisplay-Regular.woff2') format('woff2'), url('_local-fonts/HelveticaNowDisplay-Regular.otf') format('opentype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'HN Display'; src: local('Helvetica Now Display Medium'), local('HelveticaNowDisplay-Md'), url('fonts/HelveticaNowDisplay-Md.woff2') format('woff2'), url('_local-fonts/HelveticaNowDisplay-Md.otf') format('opentype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'HN Display'; src: local('Helvetica Now Display Bold'), local('HelveticaNowDisplay-Bd'), url('fonts/HelveticaNowDisplay-Bd.woff2') format('woff2'), url('_local-fonts/HelveticaNowDisplay-Bd.otf') format('opentype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'HN Text'; src: local('Helvetica Now Text'), local('HelveticaNowText-Regular'), url('fonts/HelveticaNowText-Regular.woff2') format('woff2'), url('_local-fonts/HelveticaNowText-Regular.otf') format('opentype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'HN Text'; src: local('Helvetica Now Text Medium'), local('HelveticaNowText-Medium'), url('fonts/HelveticaNowText-Medium.woff2') format('woff2'), url('_local-fonts/HelveticaNowText-Medium.otf') format('opentype'); font-weight: 500; font-display: swap; }

/* Shared tokens + primitives for the landing page and the /apply funnel */
:root {
  --ink: #0b0b0c;
  --ink-2: #141416;
  --ink-3: #1c1c1f;
  --paper: #ffffff;
  --paper-2: #f4f3f1;
  --paper-3: #eae8e4;
  --text: #0b0b0c;
  --text-2: rgba(11, 11, 12, 0.62);
  --on-dark: #f5f5f4;
  --on-dark-2: rgba(245, 245, 244, 0.64);
  --on-dark-3: rgba(245, 245, 244, 0.4);
  --line-dark: rgba(255, 255, 255, 0.09);
  --line-light: rgba(11, 11, 12, 0.1);
  --orange: #f7500f;
  --orange-2: #ff7a3d;
  --orange-ink: #1b1310;

  --font: 'HN Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --display: 'HN Display', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --mono: var(--font);
  --ease-rev: cubic-bezier(0.15, 0.5, 0.5, 1);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-pill: 9999px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);

  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'kern', 'tnum' 0;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--orange); color: #fff; }

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

.logo { display: inline-flex; align-items: center; color: currentColor; }
.logo svg { height: 22px; width: auto; fill: currentColor; }

/* Buttons: pill, Revolut-style. Primary is solid ink on light, white on dark. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 24px; border-radius: var(--r-pill);
  font-size: 16px; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap;
  transition: transform 0.3s var(--ease-rev), background-color 0.3s var(--ease-rev), color 0.3s, box-shadow 0.3s var(--ease-rev);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn--sm { height: 40px; padding: 0 18px; font-size: 15px; }
.btn--lg { height: 56px; padding: 0 30px; font-size: 17px; }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: #2a2a2e; }
.btn--white { background: #fff; color: var(--ink); box-shadow: 0 3px 10px rgba(255,255,255,0.28); }
.btn--white:hover { background: #ececea; }
.btn--orange { background: linear-gradient(180deg, #ff6a2b, var(--orange)); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 10px 30px -10px rgba(247,80,15,0.7); }
.btn--orange:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 14px 40px -10px rgba(247,80,15,0.85); }
.btn--ghost-dark { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--ghost-dark:hover { background: rgba(11, 11, 12, 0.05); }
.btn--ghost-light { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.5); }
.btn--ghost-light:hover { box-shadow: inset 0 0 0 1.5px #fff; }
.btn .arr { transition: transform 0.25s var(--ease-out); }
.btn:hover .arr { transform: translateX(3px); }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; letter-spacing: -0.005em; }
.eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
h1, h2, h3, .display { font-family: var(--display); }
.num { font-family: var(--display); font-variant-numeric: tabular-nums; }

/* Film grain + glow helpers */
.grain { position: relative; isolation: isolate; }
.grain::after { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; background-image: var(--grain); opacity: 0.07; mix-blend-mode: overlay; }
.grain > * { position: relative; z-index: 1; }
.glow { position: absolute; z-index: 0; pointer-events: none; border-radius: 50%; filter: blur(60px); opacity: 0.9; }

/* Split CTA (label + arrow tile), micro1-style */
.btn--split { padding: 0 6px 0 24px; gap: 14px; }
.btn--split .tile { width: 40px; height: 40px; border-radius: var(--r-pill); display: grid; place-items: center; background: rgba(255,255,255,0.18); transition: transform 0.35s var(--ease-rev), background 0.3s; }
.btn--lg.btn--split .tile { width: 44px; height: 44px; }
.btn--split .tile svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn--split:hover .tile { transform: translateX(2px); }
.btn--white.btn--split .tile, .btn--ink.btn--split .tile { background: rgba(127,127,127,0.14); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* The language picker (site/i18n/languages.js puts it in the top bar of a country with more than one language). */
.langpick { position: relative; margin-left: auto; font-size: 14px; font-weight: 500; }
.langpick + .mzalt, .langpick + .mzbtn { margin-left: 0; }
.langpick summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 99px; border: 1px solid rgba(11,11,12,.16); color: inherit; }
.langpick summary::-webkit-details-marker { display: none; }
.langpick summary::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.langpick[open] summary::after { transform: translateY(1px) rotate(225deg); }
.langpick__list { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 80; min-width: 170px; padding: 6px; border-radius: 14px; background: #fff; color: #0b0b0c; box-shadow: 0 12px 32px rgba(11,11,12,.16), 0 0 0 1px rgba(11,11,12,.06); display: grid; }
.langpick__list a { padding: 10px 12px; border-radius: 9px; color: #0b0b0c; text-decoration: none; }
.langpick__list a:hover, .langpick__list a:focus-visible { background: rgba(11,11,12,.06); }
.langpick__list a[aria-current] { font-weight: 600; }
.ap__top .langpick { margin-left: auto; margin-right: 12px; }
.ap__top .langpick summary { border-color: rgba(255,255,255,.24); }
@media (max-width: 640px) { .langpick summary { height: 32px; padding: 0 10px; } }
.topbar__r .langpick { margin-left: 0; margin-inline-end: 8px; }
.topbar__r .langpick summary { height: 32px; border-color: rgba(255,255,255,.28); }
