/* Brand: IR Immigration blue #003C82, maple-leaf red #E83526, Outfit. */
:root {
  --primary: #003c82;
  --primary-ink: #003c82;
  --btn: #003c82;
  --btn-hover: #002a5c;
  --accent: #e83526;
  --deep: #002a5c;
  --bg: #ffffff;
  --bg-alt: #f4f7fb;
  --surface: #ffffff;
  --text: #0f1a2b;
  --text-2: #475266;
  --muted: #646d7e;
  --border: #dfe5ee;
  --soft: #e8eef8;
  --danger: #c4281b;
  --ok-bg: #e7f7ef;
  --ok: #17784d;
  --err-bg: #fdeeee;
  --mark: #fff3c4;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 60, 130, 0.08);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --primary: #8db8f5;
    --primary-ink: #a9c9f7;
    --btn: #1f5fb8;
    --btn-hover: #2a6fd0;
    --accent: #ff6a5c;
    --deep: #001d40;
    --bg: #0b111c;
    --bg-alt: #111a29;
    --surface: #152033;
    --text: #edf1f7;
    --text-2: #c0c8d6;
    --muted: #939caf;
    --border: #26324a;
    --soft: #16294a;
    --danger: #ff7b70;
    --ok-bg: #12301f;
    --ok: #74d7a6;
    --err-bg: #3a1c1c;
    --mark: #4a3f12;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  }
}

*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
a { color: var(--primary-ink); text-underline-offset: 3px; }
a:hover { color: var(--primary); }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.lead { font-size: 1.15rem; color: var(--text-2); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--primary); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* header */
.topbar { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.1rem; }
.logo-mark { width: 40px; height: 44px; flex: none; border-radius: 6px; display: block; }
.nav { display: flex; align-items: center; gap: 4px 16px; flex-wrap: wrap; font-size: 0.95rem; }
.nav a { color: var(--text-2); text-decoration: none; padding: 6px 2px; }
.nav a[aria-current='page'] { color: var(--primary-ink); font-weight: 600; }
.nav a:hover { color: var(--primary); }
.nav .lang { border: 1px solid var(--border); border-radius: 999px; padding: 4px 12px; }
@media (max-width: 640px) {
  .nav { width: 100%; justify-content: space-between; gap: 4px 10px; font-size: 0.9rem; }
  .nav .btn-sm { display: none; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 12px; border: 0; background: var(--btn); color: #fff !important; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; transition: transform 0.15s ease, background 0.15s ease; }
.btn:hover { background: var(--btn-hover); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn-sm { min-height: 38px; padding: 6px 16px; font-size: 0.92rem; }
.btn-lg { min-height: 54px; padding: 14px 26px; font-size: 1.05rem; }
.btn-ghost { background: transparent; color: var(--primary-ink) !important; box-shadow: inset 0 0 0 1.5px var(--primary-ink); }
.btn-ghost:hover { background: var(--soft); }
.btn-light { background: #fff; color: #003c82 !important; }
.btn-light:hover { background: #e8eef8; }
.btn-danger { background: var(--danger); }
.btn-danger:hover { background: #9e1f15; }

/* hero */
.hero { background: radial-gradient(1200px 500px at 85% -10%, color-mix(in srgb, var(--primary) 22%, transparent), transparent 60%), linear-gradient(180deg, var(--bg-alt), var(--bg)); padding: 48px 0 64px; }
.hero-inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; background: var(--soft); color: var(--primary-ink); border-left: 3px solid var(--accent); font-weight: 600; font-size: 0.85rem; padding: 6px 12px; border-radius: 999px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 12px; }
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .phone { justify-self: center; }
}

/* CSS phone mockup */
.phone { width: 280px; aspect-ratio: 9 / 18.5; border-radius: 40px; padding: 12px; background: #0b0f1c; box-shadow: 0 30px 60px rgba(0, 60, 130, 0.3), inset 0 0 0 2px #2a3150; }
.phone-screen { height: 100%; border-radius: 30px; background: #fff; color: #121826; padding: 22px 14px 12px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; font-size: 12px; position: relative; }
.ph-top { display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 15px; }
.ph-bell { width: 26px; height: 26px; border-radius: 50%; background: #eef1ff; }
.ph-search { border: 1px solid #e3e7f2; border-radius: 10px; padding: 8px 10px; color: #8a90a2; }
.ph-hero { position: relative; border-radius: 14px; padding: 72px 12px 12px; color: #fff; background: linear-gradient(160deg, rgba(0, 60, 130, 0.1), rgba(0, 60, 130, 0.95)), linear-gradient(135deg, #2f6fc4, #002a5c); display: flex; flex-direction: column; gap: 6px; }
.ph-hero strong { font-size: 13px; line-height: 1.3; }
.ph-rdv { position: absolute; top: 10px; right: 10px; background: #e83526; color: #fff; font-weight: 700; padding: 4px 10px; border-radius: 8px; font-size: 11px; }
.ph-chip { align-self: flex-start; background: #003c82; color: #fff; font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 6px; }
.ph-chip.alt { background: #eef1ff; color: #003c82; }
.ph-row { display: flex; gap: 10px; align-items: center; }
.ph-row p { margin: 4px 0 0; font-size: 11.5px; line-height: 1.3; font-weight: 500; }
.ph-thumb { width: 64px; height: 56px; border-radius: 10px; flex: none; background: linear-gradient(135deg, #b9cbe6, #003c82); }
.ph-thumb.b { background: linear-gradient(135deg, #d5deeb, #002a5c); }
.ph-line { display: block; height: 8px; width: 120px; background: #e9ecf5; border-radius: 4px; margin: 6px 0; }
.ph-line.short { width: 80px; }
.ph-tabs { margin-top: auto; display: flex; justify-content: space-around; border-top: 1px solid #eef0f6; padding-top: 10px; }
.ph-tabs i { width: 18px; height: 18px; border-radius: 5px; background: #dfe3ee; }
.ph-tabs i.on { background: #003c82; }

/* sections */
.section { padding: 64px 0; }
.section.alt { background: var(--bg-alt); }
.grid { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.feature { padding: 22px; }
.feature p, .trust p { color: var(--text-2); margin: 0; }
.ico { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--soft); color: var(--primary-ink); margin-bottom: 12px; }
.ico svg { width: 24px; height: 24px; }
.trust { border-left: 3px solid var(--accent); padding: 4px 0 4px 16px; }
.disclaimer { margin-top: 32px; padding: 14px 16px; border-radius: 12px; background: var(--soft); color: var(--text); font-size: 0.95rem; }
.cta-band { border-bottom: 4px solid var(--accent); display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 36px; border-radius: 22px; color: #fff; background: linear-gradient(135deg, #002a5c, #003c82); }
.cta-band h2 { color: #fff; }
.cta-band p { margin: 0; max-width: 620px; color: #e8ecff; }
@media (max-width: 640px) { .cta-band { padding: 26px 20px; } }

/* legal */
.legal { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 48px; padding-top: 40px; padding-bottom: 64px; }
.toc { position: sticky; top: 88px; align-self: start; font-size: 0.9rem; max-height: calc(100vh - 110px); overflow: auto; }
.toc summary { font-weight: 600; cursor: pointer; margin-bottom: 8px; }
.toc ol { padding-left: 1.2em; margin: 0; }
.toc li { margin: 4px 0; }
.toc a { color: var(--text-2); text-decoration: none; }
.toc a:hover { color: var(--primary); text-decoration: underline; }
.prose { max-width: 760px; min-width: 0; overflow-wrap: anywhere; }
.prose h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
.prose h2 { font-size: 1.35rem; margin-top: 2em; scroll-margin-top: 90px; }
.prose h3 { margin-top: 1.4em; }
.prose p, .prose li { color: var(--text-2); }
.prose strong { color: var(--text); }
.prose li { margin: 0.3em 0; }
.prose mark { background: var(--mark); color: var(--text); padding: 0 4px; border-radius: 4px; }
@media (max-width: 860px) {
  .legal { grid-template-columns: 1fr; gap: 16px; padding-top: 24px; }
  .toc { position: static; max-height: none; border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px; }
}

/* forms */
.form-head { padding-top: 40px; }
.steps { color: var(--text-2); padding-left: 1.3em; }
.form { padding: 24px; margin: 24px 0 64px; display: grid; gap: 18px; }
.field { display: grid; gap: 6px; font-weight: 500; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-weight: 400; color: var(--text); background: var(--bg); border: 1.5px solid var(--border); border-radius: 10px; padding: 12px 14px; min-height: 48px; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 25%, transparent); }
.field [aria-invalid='true'] { border-color: var(--danger); }
.field small { font-weight: 400; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.status:empty { display: none; }
.status { padding: 14px 16px; border-radius: 12px; }
.status.ok { background: var(--ok-bg); color: var(--ok); }
.status.err { background: var(--err-bg); color: var(--danger); }
.status.info { background: var(--soft); color: var(--text); }
.form .btn { justify-self: start; }
@media (max-width: 480px) { .form { padding: 18px; } .form .btn { justify-self: stretch; } }

/* footer */
.footer { border-top: 1px solid var(--border); padding: 40px 0 24px; background: var(--bg-alt); }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; }
.footer-inner p { max-width: 520px; margin-top: 12px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; font-size: 0.95rem; }
.footer-links a { color: var(--text-2); }
.copy { margin-top: 24px; }
@media (max-width: 720px) { .footer-inner { grid-template-columns: 1fr; } }
