/* getdaytracker.com — the app's own "Meridian" design system on the web.
   Tokens mirror apps/mobile/src/theme (colors.ts darkColors, tokens.ts radius/space) in the app repo,
   and the .app-* components re-create the app's tracker card, status pills, stat chips and widgets.
   Mobile-first; logical properties so Arabic, Hebrew and Persian (RTL) mirror correctly. */

/* Inter (OFL): latin, latin-ext, cyrillic, cyrillic-ext, greek, vietnamese. Vazirmatn (OFL): Arabic script. */
@font-face { font-family: Inter; font-weight: 500; font-display: swap; src: url(/fonts/inter-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Inter; font-weight: 800; font-display: swap; src: url(/fonts/inter-latin-800-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Inter; font-weight: 500; font-display: swap; src: url(/fonts/inter-latin-ext-500-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Inter; font-weight: 800; font-display: swap; src: url(/fonts/inter-latin-ext-800-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Inter; font-weight: 500; font-display: swap; src: url(/fonts/inter-cyrillic-500-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Inter; font-weight: 800; font-display: swap; src: url(/fonts/inter-cyrillic-800-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Inter; font-weight: 500; font-display: swap; src: url(/fonts/inter-cyrillic-ext-500-normal.woff2) format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: Inter; font-weight: 800; font-display: swap; src: url(/fonts/inter-cyrillic-ext-800-normal.woff2) format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: Inter; font-weight: 500; font-display: swap; src: url(/fonts/inter-greek-500-normal.woff2) format('woff2'); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: Inter; font-weight: 800; font-display: swap; src: url(/fonts/inter-greek-800-normal.woff2) format('woff2'); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: Inter; font-weight: 500; font-display: swap; src: url(/fonts/inter-vietnamese-500-normal.woff2) format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: Inter; font-weight: 800; font-display: swap; src: url(/fonts/inter-vietnamese-800-normal.woff2) format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: Vazirmatn; font-weight: 500; font-display: swap; src: url(/fonts/vazirmatn-arabic-500-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: Vazirmatn; font-weight: 800; font-display: swap; src: url(/fonts/vazirmatn-arabic-800-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }

:root {
  /* Meridian (app: palette + darkColors) */
  --bg: #07090d;
  --bg-2: #0f131a;
  --surface: #161b24;
  --surface-2: #1f2631;
  --border: rgba(244, 241, 234, 0.08);
  --border-2: rgba(244, 241, 234, 0.16);
  --text: #f4f1ea;
  --text-2: rgba(244, 241, 234, 0.66);
  --text-3: rgba(244, 241, 234, 0.42);
  --lime: #d4ff3a;
  --on-lime: #0b0e05;
  --lime-soft: rgba(212, 255, 58, 0.14);
  --violet: #8e7dff;
  --violet-soft: rgba(142, 125, 255, 0.18);
  --jade: #3ddc97;
  --jade-soft: rgba(61, 220, 151, 0.16);
  --amber: #ffb547;
  --red: #ff5a6a;
  --glass: rgba(15, 19, 26, 0.62);
  --glass-border: rgba(244, 241, 234, 0.12);
  /* radius (app tokens.ts) */
  --r-sm: 10px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px; --r-sheet: 32px;
  --max: 1180px;
  --font: Inter, Vazirmatn, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans', 'Helvetica Neue',
    'PingFang SC', 'PingFang TC', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Apple SD Gothic Neo',
    'Microsoft YaHei', 'Microsoft JhengHei', 'Malgun Gothic', 'Yu Gothic', 'Noto Sans CJK SC', 'Noto Sans Thai',
    'Noto Sans Devanagari', 'Noto Sans Hebrew', Tahoma, sans-serif;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; overflow-x: clip; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-weight: 500;
  font-size: 17px; line-height: 1.6; overflow-x: clip; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.03em; line-height: 1.06; text-wrap: balance; }
p { margin: 0; }
/* Scripts without letter case or with tall glyphs: no negative tracking, looser lines. */
:is([lang|='zh'], [lang='ja'], [lang='ko'], [lang='th'], [lang='hi'], [dir='rtl']) :is(h1, h2, h3, .kicker, .eyebrow) { letter-spacing: 0; }
:is([lang|='zh'], [lang='ja'], [lang='ko'], [lang='th'], [lang='hi'], [dir='rtl']) :is(h1, h2, h3) { line-height: 1.3; }
:is([lang='th'], [lang='hi'], [dir='rtl']) body { line-height: 1.85; }
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: 20px; }
.skip { position: absolute; top: 8px; inset-inline-start: 8px; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { width: auto; height: auto; clip-path: none; z-index: 99; background: var(--lime); color: var(--on-lime); padding: 8px 14px; border-radius: var(--r-sm); }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 8px; }
.lime { color: var(--lime); }

/* ---------- Header ---------- */
.top {
  position: sticky; top: 0; z-index: 50; background: rgba(7, 9, 13, 0.7); border-bottom: 1px solid var(--border);
  backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px);
}
.top .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; white-space: nowrap; }
.brand img, .brand .logo { width: 36px; height: 36px; border-radius: 10px; box-shadow: 0 0 0 1px var(--border-2); flex: none; }
.brand b { display: block; font-weight: 800; font-size: 17px; letter-spacing: -0.02em; line-height: 1.1; }
.brand small { display: block; font-size: 12px; color: var(--text-3); line-height: 1.2; }
.nav { display: none; gap: 26px; margin-inline-start: 22px; }
.nav a { text-decoration: none; color: var(--text-2); font-size: 15px; }
.nav a:hover { color: var(--text); }
.top-end { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border-radius: 999px; font-weight: 800; font-size: 15px; text-decoration: none; white-space: nowrap;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn svg { width: 16px; height: 16px; }
.btn-lime { background: var(--lime); color: var(--on-lime); }
.btn-lime:hover { transform: translateY(-1px); background: #e0ff6b; }
.lang { position: relative; }
.lang summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px;
  border-radius: 999px; border: 1px solid var(--border-2); color: var(--text-2); font-size: 14px; white-space: nowrap;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary svg { width: 18px; height: 18px; flex: none; }
.lang[open] summary { color: var(--text); border-color: var(--lime); }
.lang .menu {
  position: absolute; inset-inline-end: 0; top: calc(100% + 8px); width: min(420px, calc(100vw - 32px));
  max-height: min(70vh, 560px); overflow: auto; padding: 8px; background: var(--surface-2); border: 1px solid var(--border-2);
  border-radius: var(--r-lg); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6); display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
}
.lang .menu a { display: flex; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: var(--r-sm); text-decoration: none; font-size: 15px; }
.lang .menu a:hover { background: rgba(244, 241, 234, 0.06); }
.lang .menu a[aria-current='true'] { color: var(--lime); }
.lang .menu a span { color: var(--text-3); font-size: 12px; text-transform: uppercase; }
@media (min-width: 960px) { .nav { display: flex; } }
@media (max-width: 460px) { .top .btn-lime { display: none; } .brand small { display: none; } }

.suggest { background: var(--surface); border-bottom: 1px solid var(--border); font-size: 14px; }
.suggest .wrap { display: flex; align-items: center; gap: 12px; min-height: 48px; }
.suggest a { color: var(--lime); font-weight: 800; white-space: nowrap; }
.suggest button { margin-inline-start: auto; background: none; border: 0; color: var(--text-2); font-size: 22px; min-width: 44px; min-height: 44px; cursor: pointer; }

/* ---------- App components (re-created from the app) ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px;
  font-weight: 800; white-space: nowrap; line-height: 1.4;
}
.pill i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill-ok { background: var(--jade-soft); color: var(--jade); }
.pill-lime { background: var(--lime-soft); color: var(--lime); }
.pill-pro { background: var(--lime); color: var(--on-lime); font-size: 11px; letter-spacing: 0.04em; padding: 3px 9px; }
.app-card {
  background: linear-gradient(180deg, rgba(244, 241, 234, 0.04), rgba(244, 241, 234, 0)), var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-lg); padding: 16px 18px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
}
.tc-head { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 800; }
.tc-head .pill { margin-inline-start: auto; }
.tc-nums { display: flex; gap: 28px; margin-top: 12px; }
.tc-nums b { font-size: 40px; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.tc-nums small { font-size: 18px; color: var(--text-3); font-weight: 800; }
.tc-nums span { display: block; font-size: 12px; color: var(--text-2); margin-top: 4px; }
.meter { position: relative; height: 8px; border-radius: 999px; background: rgba(244, 241, 234, 0.1); margin-top: 14px; }
.meter i { position: absolute; inset-block: 0; inset-inline-start: 0; border-radius: 999px; background: linear-gradient(90deg, var(--jade), var(--lime)); }
.meter u { position: absolute; top: -4px; bottom: -4px; inset-inline-end: 0; width: 2px; background: var(--text-2); border-radius: 2px; }
.tc-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 10px; font-size: 12px; color: var(--text-2); }

/* Widgets (re-created from targets/widgets: CountriesWidget, Schengen) */
.widgets-row { display: flex; flex-wrap: wrap; gap: 22px; justify-content: center; align-items: flex-start; }
.widget {
  background: radial-gradient(120% 120% at 0% 0%, #1b2230 0%, #0f131a 70%); border: 1px solid var(--border);
  border-radius: 30px; padding: 18px 20px; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
}
.widget.medium { width: min(100%, 360px); height: 170px; }
.widget.small { width: 170px; height: 170px; display: flex; flex-direction: column; }
.w-title { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; }
.w-title svg { width: 12px; height: 12px; color: var(--lime); flex: none; }
.w-title em { margin-inline-start: auto; font-style: normal; font-weight: 500; font-size: 11px; color: var(--text-3); }
.w-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 16px; margin-top: 10px; }
.w-cols > div { min-width: 0; }
.w-row { display: flex; align-items: center; gap: 6px; height: 32px; font-size: 13px; min-width: 0; }
.w-row .f { font-size: 15px; }
.w-row .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.w-row b { font-size: 16px; font-variant-numeric: tabular-nums; }
.w-row.first b { color: var(--lime); }
.widget.small .big { font-size: 54px; font-weight: 800; line-height: 1; letter-spacing: -0.04em; color: var(--lime); margin-top: auto; }
.widget.small .lbl { font-size: 12px; color: var(--text-2); margin-top: 6px; }
.widget.small .meter { margin-top: 10px; height: 6px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 48px 0 0; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; width: 1500px; height: 1500px; left: 50%; top: -1000px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(212, 255, 58, 0.18), rgba(212, 255, 58, 0.04) 55%, transparent 72%);
  pointer-events: none;
}
.hero .grid { position: relative; display: grid; gap: 36px; align-items: center; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; color: var(--text-2);
  padding: 7px 14px; border-radius: 999px; background: rgba(244, 241, 234, 0.04); border: 1px solid var(--border-2);
}
.kicker::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px var(--lime); flex: none; }
.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--lime); }
.hero h1 { font-size: clamp(40px, 6.2vw, 74px); margin-top: 0; }
.cbi-hero .eyebrow { display: block; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--lime); }
.hero .sub { font-size: clamp(17px, 1.6vw, 19px); color: var(--text-2); margin-top: 22px; max-width: 590px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 30px; }
.badge { display: inline-block; line-height: 0; border-radius: 12px; }
.badge img { height: 54px; width: auto; }
.badge-fallback {
  display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 20px; border-radius: 12px; background: #000;
  color: #fff; border: 1px solid #a6a6a6; font-weight: 800; text-decoration: none; line-height: 1.1;
}
.note { color: var(--text-3); font-size: 15px; }
.ticks { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 24px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--text-2); }
.ticks li { display: flex; align-items: center; gap: 7px; }
.ticks li::before { content: ''; width: 16px; height: 16px; flex: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D4FF3A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat; }

.stage { position: relative; height: 600px; width: 100%; max-width: 620px; margin: 0 auto; }
.stage .arcs { position: absolute; left: -10%; top: -8%; width: 120%; height: 116%; pointer-events: none; }
.phone {
  position: absolute; aspect-ratio: 1056 / 2294; border-radius: 42px; padding: 7px; background: #1b212b;
  box-shadow: 0 0 0 1px #2a3240, 0 40px 100px rgba(0, 0, 0, 0.65);
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 35px; }
.stage .p-main { width: 270px; left: 50%; top: 0; margin-left: -135px; z-index: 3; box-shadow: 0 0 0 1px #2a3240, 0 50px 120px rgba(0, 0, 0, 0.7), 0 0 140px rgba(212, 255, 58, 0.14); }
.stage .p-l { width: 220px; left: 0; top: 70px; transform: rotate(-7deg); z-index: 1; }
.stage .p-r { width: 220px; right: 0; top: 70px; transform: rotate(7deg); z-index: 1; }
.stage .p-l img, .stage .p-r img { filter: brightness(0.8); }
.stage .tracker { position: absolute; z-index: 4; width: 300px; inset-inline-start: -6px; bottom: 26px; animation: float 7s ease-in-out infinite; }
.stage .auto { position: absolute; z-index: 4; inset-inline-end: 0; top: 36px; animation: float 7s ease-in-out infinite -3s;
  display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); font-size: 13px; font-weight: 800; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45); }
.stage .auto i { width: 9px; height: 9px; border-radius: 50%; background: var(--jade); box-shadow: 0 0 12px var(--jade); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (min-width: 1000px) {
  .hero { padding-top: 72px; }
  .hero .grid { grid-template-columns: 1fr 1fr; gap: 48px; }
  .stage { height: 640px; }
}
@media (max-width: 560px) {
  .stage { height: 500px; }
  .stage .p-main { width: 215px; margin-left: -107px; border-radius: 34px; padding: 6px; }
  .stage .p-main img { border-radius: 28px; }
  .stage .p-l, .stage .p-r { width: 165px; top: 60px; border-radius: 28px; padding: 5px; }
  .stage .p-l img, .stage .p-r img { border-radius: 23px; }
  .stage .tracker { width: 250px; bottom: 10px; inset-inline-start: 0; }
  .stage .tracker .tc-nums b { font-size: 32px; }
  .stage .auto { top: 10px; }
}

/* Stats + marquee */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 36px 0 30px; border-top: 1px solid var(--border); margin-top: 36px; }
.stats b { display: block; font-size: clamp(36px, 5vw, 56px); line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.stats div:first-child b { color: var(--lime); }
.stats span { display: block; color: var(--text-2); font-size: 14px; margin-top: 8px; }
.marquee { border-block: 1px solid var(--border); overflow: hidden; background: var(--bg-2); }
.marquee .track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee ul { display: flex; margin: 0; padding: 0; list-style: none; }
.marquee li { display: flex; align-items: center; gap: 28px; padding: 18px 14px; white-space: nowrap; color: var(--text-2); font-weight: 800; font-size: 15px; }
.marquee li::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2, .section h2 { font-size: clamp(32px, 4.4vw, 52px); }
.section-head h2 { margin-top: 14px; }
.lead { color: var(--text-2); font-size: 18px; margin-top: 16px; }

.steps { display: grid; gap: 16px; counter-reset: s; padding: 0; margin: 0; list-style: none; }
.steps li { counter-increment: s; padding: 26px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--border); }
.steps li::before {
  content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--lime); color: var(--on-lime); font-weight: 800; margin-bottom: 18px;
}
.steps h3 { font-size: 21px; letter-spacing: -0.02em; }
.steps p { color: var(--text-2); margin-top: 8px; font-size: 16px; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }

.feature { display: grid; gap: 36px; align-items: center; padding: 48px 0; }
.device-card {
  position: relative; display: flex; justify-content: center; align-items: flex-start; padding: 44px 24px 0; overflow: hidden;
  border-radius: var(--r-sheet); border: 1px solid var(--border); height: 540px;
  background: radial-gradient(70% 60% at 50% 0%, rgba(212, 255, 58, 0.14), transparent 70%), linear-gradient(180deg, var(--surface), var(--bg-2));
}
.device-card .phone { position: relative; width: 290px; flex: none; }
.feature h2 { font-size: clamp(30px, 3.8vw, 46px); margin-top: 14px; }
.checks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks li::before {
  content: ''; flex: none; width: 24px; height: 24px; margin-top: 1px; border-radius: 50%;
  background: var(--lime-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D4FF3A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
}
@media (min-width: 920px) {
  .feature { grid-template-columns: 1fr 1fr; gap: 72px; padding: 64px 0; }
  .feature.flip .device-card { order: 2; }
}
@media (max-width: 520px) { .device-card { height: 460px; } .device-card .phone { width: 250px; } }

.cards { display: grid; gap: 14px; }
.card { position: relative; padding: 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); }
.card .pill-pro { position: absolute; top: 22px; inset-inline-end: 22px; }
.card .ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--lime-soft); color: var(--lime); margin-bottom: 18px; }
.card .ico svg { width: 22px; height: 22px; }
.card h3 { font-size: 18px; letter-spacing: -0.01em; }
.card p { color: var(--text-2); margin-top: 8px; font-size: 15px; }
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .cards { grid-template-columns: repeat(3, 1fr); } }

.widgets-sec { border-radius: var(--r-sheet); border: 1px solid var(--border); padding: 48px 22px;
  background: radial-gradient(60% 70% at 50% 100%, rgba(212, 255, 58, 0.1), transparent 70%), var(--bg-2); }
.widgets-sec .section-head { margin-bottom: 36px; }

.gallery { display: flex; gap: 18px; overflow-x: auto; padding: 8px 20px 24px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  max-width: calc(var(--max) + 40px); margin: 0 auto; scrollbar-width: thin; scrollbar-color: var(--surface-2) transparent; }
.gallery figure { margin: 0; flex: 0 0 auto; width: 230px; scroll-snap-align: start; }
.gallery .phone { position: relative; width: 100%; border-radius: 36px; padding: 6px; }
.gallery .phone img { border-radius: 30px; }
.gallery figcaption { font-size: 14px; color: var(--text-2); margin-top: 14px; padding-inline: 4px; }

.privacy { border-radius: var(--r-sheet); padding: 44px 26px; border: 1px solid rgba(142, 125, 255, 0.28);
  background: radial-gradient(90% 90% at 100% 0%, rgba(142, 125, 255, 0.28), transparent 60%), radial-gradient(70% 70% at 0% 100%, rgba(91, 69, 224, 0.2), transparent 60%), var(--bg-2); }
.privacy .shield { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--violet-soft); color: var(--violet); margin-bottom: 22px; }
.privacy .shield svg { width: 26px; height: 26px; }
.privacy .eyebrow { color: var(--violet); }
.privacy h2 { margin-top: 12px; }
.privacy .grid { display: grid; gap: 24px; margin-top: 36px; }
.privacy .item .ico { color: var(--violet); margin-bottom: 10px; }
.privacy .item .ico svg { width: 22px; height: 22px; }
.privacy .item h3 { font-size: 17px; letter-spacing: -0.01em; }
.privacy .item p { color: var(--text-2); font-size: 15px; margin-top: 6px; }
@media (min-width: 820px) { .privacy { padding: 64px; } .privacy .grid { grid-template-columns: repeat(4, 1fr); } }

.plans { display: grid; gap: 16px; }
.plan { padding: 30px 28px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--border); }
.plan.pro { background: radial-gradient(90% 80% at 100% 0%, rgba(212, 255, 58, 0.12), transparent 60%), var(--surface); border: 2px solid var(--lime); }
.plan h3 { font-size: 26px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.plan .sub2 { color: var(--text-2); margin-top: 6px; }
.plan .checks { margin-top: 22px; }
.plans-note { color: var(--text-3); font-size: 14px; margin-top: 20px; max-width: 760px; }
@media (min-width: 820px) { .plans { grid-template-columns: 1fr 1fr; } }

.cbi { display: grid; gap: 16px; padding: 34px 28px; border-radius: var(--r-xl); border: 1px solid var(--border-2); background: var(--surface); }
.cbi .eyebrow { justify-self: start; }
.cbi h2 { font-size: clamp(26px, 3.2vw, 38px); }
.cbi p { color: var(--text-2); max-width: 820px; }
.cbi .fine { font-size: 14px; color: var(--text-3); }

.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 20px; padding-inline-end: 56px; position: relative; font-weight: 800; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; position: absolute; inset-inline-end: 22px; top: 50%; width: 10px; height: 10px; margin-top: -8px;
  border-right: 2px solid var(--text-2); border-bottom: 2px solid var(--text-2); transform: rotate(45deg); transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq details p { color: var(--text-2); padding: 0 20px 20px; }

.final { text-align: center; padding: 96px 0 40px; position: relative; overflow: hidden; }
.final::before { content: ''; position: absolute; left: 50%; top: 0; width: 900px; height: 600px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(212, 255, 58, 0.14), transparent 70%); pointer-events: none; }
.final .icon { position: relative; display: block; width: 120px; height: 120px; border-radius: 27px; margin: 0 auto 28px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 80px rgba(212, 255, 58, 0.28); }
.final h2 { position: relative; font-size: clamp(36px, 5.4vw, 64px); }
.final p { position: relative; color: var(--text-2); margin: 14px auto 0; font-size: 18px; max-width: 560px; }
.final .cta-row { justify-content: center; position: relative; }

footer { border-top: 1px solid var(--border); margin-top: 40px; padding: 56px 0 40px; font-size: 15px; }
footer .cols { display: grid; gap: 32px; }
footer h4 { margin: 0 0 12px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-3); }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
footer a { color: var(--text-2); text-decoration: none; }
footer a:hover { color: var(--text); }
footer .langs { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 14px; font-size: 14px; }
footer .tag { color: var(--text-2); margin-top: 14px; max-width: 280px; }
footer .fine { color: var(--text-3); font-size: 13px; margin-top: 44px; display: grid; gap: 8px; max-width: 920px; }
@media (min-width: 900px) { footer .cols { grid-template-columns: 1.2fr 1fr 0.8fr 1.6fr; } }

.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stage .tracker, .stage .auto, .marquee .track { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
.widgets-row .w-tracker { width: min(100%, 320px); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55); }

/* Backlinks, legal pages */
.more-link { color: var(--lime); font-weight: 800; text-decoration: none; }
.more-link:hover { text-decoration: underline; }
footer .made { margin-top: 10px; font-size: 14px; }
footer .made a { color: var(--text-3); }
.legal-nav { gap: 20px; }
/* Long words (de, fi, hu, nl…) never push the page wider than the screen. */
h1, h2, h3 { overflow-wrap: break-word; }
.card p, .lead, .checks li, .plan li, .stats span, .steps p, .prog-facts dt { overflow-wrap: anywhere; }

/* Animated logo (the app icon): globe turning, meridian drawing in, "you are here" pulse */
.logo { display: block; overflow: hidden; }
.logo .lon { transform-box: fill-box; transform-origin: center; animation: dt-spin 9s linear infinite; }
.logo .mer, .logo .mer-glow { stroke-dasharray: 1; stroke-dashoffset: 1; animation: dt-draw 1.4s 0.15s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.logo .mer-glow { filter: blur(14px); }
.logo .dot { transform-box: fill-box; transform-origin: center; animation: dt-pop 0.5s 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.logo .ring { transform-box: fill-box; transform-origin: center; animation: dt-ring 2.6s 1.6s ease-out infinite both; }
.brand .logo .ring { animation-iteration-count: 2; }
@keyframes dt-spin {
  0% { transform: scaleX(1); } 12.5% { transform: scaleX(0.92); } 25% { transform: scaleX(0.71); } 37.5% { transform: scaleX(0.38); }
  50% { transform: scaleX(0.01); } 62.5% { transform: scaleX(0.38); } 75% { transform: scaleX(0.71); } 87.5% { transform: scaleX(0.92); } 100% { transform: scaleX(1); }
}
@keyframes dt-draw { to { stroke-dashoffset: 0; } }
@keyframes dt-pop { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes dt-ring { 0% { transform: scale(0.6); opacity: 0.9; } 70% { transform: scale(2.6); opacity: 0; } 100% { transform: scale(2.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .logo .lon, .logo .dot, .logo .ring { animation: none; }
  .logo .mer, .logo .mer-glow { animation: none; stroke-dashoffset: 0; }
}

/* Tax-residency goal section */
.goal-sec { border-radius: var(--r-sheet); border: 1px solid var(--border); padding: 36px 24px;
  background: radial-gradient(70% 80% at 100% 50%, rgba(61, 220, 151, 0.12), transparent 70%), var(--bg-2); }
.goal-sec h2 em { font-style: normal; color: var(--lime); }
.goal-stage { display: grid; gap: 18px; justify-items: center; }
.goal-stage .goal { width: min(100%, 380px); }
.goal-stage .goal .tc-foot { align-items: center; }
.goal-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.goal-chips span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums; }
.goal-chips i { font-style: normal; }
@media (min-width: 920px) { .goal-sec { padding: 56px; } }

/* Buttons */
.btn-big { min-height: 54px; padding: 0 26px; font-size: 16px; }
.btn-ghost { border: 1px solid var(--border-2); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--lime); color: var(--lime); }
.cbi-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.lang-link { color: var(--text-2); text-decoration: none; font-size: 14px; padding: 0 10px; min-height: 44px; display: inline-flex; align-items: center; }

/* Second passport page */
.cbi-hero h1 { max-width: 880px; }
.cbi-hero .sub { max-width: 720px; }
.progs { display: grid; gap: 16px; }
@media (min-width: 700px) { .progs { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .progs { grid-template-columns: repeat(3, 1fr); } }
.prog { display: flex; flex-direction: column; gap: 14px; padding: 24px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--border); }
.prog-head { display: flex; align-items: center; gap: 12px; }
.prog-flag { font-size: 32px; line-height: 1; }
.prog h3 { font-size: 19px; letter-spacing: -0.01em; line-height: 1.25; }
.prog-tags { display: flex; flex-wrap: wrap; gap: 6px; min-height: 0; }
.prog-tags:empty { display: none; }
.prog-min span { display: block; font-size: 13px; color: var(--text-2); }
.prog-min b { display: block; font-size: 34px; line-height: 1.05; letter-spacing: -0.03em; color: var(--lime); font-variant-numeric: tabular-nums; }
.prog-min small { font-size: 13px; color: var(--text-3); }
.prog-facts { margin: 0; display: grid; gap: 8px; }
.prog-facts div { display: flex; justify-content: space-between; gap: 12px; padding-top: 8px; border-top: 1px solid var(--border); font-size: 14px; }
.prog-facts dt { color: var(--text-2); }
.prog-facts dd { margin: 0; font-weight: 800; text-align: end; }
.checks.small { margin: 0; gap: 8px; font-size: 14px; color: var(--text-2); }
.checks.small li::before { width: 20px; height: 20px; background-size: 12px; }
.prog .btn { margin-top: auto; align-self: flex-start; }
@media (min-width: 1040px) { .steps.four { grid-template-columns: repeat(4, 1fr); } }

.lead-form-wrap { border-radius: var(--r-sheet); border: 1px solid var(--border-2); padding: 32px 22px;
  background: radial-gradient(80% 60% at 50% 0%, rgba(212, 255, 58, 0.1), transparent 70%), var(--bg-2); }
.lead-form-wrap .section-head { margin-bottom: 28px; }
.lead-form { display: grid; gap: 18px; }
.lead-form .grid2 { display: grid; gap: 16px; }
@media (min-width: 760px) { .lead-form-wrap { padding: 52px; } .lead-form .grid2 { grid-template-columns: 1fr 1fr; } .lead-form .full { grid-column: 1 / -1; } }
.lead-form label { display: grid; gap: 8px; font-size: 14px; font-weight: 800; color: var(--text-2); }
.lead-form input, .lead-form select, .lead-form textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: var(--r-md); border: 1px solid var(--border-2);
  background: var(--surface); color: var(--text); font: inherit; font-weight: 500; font-size: 16px;
}
.lead-form textarea { min-height: 110px; resize: vertical; }
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus { outline: none; border-color: var(--lime); box-shadow: 0 0 0 3px var(--lime-soft); }
.lead-form input::placeholder, .lead-form textarea::placeholder { color: var(--text-3); }
.lead-form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.lead-form .consent { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; color: var(--text-2); font-size: 15px; }
.lead-form .consent input { width: 22px; height: 22px; min-height: 0; margin-top: 2px; flex: none; accent-color: var(--lime); }
.lead-form .consent a { color: var(--lime); }
.lead-form button { justify-self: start; border: 0; cursor: pointer; }
.lead-form button:disabled { opacity: 0.6; cursor: progress; }
.form-status { font-weight: 800; min-height: 1.4em; }
.form-status.ok { color: var(--jade); }
.form-status.err { color: var(--red); }
.fine-print { margin-top: 28px; display: grid; gap: 6px; color: var(--text-3); font-size: 13px; max-width: 900px; }

/* Grid/flex text columns may shrink below their longest word (then words wrap instead of overflowing). */
.feature > div, .goal-sec > div, .hero .grid > div { min-width: 0; }
.lang-code { display: none; }
@media (max-width: 400px) { .lang-name { display: none; } .lang-code { display: inline; font-weight: 800; } }
.lead-form .hp { left: auto; inset-inline-start: 0; top: 0; clip-path: inset(50%); }
.goal-stage > * { min-width: 0; max-width: 100%; }
.tc-head { flex-wrap: wrap; row-gap: 6px; }

/* Safari (iPhone): flex/grid items default to "at least as wide as their text" (min-width: auto),
   and nowrap country names made the Countries widget wider than its card. Let everything shrink,
   clip inside the widget, and stop sideways page scrolling at the viewport (html → viewport keeps
   the sticky header working; body uses clip, which creates no scroll container). */
html { overflow-x: hidden; }
body { overflow-x: clip; }
.widgets-row > *, .w-cols, .w-cols > div, .w-row, .w-row .n { min-width: 0; }
.widget { overflow: hidden; max-width: 100%; }
.widget.medium { width: 100%; max-width: 360px; }
.w-row .f, .w-row b { flex: none; }
.w-row .n { flex: 1 1 0; }
.widgets-sec, .goal-sec, .privacy, .lead-form-wrap, .cbi, .plan, .card, .prog { overflow: hidden; }

.nf-card { max-width: 320px; margin: 40px auto 0; text-align: start; }
