/* ==========================================================================
   TANZANIA VISA SERVICE: the one shared stylesheet for the whole site.

   How this file is organised (search for the number to jump there):
     1. Fonts
     2. Colours and sizes (change a colour once here and it changes everywhere)
     3. Basics (page, text, links)
     4. Small reusable pieces (labels, buttons, tags, source lines)
     5. Status strip and header
     6. Hero and the "check which visa you need" card
     7. You already know Tanzania + the five worlds
     8. Guides
     9. The four visas
    10. What our fee pays for
    11. How it works
    12. When to apply (dark band)
    13. Who you are dealing with
    14. Questions
    15. Footer
    16. Gentle movement
    17. Smaller screens (tablet, then phone)
   ========================================================================== */


/* 1. FONTS ================================================================ */
/* The font files live in site/fonts/. Nothing is loaded from Google. */

@font-face {
  font-family: "Bodoni Moda";
  src: url("../fonts/bodoni-moda-latin-variable.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bodoni Moda";
  src: url("../fonts/bodoni-moda-latin-variable-italic.woff2") format("woff2");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-variable.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-latin-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}


/* 2. COLOURS AND SIZES ==================================================== */

:root {
  /* Neutrals */
  --page: #F2F0EF;          /* warm off-white page background */
  --card: #FFFFFF;          /* cards */
  --tint: #E7E3DE;          /* tinted bands and the footer */
  --line: #E3E0DC;          /* thin borders */
  --line-strong: #CFCAC3;   /* rules that need to be seen */
  --ink: #2B2A28;           /* main text, and the dark bands */
  --ink-soft: #6F6B67;      /* secondary text */

  /* Brand: deep green. Used for the wordmark and for "us". */
  --green: #2F6659;
  --green-tint: #E3EEEA;

  /* Action: terracotta. Used ONLY for things you can click. */
  --action: #9F513C;
  --action-hover: #86412F;
  --action-bright: #B76449;
  --action-tint: #F6E9E4;

  /* Accent: gold. Used only for thin lines and small labels on dark. */
  --gold: #C8A24C;

  /* On dark backgrounds */
  --on-dark: #FFFFFF;
  --on-dark-soft: rgba(255, 255, 255, 0.76);
  --on-dark-line: rgba(255, 255, 255, 0.16);

  /* Fonts */
  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;

  /* Sizes and spacing */
  --wrap: 1160px;                              /* widest the content gets */
  --gutter: 24px;                              /* space at the screen edges */
  --section: clamp(72px, 9.5vw, 136px);        /* space above and below each section */
  --radius-input: 8px;
  --radius-card: 12px;
  --radius-photo: 16px;

  /* Movement */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}


/* 3. BASICS =============================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;   /* so links to a section do not hide under the header */
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-optical-sizing: auto;
  text-wrap: balance;
}

a { color: inherit; }

[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--action-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

/* The content column */
.wrap {
  width: min(100% - (var(--gutter) * 2), var(--wrap));
  margin-inline: auto;
}

.section { padding-block: var(--section); }
.section--tint { background: var(--tint); }
.section--tight-top { padding-top: 0; }

/* Link for keyboard users, hidden until focused */
.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }


/* 4. SMALL REUSABLE PIECES ================================================ */

/* Kicker: the small uppercase label above a heading */
.kicker {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.75rem;
  line-height: 1.5;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.kicker--gold { color: var(--gold); }

/* Section heading block: kicker, heading, one sentence */
.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head h2,
.h2 {
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
  margin-top: 16px;
}
.section-head p:not(.kicker),
.lead {
  margin-top: 20px;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 54ch;
}

/* Two columns: heading on the left, content on the right */
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.split__head { position: sticky; top: 120px; }
.split__head .h2 { margin-top: 16px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-input);
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s, color 0.18s, border-color 0.18s, transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn svg { width: 17px; height: 17px; flex: none; transition: transform 0.3s var(--ease); }
.btn:hover { transform: translateY(-1px); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--action); color: #fff; }
.btn--primary:hover { background: var(--action-hover); box-shadow: 0 14px 28px -14px rgba(159, 81, 60, 0.7); }

.btn--secondary { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--secondary:hover { background: var(--ink); color: var(--page); }

.btn--small { min-height: 44px; padding: 0 18px; font-size: 0.94rem; }
.btn--full { width: 100%; }

/* Text link with an arrow */
.link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--action);
  font-weight: 700;
  text-decoration: none;
}
.link svg { width: 16px; height: 16px; flex: none; transition: transform 0.3s var(--ease); }
.link:hover { text-decoration: underline; text-underline-offset: 5px; }
.link:hover svg { transform: translateX(3px); }

/* Links inside running text */
.text-link { color: var(--action); font-weight: 600; text-underline-offset: 3px; }
.text-link:hover { color: var(--action-hover); }

/* Tags: small rounded status labels */
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 11px;
  border-radius: 999px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: #EDEAE6;
  color: var(--ink);
}
.tag--green { background: var(--green-tint); color: var(--green); }
.section--tint .tag { background: var(--card); }
.tag--action { background: var(--action-tint); color: var(--action); }

/* Source line: "Source: ... Last checked: ..." */
.source {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--ink-soft);
}
.source a { color: inherit; text-underline-offset: 3px; }

/* The disclosure line ("We are not the Government of Tanzania") */
.disclosure {
  padding-left: 18px;
  border-left: 2px solid var(--gold);
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 58ch;
}
.disclosure strong { color: var(--ink); }
.disclosure a { color: inherit; text-underline-offset: 3px; }
.disclosure--on-dark { color: var(--on-dark-soft); }
.disclosure--on-dark strong { color: #fff; }

/* A quiet boxed note with a gold line on its left edge */
.note {
  padding: 4px 0 4px 20px;
  border-left: 2px solid var(--gold);
}
.note p + p { margin-top: 10px; }

/* The two fees, always shown as two separate numbers */
.fees {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.fees__part { display: grid; gap: 6px; }
.fees__amount {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 2.5rem;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: lining-nums;
}
.fees__label {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.6875rem;
  line-height: 1.35;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  max-width: 11ch;
}
.fees__plus {
  font-family: var(--serif);
  font-size: 1.6rem;
  line-height: 2.5rem;
  color: var(--ink);
  opacity: 0.55;
}
.fees__total {
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.98rem;
  color: var(--ink-soft);
}
.fees__total strong { color: var(--ink); }

/* A video inside a page (see templates/snippets.html) */
.video-block { margin-block: 32px; }
.video-block video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-photo);
  background: var(--ink);
}
.video-block figcaption { margin-top: 12px; font-size: 0.92rem; color: var(--ink-soft); }

/* Plain text pages (used by templates/page-template.html) */
.page-head { padding-block: clamp(56px, 8vw, 104px) clamp(32px, 4vw, 56px); }
.page-head h1 {
  margin-top: 16px;
  font-weight: 400;
  font-size: clamp(2.6rem, 5.4vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  max-width: 16ch;
}
.page-head .lead { margin-top: 24px; }
.page-head .disclosure { margin-top: 28px; }
/* "Coming soon" page (site/404.html) */
.page-head--solo { padding-bottom: var(--section); }
.page-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.page-note { margin-top: 32px; max-width: 68ch; }
.page-note a { color: var(--action); font-weight: 600; text-underline-offset: 3px; }
.prose { max-width: 68ch; padding-bottom: var(--section); }
.prose h2 { margin-top: 56px; font-size: clamp(1.7rem, 2.6vw, 2.2rem); line-height: 1.12; letter-spacing: -0.01em; }
.prose h3 { margin-top: 36px; font-size: 1.4rem; line-height: 1.2; }
.prose p, .prose ul, .prose ol { margin-top: 16px; }
.prose ul { padding-left: 20px; list-style: disc; }
.prose ol { padding-left: 20px; list-style: decimal; }
.prose li + li { margin-top: 6px; }
.prose a { color: var(--action); font-weight: 600; text-underline-offset: 3px; }

/* Marks a spot where real content is still to come */
.placeholder-chip {
  display: inline-block;
  padding: 4px 10px;
  border: 1px dashed currentColor;
  border-radius: 6px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  opacity: 0.75;
}


/* 5. STATUS STRIP AND HEADER ============================================== */

/* The thin dark strip at the very top of every page */
.status-strip {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.8125rem;
  line-height: 1.4;
}
.status-strip p {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 8px;
  min-height: 38px;
  padding: 8px 20px;
  text-align: center;
}
.status-strip strong { color: #fff; font-weight: 700; }
.status-strip__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(200, 162, 76, 0.25);
  margin-right: 4px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(242, 240, 239, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  width: min(100% - (var(--gutter) * 2), 1360px);
  margin-inline: auto;
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Wordmark: the small mark plus the words */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  color: var(--green);
  text-decoration: none;
  white-space: nowrap;
}
.brand img { width: 30px; height: 30px; flex: none; }

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: none;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.96rem;
  line-height: 1.2;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s;
}
.nav__link:hover { background: rgba(43, 42, 40, 0.06); }
.nav__link svg { width: 14px; height: 14px; transition: transform 0.25s var(--ease); }

/* The "Visa types" dropdown */
.nav__group { position: relative; }
.nav__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 340px;
  padding: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: 0 24px 48px -24px rgba(43, 42, 40, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.18s, transform 0.25s var(--ease), visibility 0.18s;
}
.nav__group:hover .nav__menu,
.nav__group.is-open .nav__menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.nav__group:hover .nav__toggle svg,
.nav__group.is-open .nav__toggle svg { transform: rotate(180deg); }
.nav__menu a {
  display: block;
  padding: 11px 14px;
  border-radius: 8px;
  text-decoration: none;
}
.nav__menu a:hover { background: var(--page); }
.nav__menu-name { display: block; font-weight: 600; font-size: 0.98rem; }
.nav__menu-official { display: block; font-size: 0.82rem; color: var(--ink-soft); }

.nav__cta { margin-left: 12px; }

/* The menu button, shown only on smaller screens */
.menu-button {
  display: none;
  margin-left: auto;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--card);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--ink);
  cursor: pointer;
}
.menu-button svg { width: 20px; height: 20px; }
.menu-button .icon-close { display: none; }
.site-header.is-open .menu-button .icon-open { display: none; }
.site-header.is-open .menu-button .icon-close { display: block; }


/* 6. HERO AND THE CHECKER CARD ============================================ */

.hero {
  position: relative;
  isolation: isolate;
  background: var(--ink);
  color: var(--on-dark);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img,
.hero__media video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
/* A dark veil over the photo so white text stays readable */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(27, 25, 23, 0.62) 0%, rgba(27, 25, 23, 0.38) 55%, rgba(27, 25, 23, 0.12) 100%),
    linear-gradient(180deg, rgba(27, 25, 23, 0.5) 0%, rgba(27, 25, 23, 0.38) 45%, rgba(27, 25, 23, 0.72) 100%);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
  min-height: min(calc(100svh - 106px), 880px);
  padding-block: 72px 88px;
}

.hero__title {
  margin-top: 22px;
  font-weight: 400;
  font-size: clamp(3rem, 7vw, 6.25rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  max-width: 9.5ch;
}
.hero__title em { font-style: italic; font-weight: 400; }

.hero__lead {
  margin-top: 32px;
  font-size: clamp(1.06rem, 1.35vw, 1.2rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.84);
  max-width: 46ch;
}
.hero .disclosure { margin-top: 32px; max-width: 52ch; font-size: 0.9rem; }

.hero .placeholder-chip {
  position: absolute;
  left: var(--gutter);
  bottom: 18px;
  color: rgba(255, 255, 255, 0.8);
}

/* The white card: "Check which visa you need" */
.checker {
  background: var(--card);
  color: var(--ink);
  border-radius: var(--radius-photo);
  padding: 30px;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.65);
}
.checker__title {
  font-size: 1.75rem;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-top: 10px;
}
.checker__fields { display: grid; gap: 16px; margin-top: 24px; }
.field label {
  display: block;
  margin-bottom: 7px;
  font-weight: 600;
  font-size: 0.94rem;
}
.field select {
  width: 100%;
  height: 54px;
  padding: 0 46px 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-input);
  background-color: var(--page);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232B2A28' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 18px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.field select:hover { border-color: var(--ink-soft); }
.field select:focus-visible {
  outline: none;
  border-color: var(--action-bright);
  box-shadow: 0 0 0 3px var(--action-tint);
}

.checker__answers {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  min-height: 96px;
}
.answer { display: grid; gap: 14px; }
.answer--idle { color: var(--ink-soft); font-size: 0.98rem; }
.answer__title {
  font-size: 1.6rem;
  line-height: 1.12;
  letter-spacing: -0.01em;
}
.answer__official { margin-top: -8px; font-size: 0.86rem; color: var(--ink-soft); }
.answer__text { font-size: 0.96rem; line-height: 1.55; }
.answer .tag { justify-self: start; }
.answer .fees { margin-top: 4px; }
.answer .btn { margin-top: 4px; }

.checker__foot {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}


/* 7. YOU ALREADY KNOW TANZANIA + THE FIVE WORLDS ========================== */

/* The four big names with their small notes */
.names { border-bottom: 1px solid var(--line-strong); }
.names li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0 16px;
  border-top: 1px solid var(--line-strong);
}
.names__name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 6.2vw, 5.25rem);
  line-height: 1;
  letter-spacing: -0.025em;
}
.names__note {
  flex: none;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.names li.is-surprise .names__name { font-style: italic; }
.names li.is-surprise .names__note { color: var(--ink); }

.worlds-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-top: clamp(72px, 9vw, 128px);
  margin-bottom: 32px;
}
.worlds-head h3 {
  margin-top: 12px;
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

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

/* One world: a tall photo card */
.world {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-photo);
  overflow: hidden;
  background: #5C5751;
  color: #fff;
  text-decoration: none;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.world img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92);
  transition: transform 1.1s var(--ease), filter 1.1s var(--ease);
}
/* Darkens the bottom of the photo so the words are readable,
   and lightly shades the top so the small label shows on a pale sky */
.world::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(20, 19, 17, 0.42) 0%, rgba(20, 19, 17, 0) 24%),
    linear-gradient(180deg, rgba(20, 19, 17, 0) 30%, rgba(20, 19, 17, 0.9) 100%);
}
.world__num {
  position: absolute;
  top: 22px;
  left: 24px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.world__arrow {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background-color 0.3s, transform 0.3s var(--ease);
}
.world__arrow svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.world__body { display: grid; gap: 8px; padding: 26px 24px 24px; }
.world__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.85rem;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
/* Three lines are kept free for the sentence, so every title sits at the same height */
.world__text { min-height: 4.5em; font-size: 0.96rem; line-height: 1.5; color: rgba(255, 255, 255, 0.86); }
.world__visa {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.6875rem;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}
.world:hover { transform: translateY(-4px); box-shadow: 0 30px 50px -30px rgba(43, 42, 40, 0.6); }
.world:hover img { transform: scale(1.05); filter: saturate(1); }
.world:hover .world__arrow { background: var(--action-bright); transform: scale(1.06); }
.world:hover .world__arrow svg { transform: translateX(2px); }

/* The sixth tile: the quiet pointer from the destination to the visa */
.bridge {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: 32px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-photo);
}
.bridge__text {
  margin-top: 16px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.6rem, 2.3vw, 2.1rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.bridge__sub { margin-top: 16px; font-size: 0.98rem; color: var(--ink-soft); }

.worlds-source { margin-top: 28px; }


/* 8. GUIDES =============================================================== */

.guides { border-bottom: 1px solid var(--line-strong); }
.guide {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding: 28px 0;
  border-top: 1px solid var(--line-strong);
}
.guide__cover {
  width: 104px;
  border-radius: 4px;
  box-shadow: 0 18px 30px -18px rgba(43, 42, 40, 0.45);
}
.guide__num {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.guide__title { margin-top: 8px; font-size: 1.6rem; line-height: 1.12; letter-spacing: -0.01em; }
.guide__text { margin-top: 8px; font-size: 0.98rem; color: var(--ink-soft); max-width: 48ch; }
.guide__status { margin-top: 14px; }


/* 9. THE FOUR VISAS ======================================================= */

.visa-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.visa {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 7;
  row-gap: 20px;
  padding: 30px 24px 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  transition: border-color 0.3s, box-shadow 0.5s var(--ease), transform 0.5s var(--ease);
}
.visa:hover {
  border-color: var(--line-strong);
  box-shadow: 0 30px 50px -36px rgba(43, 42, 40, 0.45);
  transform: translateY(-3px);
}
.visa__name { font-size: 1.6rem; line-height: 1.1; letter-spacing: -0.01em; }
.visa__official { margin-top: 8px; font-size: 0.84rem; line-height: 1.45; color: var(--ink-soft); }
.visa__summary { font-size: 0.98rem; font-weight: 600; line-height: 1.45; }
.visa__who { display: contents; }
.visa__who > div { font-size: 0.92rem; line-height: 1.5; }
.visa__who > div + div { margin-top: -6px; }
.visa__who dt {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.visa__who dd { margin-top: 3px; }
.visa .link { align-self: end; }

/* The note for US passport holders, under the four cards */
.us-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px 40px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding: 24px 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-card);
}
.us-note p { max-width: 68ch; font-size: 0.98rem; }
.us-note strong { font-weight: 700; }

.visa-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px 40px;
  flex-wrap: wrap;
  margin-top: 40px;
}


/* 10. WHAT OUR FEE PAYS FOR =============================================== */

.pays { border-bottom: 1px solid var(--line-strong); }
.pays li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 4px 12px;
  padding: 24px 0;
  border-top: 1px solid var(--line-strong);
}
.pays__num {
  grid-row: span 2;
  padding-top: 5px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
}
.pays__title { font-family: var(--serif); font-weight: 500; font-size: 1.45rem; line-height: 1.15; letter-spacing: -0.01em; }
.pays__text { color: var(--ink-soft); font-size: 1rem; max-width: 56ch; }

.split__head .note { margin-top: 36px; font-size: 0.96rem; color: var(--ink-soft); max-width: 46ch; }
.split__head .note strong { color: var(--ink); }


/* 11. HOW IT WORKS ======================================================== */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-photo);
  overflow: hidden;
}
.step {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 250px;
  padding: 30px 28px 34px;
  border-left: 1px solid var(--line);
}
.step:first-child { border-left: 0; }
.step__num {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
}
.step__title { margin-top: 26px; font-size: 1.6rem; line-height: 1.1; letter-spacing: -0.015em; }
.step__text { font-size: 0.96rem; line-height: 1.55; color: var(--ink-soft); }


/* 12. WHEN TO APPLY (DARK BAND) =========================================== */

.section--dark { background: var(--ink); color: var(--on-dark); }
.section--dark .h2 { font-size: clamp(2rem, 3.4vw, 2.9rem); }
.window-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.window-text p:not(.kicker) { margin-top: 20px; color: var(--on-dark-soft); max-width: 54ch; }
.window-text p strong { color: #fff; }
.window-text .window-text__example { font-size: 0.94rem; }

/* The picture of the fixed 90-day window */
.window {
  padding: 36px;
  border: 1px solid var(--on-dark-line);
  border-radius: var(--radius-photo);
}
.window__row {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
  gap: 10px;
}
.window__row--bars { margin-top: 22px; }
.window__bar,
.window__out {
  display: flex;
  align-items: center;
  min-height: 76px;
  padding: 14px 18px;
  border-radius: 8px;
  font-weight: 700;
  line-height: 1.25;
}
.window__bar { background: var(--gold); color: var(--ink); font-size: 1.05rem; }
.window__out {
  justify-content: center;
  text-align: center;
  border: 1.5px dashed rgba(255, 255, 255, 0.5);
  color: #fff;
  font-size: 0.92rem;
}
.window__row--dates { margin-top: 14px; }
.window__dates { display: flex; justify-content: space-between; gap: 12px; }
.window__date strong {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1.1;
}
.window__date span,
.window__after {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.6875rem;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}
.window__date--end { text-align: right; }
.window__after { text-align: center; padding-top: 4px; }
.window figcaption {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--on-dark-line);
  font-size: 0.92rem;
  color: var(--on-dark-soft);
}


/* 13. WHO YOU ARE DEALING WITH ============================================ */

.who-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.who {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--radius-photo);
}
.who h3 { font-size: clamp(1.8rem, 2.6vw, 2.4rem); line-height: 1.08; letter-spacing: -0.015em; }
.who p:not(.kicker) { max-width: 46ch; }
.who .link { margin-top: auto; align-self: flex-start; }

.who--them { background: var(--card); border: 1px solid var(--line); }
.who--them p:not(.kicker) { color: var(--ink-soft); }

.who--us { background: var(--green); color: #fff; }
.who--us .kicker { color: rgba(255, 255, 255, 0.72); }
.who--us p:not(.kicker) { color: rgba(255, 255, 255, 0.88); }
.who--us .link { color: #fff; }
.who__list { display: grid; gap: 10px; }
.who__list li {
  position: relative;
  padding-left: 22px;
  color: rgba(255, 255, 255, 0.88);
}
.who__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 10px;
  height: 2px;
  background: var(--gold);
}


/* 14. QUESTIONS =========================================================== */

.faq {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}
.faq details + details { border-top: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 20px 28px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.35rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--ink-soft);
  transition: transform 0.25s var(--ease), color 0.2s;
}
.faq details[open] summary svg { transform: rotate(180deg); color: var(--action); }
.faq summary:hover svg { color: var(--action); }
.faq__answer { padding: 0 28px 28px; max-width: 66ch; }
.faq__answer p + p { margin-top: 12px; }
.faq__answer .source { margin-top: 16px; }
.split__head .link { margin-top: 24px; }


/* 15. FOOTER ============================================================== */

.site-footer {
  background: var(--tint);
  padding-block: 80px 40px;
  font-size: 0.96rem;
}
.site-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr));
  gap: 40px 32px;
}
.site-footer .brand { font-size: 1.45rem; }
.site-footer__tagline {
  margin-top: 16px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.25;
  max-width: 16ch;
}
.site-footer__email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-top: 20px;
  font-weight: 600;
  text-underline-offset: 4px;
}
.site-footer__email svg { width: 18px; height: 18px; flex: none; color: var(--ink-soft); }
.site-footer h2 {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.site-footer__list { margin-top: 12px; }
.site-footer__list a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  text-decoration: none;
}
.site-footer__list a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-footer__bottom {
  display: grid;
  gap: 20px;
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid var(--line-strong);
}
.site-footer__bottom .disclosure { font-size: 0.86rem; max-width: 86ch; }
.site-footer__copy { font-size: 0.86rem; color: var(--ink-soft); }


/* 16. GENTLE MOVEMENT ===================================================== */
/* Blocks fade up softly as they come into view. Switched off for anyone
   whose device is set to reduce motion. */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  }
  .js .reveal.is-visible { opacity: 1; transform: none; }

  .hero__text > *,
  .hero .checker { animation: rise 0.9s var(--ease) both; }
  .hero__text > :nth-child(2) { animation-delay: 0.08s; }
  .hero__text > :nth-child(3) { animation-delay: 0.16s; }
  .hero__text > :nth-child(4) { animation-delay: 0.24s; }
  .hero .checker { animation-delay: 0.3s; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}


/* 17. SMALLER SCREENS ===================================================== */

/* Narrow laptops: the menu folds behind a button */
@media (max-width: 1180px) {
  .menu-button { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    padding: 8px var(--gutter) 28px;
    background: var(--page);
    border-bottom: 1px solid var(--line-strong);
    box-shadow: 0 30px 40px -30px rgba(43, 42, 40, 0.35);
    max-height: calc(100svh - 68px);
    overflow-y: auto;
  }
  .site-header.is-open .nav { display: block; }
  .nav__link {
    display: flex;
    width: 100%;
    min-height: 52px;
    padding: 0;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
    font-weight: 600;
  }
  .nav__link:hover { background: none; }
  .nav__toggle { cursor: default; }
  .nav__toggle svg { display: none; }
  .nav__menu {
    position: static;
    width: auto;
    padding: 4px 0 8px;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: none;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav__menu a { padding: 9px 0 9px 16px; }
  .nav__cta { display: flex; width: 100%; margin: 24px 0 0; min-height: 52px; font-size: 1rem; }
}

/* Tablets: two-column layouts stack */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-block: 64px 96px; }
  .hero__title { max-width: 11ch; }
  .checker { max-width: 560px; }

  .split { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .split__head { position: static; }

  .worlds-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .visa-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step { min-height: 0; }
  .step:nth-child(3) { border-left: 0; }
  .step:nth-child(n+3) { border-top: 1px solid var(--line); }
  .window-grid { grid-template-columns: minmax(0, 1fr); }
  .site-footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__brand { grid-column: 1 / -1; }
}

/* Phones */
@media (max-width: 640px) {
  :root { --section: 64px; }
  body { font-size: 1rem; }
  html { scroll-padding-top: 84px; }

  .site-header__inner { min-height: 60px; }
  .brand { font-size: 1.12rem; gap: 9px; }
  .brand img { width: 26px; height: 26px; }
  .menu-button__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .menu-button { padding: 0 11px; }
  .nav { max-height: calc(100svh - 60px); }

  .hero__inner { padding-block: 48px 84px; gap: 40px; }
  .hero__title { margin-top: 18px; font-size: clamp(2.9rem, 14.5vw, 4rem); }
  .hero__lead { margin-top: 24px; }
  .hero .disclosure { margin-top: 24px; }
  .checker { padding: 22px 20px; border-radius: 14px; }
  .checker__title { font-size: 1.55rem; }
  .field select { font-size: 1rem; }

  .section-head { margin-bottom: 36px; }
  .section-head p:not(.kicker), .lead { font-size: 1.05rem; }

  .names li { padding: 16px 0 12px; }
  .names__name { font-size: clamp(2.3rem, 11.5vw, 3.2rem); }
  .names__note { font-size: 0.6875rem; letter-spacing: 0.1em; }

  .worlds-head { display: block; margin-bottom: 24px; }
  /* On phones the five worlds become one row you swipe sideways.
     The next card peeks in from the right to show there is more. */
  .worlds-grid {
    display: flex;
    gap: 12px;
    margin-inline: calc(var(--gutter) * -1);
    padding: 0 var(--gutter) 4px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .worlds-grid::-webkit-scrollbar { display: none; }
  .world, .bridge { flex: 0 0 82%; scroll-snap-align: start; }
  .world { aspect-ratio: auto; min-height: 430px; }
  .world__text { min-height: 0; }
  .bridge { padding: 26px 22px; }
  .js .worlds-grid .reveal { opacity: 1; transform: none; }

  .guide { grid-template-columns: 76px minmax(0, 1fr); gap: 18px; padding: 22px 0; align-items: start; }
  .guide__cover { width: 76px; }
  .guide__title { font-size: 1.35rem; }

  .visa-grid { grid-template-columns: minmax(0, 1fr); }
  .visa { padding: 26px 22px 18px; }
  .us-note { padding: 22px; }
  .visa-foot { margin-top: 28px; }
  .visa-foot .btn { width: 100%; }

  .pays li { grid-template-columns: 44px minmax(0, 1fr); padding: 20px 0; }
  .pays__title { font-size: 1.3rem; }

  .steps { grid-template-columns: minmax(0, 1fr); }
  .step { border-left: 0; padding: 24px 22px 26px; }
  .step + .step { border-top: 1px solid var(--line); }
  .step__title { margin-top: 10px; font-size: 1.45rem; }

  .window { padding: 22px 18px; }
  .window__bar, .window__out { min-height: 64px; padding: 10px 12px; }
  .window__bar { font-size: 0.94rem; }
  .window__out { font-size: 0.8rem; }
  .window__date strong { font-size: 1.2rem; }

  .who-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }

  .faq summary { padding: 18px 20px; font-size: 1.2rem; min-height: 64px; }
  .faq__answer { padding: 0 20px 22px; }

  .site-footer { padding-block: 56px 32px; }
  .site-footer__bottom { margin-top: 44px; }
  .site-footer__list a { min-height: 44px; }
}

/* Small phones: slightly tighter edges */
@media (max-width: 430px) {
  :root { --gutter: 16px; }
  .status-strip { font-size: 0.78rem; }
}
