@font-face {
  font-family: "Nunito Sans";
  src: url("../fonts/nunito-sans-latin.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --navy: #0b1c48;
  --navy-2: #142a66;
  --blue: #2450d6;
  --sky: #eef3fc;
  --line: #dde4f0;
  --text: #1c2333;
  --muted: #5a6478;
  --white: #fff;
  --green: #1d8a5b;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 28, 72, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3 { color: var(--navy); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 3.8rem); font-weight: 900; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); font-weight: 850; }
h3 { font-size: 1.15rem; font-weight: 800; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 100; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; }

.eyebrow {
  color: var(--blue);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: .8em;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font: inherit; font-weight: 800; font-size: .98rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-lg { padding: 15px 28px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); }
.btn-ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { background: var(--sky); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid #7aa2ff; outline-offset: 2px;
}

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.logo-img { height: 54px; width: 54px; }
.logo-text, .logo-sub { display: none; }
.logo-sub {
  font-size: .78rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
  padding-left: 10px; border-left: 2px solid currentColor; line-height: 1.2;
}
.logo .logo-sub { display: inline; }
/* Text logo shown only if images/logo.png is missing */
.logo-fallback .logo-img { display: none; }
.logo-fallback .logo-text { display: inline; font-size: 1.9rem; font-weight: 900; letter-spacing: -.03em; line-height: 1; }
.logo-light { color: #fff; }
.logo-light .logo-img { filter: brightness(0) invert(1); }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { color: var(--text); text-decoration: none; font-weight: 700; font-size: .96rem; }
.nav a:not(.btn):hover { color: var(--blue); }
.nav-cta { padding: 10px 20px; }

.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 10px; }
.menu-btn span { display: block; height: 2px; background: var(--navy); margin: 5px 0; border-radius: 2px; }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--navy); color: #fff; padding: 80px 0 130px; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(11, 28, 72, .96) 0%, rgba(11, 28, 72, .88) 42%, rgba(11, 28, 72, .45) 100%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; }
.hero h1 span { color: #9fc0ff; }
.hero .eyebrow { color: #9fc0ff; }
.lead { font-size: 1.18rem; color: rgba(255, 255, 255, .85); max-width: 540px; }
.lead strong { color: #fff; }
.hero .checks li::before { background: #fff; color: var(--navy); }
.hero .btn-primary { background: #fff; color: var(--navy); }
.hero .btn-primary:hover { background: var(--sky); }
.hero .btn-ghost { border-color: rgba(255, 255, 255, .7); color: #fff; }
.hero .btn-ghost:hover { background: #fff; color: var(--navy); }
.hero .form-card .btn-primary { background: var(--navy); color: #fff; }
.hero-curve { position: absolute; left: 0; bottom: -1px; width: 100%; height: 80px; fill: #fff; }

/* Decorative logo-inspired shapes */
.shape { position: absolute; pointer-events: none; }
.shape path { fill: none; stroke: currentColor; stroke-width: 2; }
.shape-hero-1 { width: 520px; right: -120px; top: -90px; color: rgba(255, 255, 255, .14); }
.shape-hero-2 { width: 300px; left: -110px; bottom: 30px; color: rgba(255, 255, 255, .1); transform: rotate(-20deg); }
.checks { list-style: none; padding: 0; margin: 24px 0 32px; }
.checks li { position: relative; padding-left: 32px; margin-bottom: 10px; font-weight: 700; }
.checks li::before {
  content: "✓"; position: absolute; left: 0; top: 2px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--navy); color: #fff; font-size: .72rem;
  display: grid; place-items: center;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Form */
.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  padding: 32px; box-shadow: var(--shadow);
}
.form-card h2 { font-size: 1.5rem; }
.form-intro { color: var(--muted); font-size: .98rem; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: .86rem; font-weight: 800; color: var(--navy); margin-bottom: 5px; }
.field input, .field select {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 1rem;
  border: 1px solid #c9d3e5; border-radius: 10px; background: #fff; color: var(--text);
}
.field input:focus, .field select:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(36, 80, 214, .15); }
.field .invalid { border-color: #c62828; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--muted); margin: 4px 0 16px; }
.consent input { margin-top: 4px; width: 17px; height: 17px; flex: none; accent-color: var(--navy); }
.hp { position: absolute; left: -9999px; }
.form-error { color: #c62828; font-size: .9rem; font-weight: 700; }
.form-note { text-align: center; font-size: .85rem; color: var(--muted); margin: 12px 0 0; }
.form-success { text-align: center; padding: 30px 0; }
.success-icon {
  width: 60px; height: 60px; margin: 0 auto 16px; border-radius: 50%;
  background: var(--green); color: #fff; font-size: 1.8rem; display: grid; place-items: center;
}

/* Software strip */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; }
.strip-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.strip p { margin: 0; color: var(--muted); font-weight: 700; font-size: .92rem; }
.strip ul { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 32px; margin: 0; padding: 0; }
.strip li { font-weight: 900; color: #8892a6; font-size: 1.1rem; letter-spacing: -.01em; }

/* Sections */
.section { padding: 88px 0; }
.section-tint { background: var(--sky); }
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head p:last-child { color: var(--muted); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.section:has(.stats) { padding: 64px 0; }
.stat { text-align: center; padding: 8px 16px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-size: 2.8rem; font-weight: 900; color: var(--navy); line-height: 1.1; }
.stat span { color: var(--muted); font-weight: 600; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.steps li { background: #fff; border-radius: var(--radius); padding: 28px 24px; border: 1px solid var(--line); }
.step-num {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--navy); color: #fff; font-weight: 900; margin-bottom: 18px;
}
.steps p { color: var(--muted); margin: 0; font-size: .97rem; }

/* How it works: sticky side + stacking cards */
.how-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.how-side { position: sticky; top: 110px; }
.how-side > p { color: var(--muted); max-width: 440px; }
.shape-photo { position: relative; margin-top: 32px; max-width: 460px; }
.shape-photo img { position: relative; border-radius: 28px 120px 28px 28px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; box-shadow: var(--shadow); }
.shape-behind { width: 70%; right: -40px; bottom: -50px; color: var(--blue); opacity: .35; }
.shape-behind path { stroke-width: 3; }

.stack { list-style: none; margin: 0; padding: 0 0 40px; }
.stack-card {
  position: sticky; top: calc(110px + var(--i) * 22px);
  display: flex; gap: 24px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: 22px;
  padding: 36px 32px; min-height: 230px; margin-bottom: 28px;
  box-shadow: 0 -8px 30px rgba(11, 28, 72, .07);
}
.stack-card h3 { font-size: 1.4rem; }
.stack-card p { color: var(--muted); margin: 0; }
.stack-card .step-num {
  flex: none; width: 64px; height: 64px; margin: 0; border-radius: 18px 30px 18px 18px;
  font-size: 1.2rem; background: var(--sky); color: var(--navy);
}
.stack-card-dark { background: var(--navy); border-color: var(--navy); }
.stack-card-dark h3 { color: #fff; }
.stack-card-dark p { color: rgba(255, 255, 255, .8); }
.stack-card-dark .step-num { background: #fff; }

/* Destinations collage */
.dest-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.collage { position: relative; padding: 0 60px 70px 0; }
.collage-main { position: relative; width: 82%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 160px 28px 28px 28px; box-shadow: var(--shadow); }
.collage-small {
  position: absolute; right: 0; bottom: 0; width: 52%; aspect-ratio: 1; object-fit: cover;
  border-radius: 28px 28px 100px 28px; border: 8px solid #fff; box-shadow: var(--shadow);
}
.shape-collage { width: 75%; left: -50px; top: -40px; color: var(--blue); opacity: .25; }
.shape-collage path { stroke-width: 3; }
.dots {
  position: absolute; right: 20px; top: 10px; width: 140px; height: 140px;
  background-image: radial-gradient(var(--blue) 2px, transparent 2px); background-size: 18px 18px; opacity: .25;
}
.collage-badge {
  position: absolute; left: -10px; bottom: 40px; background: var(--navy); color: #fff;
  border-radius: 18px; padding: 16px 20px; max-width: 210px; box-shadow: var(--shadow);
}
.collage-badge strong { display: block; font-size: 1.8rem; font-weight: 900; line-height: 1.1; }
.collage-badge span { font-size: .85rem; opacity: .85; }
.dest-copy > p { color: var(--muted); }
.perks { list-style: none; padding: 0; margin: 28px 0 32px; }
.perks li { display: flex; gap: 16px; margin-bottom: 20px; }
.perks h3 { margin-bottom: .2em; }
.perks p { margin: 0; color: var(--muted); font-size: .97rem; }
.perk-icon { flex: none; width: 48px; height: 48px; border-radius: 14px 22px 14px 14px; background: var(--sky); display: grid; place-items: center; }
.perk-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Earnings */
.earn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.earn-grid > div > p { color: var(--muted); }
.calc { margin-top: 28px; background: var(--navy); color: #fff; border-radius: 18px; padding: 28px; }
.calc label { display: block; font-weight: 800; margin-bottom: 8px; }
.calc-input { display: flex; align-items: center; background: #fff; border-radius: 10px; padding: 0 14px; }
.calc-input span { color: var(--navy); font-weight: 900; font-size: 1.2rem; }
.calc-input input { border: 0; outline: 0; width: 100%; padding: 13px 8px; font: inherit; font-size: 1.2rem; font-weight: 800; color: var(--navy); background: transparent; }
.calc-result { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.calc-result div { background: rgba(255, 255, 255, .08); border-radius: 12px; padding: 16px; }
.calc-result span { display: block; font-size: .85rem; opacity: .8; }
.calc-result strong { display: block; font-size: 1.6rem; font-weight: 900; word-break: break-word; }

.table-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px; box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; }
caption { text-align: left; font-weight: 800; color: var(--navy); margin-bottom: 14px; font-size: 1.05rem; }
th, td { text-align: left; padding: 14px 4px; border-bottom: 1px solid var(--line); }
th { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
td:last-child, th:last-child { text-align: right; }
td:last-child { font-weight: 900; color: var(--navy); }
.small { font-size: .82rem; color: var(--muted); margin: 14px 0 0; }

/* Counts */
.counts { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; max-width: 900px; margin: 0 auto; }
.count-card { background: #fff; border-radius: var(--radius); padding: 30px; border: 1px solid var(--line); }
.count-card ul { list-style: none; padding: 0; margin: 0; }
.count-card li { position: relative; padding: 8px 0 8px 30px; border-bottom: 1px solid var(--line); }
.count-card li:last-child { border-bottom: 0; }
.count-card li::before { position: absolute; left: 0; font-weight: 900; }
.yes li::before { content: "✓"; color: var(--green); }
.no li::before { content: "✕"; color: #9aa3b5; }
.no li { color: var(--muted); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card p { color: var(--muted); margin: 0; font-size: .97rem; }
.icon { width: 48px; height: 48px; border-radius: 12px; background: var(--sky); display: grid; place-items: center; margin-bottom: 18px; }
.icon svg { width: 24px; height: 24px; fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* FAQs */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; }
.faq-grid > div:first-child p { color: var(--muted); }
.faqs details { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; }
.faqs summary {
  cursor: pointer; list-style: none; padding: 18px 52px 18px 22px; position: relative;
  font-weight: 800; color: var(--navy);
}
.faqs summary::-webkit-details-marker { display: none; }
.faqs summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--blue); }
.faqs details[open] summary::after { content: "−"; }
.faqs details p { padding: 0 22px 20px; margin: 0; color: var(--muted); }

/* CTA */
.cta { position: relative; overflow: hidden; background: var(--navy); color: #fff; padding: 72px 0; }
.shape-cta { width: 380px; right: 6%; top: -120px; color: rgba(255, 255, 255, .12); transform: rotate(15deg); }
.cta-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cta h2 { color: #fff; margin-bottom: .25em; }
.cta p { margin: 0; opacity: .85; }

/* Footer */
.footer { background: #071233; color: #b9c3dc; padding: 56px 0 0; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer h3 { color: #fff; font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 8px; }
.footer a:not(.logo) { color: #b9c3dc; text-decoration: none; }
.footer a:not(.logo):hover { color: #fff; }
.footer .logo { margin-bottom: 14px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 40px; padding: 22px 20px; }
.footer-bottom p { margin: 0; font-size: .86rem; }

/* Legal page */
.legal { max-width: 760px; padding: 56px 20px 80px; }
.legal h1 { font-size: 2.4rem; }
.legal h2 { font-size: 1.3rem; margin-top: 1.6em; }
.legal p, .legal li { color: var(--muted); }

/* Tablet */
@media (max-width: 1024px) {
  .hero-grid, .earn-grid, .faq-grid, .dest-grid, .how-grid { grid-template-columns: 1fr; gap: 40px; }
  .how-side { position: static; }
  .shape-photo { display: none; }
  .collage { max-width: 560px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .hero-copy { max-width: 680px; }
}

/* Mobile */
@media (max-width: 820px) {
  .menu-btn { display: block; }
  .nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 20px 20px;
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-cta { margin-top: 16px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding: 40px 0 90px; }
  .hero::before { background: rgba(11, 28, 72, .88); }
  .hero-curve { height: 40px; }
  .shape-hero-1 { width: 320px; right: -140px; top: -60px; }
  .shape-hero-2 { display: none; }
  .stack-card { top: calc(90px + var(--i) * 14px); padding: 26px 22px; min-height: 0; gap: 16px; flex-direction: column; }
  .stack-card .step-num { width: 52px; height: 52px; font-size: 1rem; }
  .stack-card h3 { font-size: 1.2rem; }
  .collage { padding: 0 30px 50px 0; }
  .collage-badge { left: 0; bottom: 20px; padding: 12px 16px; max-width: 170px; }
  .collage-badge strong { font-size: 1.4rem; }
  .shape-collage { left: -20px; }
  .shape-cta { width: 260px; right: -80px; }
  .section { padding: 60px 0; }
  .section-head { margin-bottom: 32px; }
  .hero-actions .btn { width: 100%; }
  .form-card { padding: 22px; }
  .row { grid-template-columns: 1fr; gap: 0; }
  .stats { grid-template-columns: 1fr; gap: 0; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); padding: 20px 0; }
  .stat:last-child { border-bottom: 0; }
  .steps, .cards, .counts { grid-template-columns: 1fr; }
  .strip-inner { justify-content: center; text-align: center; }
  .strip ul { justify-content: center; gap: 8px 22px; }
  .calc { padding: 22px; }
  .calc-result { grid-template-columns: 1fr; }
  .table-card { padding: 20px; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .cta .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
