:root {
  --ink: #183047;
  --muted: #5d6b78;
  --line: #dfe6ea;
  --paper: #ffffff;
  --soft: #f4f7f4;
  --blue: #0069a8;
  --green: #07884f;
  --green-dark: #04663a;
  --shadow: 0 14px 40px rgba(24, 48, 71, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  background: var(--paper);
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  overflow: hidden;
  width: 42px;
  height: 30px;
  border-radius: 4px;
  background:
    linear-gradient(180deg, #0050a4 0 20%, #fff 20% 40%, #0050a4 40% 60%, #fff 60% 80%, #0050a4 80%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 50%;
  background: #cf142b;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.brand-mark::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 10px;
  width: 9px;
  height: 9px;
  background: #fff;
  clip-path: polygon(
    50% 0,
    61% 35%,
    98% 35%,
    68% 56%,
    79% 91%,
    50% 70%,
    21% 91%,
    32% 56%,
    2% 35%,
    39% 35%
  );
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-weight: 700;
}

.main-nav a {
  text-decoration: none;
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

.nav-cta,
.button.primary {
  color: #fff;
  background: var(--green);
}

.button.primary:hover,
.nav-cta:hover {
  background: var(--green-dark);
}

.button.secondary {
  color: var(--green-dark);
  background: #fff;
  border: 1px solid var(--line);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  min-height: 640px;
  background: #f1f4ef;
}

.hero-media {
  min-height: 640px;
  background:
    linear-gradient(90deg, rgba(9, 36, 52, 0.72), rgba(9, 36, 52, 0.16) 58%, rgba(9, 36, 52, 0)),
    url("/assets/hero-cuba.png") center / cover;
}

.hero-content {
  position: absolute;
  width: min(620px, calc(100% - 40px));
  margin: 96px 0 0 clamp(20px, 5vw, 72px);
  color: #fff;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #d6f6e5;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 12ch;
  margin-bottom: 24px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.96;
}

h2 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
}

h3 {
  font-size: 22px;
  line-height: 1.2;
}

.hero-copy {
  max-width: 560px;
  margin-bottom: 28px;
  font-size: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.steps-panel {
  align-self: center;
  margin: 40px clamp(20px, 5vw, 72px) 40px 52px;
}

.steps-panel h2 {
  margin-bottom: 24px;
  font-size: 32px;
}

.step-row {
  display: grid;
  grid-template-columns: 92px 1fr;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  text-decoration: none;
}

.step-row span {
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.wide {
  width: 100%;
  margin-top: 10px;
}

.section,
.feature-band,
.blog-teaser,
.page-hero,
.post-list,
.post-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.section {
  padding: 84px 0;
}

.intro {
  max-width: 780px;
  text-align: center;
}

.intro p,
.page-hero p,
.post-header p {
  color: var(--muted);
  font-size: 19px;
}

.feature-band {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  padding: 72px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-grid article,
.post-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  color: #fff;
  border-radius: 8px;
  background: var(--blue);
  font-weight: 900;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.check-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  padding: 18px 18px 18px 46px;
  border-radius: 8px;
  background: var(--soft);
  position: relative;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 22px;
  width: 14px;
  height: 8px;
  border-left: 3px solid var(--green);
  border-bottom: 3px solid var(--green);
  transform: rotate(-45deg);
}

.faq details {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  font-size: 20px;
  font-weight: 800;
}

.faq details p {
  max-width: 720px;
  margin: 16px 0 0;
  color: var(--muted);
}

.official-note {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  align-items: start;
  padding-top: 0;
}

.official-note p {
  color: var(--muted);
  font-size: 18px;
}

.blog-teaser {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 56px 0 84px;
}

.page-hero {
  padding: 76px 0 48px;
}

.page-hero h1,
.post-header h1 {
  max-width: 900px;
  color: var(--ink);
  font-size: clamp(42px, 6vw, 70px);
}

.post-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding-bottom: 84px;
}

.apply-hero {
  padding-bottom: 28px;
}

.apply-hero h1 {
  max-width: 820px;
}

.form-embed-shell {
  width: min(1180px, calc(100% - 40px));
  min-height: 620px;
  margin: 0 auto 84px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.post-card h2 {
  font-size: 25px;
}

.post-card h2 a,
.read-more,
.back-link {
  color: var(--green-dark);
  font-weight: 900;
  text-decoration: none;
}

.post-shell {
  max-width: 820px;
  padding: 56px 0 88px;
}

.back-link {
  display: inline-block;
  margin-bottom: 34px;
}

.post-header {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.prose {
  padding-top: 30px;
  font-size: 18px;
}

.prose h2 {
  margin-top: 38px;
  font-size: 32px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding: 42px clamp(20px, 5vw, 72px);
  color: #dfe8ec;
  background: #172b3b;
}

.site-footer p {
  margin: 8px 0 0;
  color: #aebdc7;
}

.site-footer nav {
  display: flex;
  gap: 20px;
}

.site-footer a {
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 920px) {
  .site-header,
  .blog-teaser,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header {
    gap: 16px;
  }

  .main-nav {
    flex-wrap: wrap;
    gap: 14px;
  }

  .hero {
    display: block;
  }

  .hero-media {
    min-height: 520px;
  }

  .hero-content {
    position: absolute;
    margin-top: -470px;
  }

  .steps-panel {
    margin: 0;
    padding: 32px 20px;
  }

  .feature-band,
  .split,
  .official-note,
  .post-list {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-header {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
  }

  .brand {
    gap: 10px;
    min-width: 0;
  }

  .brand-mark {
    width: 32px;
    height: 22px;
  }

  .brand-mark::after {
    left: 3px;
    top: 7px;
    width: 7px;
    height: 7px;
  }

  .brand small {
    display: none;
  }

  .brand strong {
    font-size: 14px;
    line-height: 1.1;
    white-space: nowrap;
  }

  .main-nav {
    width: auto;
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    justify-content: flex-end;
    align-items: center;
  }

  .main-nav a {
    width: auto;
    min-height: auto;
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    line-height: 1.1;
  }

  .main-nav .nav-cta {
    min-height: 34px;
    padding: 0 10px;
    font-size: 0;
  }

  .main-nav .nav-cta::after {
    content: "Start";
    font-size: 13px;
  }

  .hero-media {
    min-height: 560px;
  }

  .hero-content {
    margin-top: -510px;
  }

  h1 {
    font-size: 44px;
  }

  .step-row {
    grid-template-columns: 1fr;
  }

  .apply-page .page-hero {
    width: min(1120px, calc(100% - 36px));
    padding: 36px 0 18px;
  }

  .apply-page .page-hero .eyebrow {
    margin-bottom: 8px;
    font-size: 12px;
  }

  .apply-page .page-hero h1 {
    margin-bottom: 14px;
    font-size: 36px;
    line-height: 1.02;
  }

  .apply-page .page-hero p {
    margin-bottom: 0;
    font-size: 16px;
    line-height: 1.55;
  }

  .apply-page .form-embed-shell {
    width: min(1120px, calc(100% - 36px));
    min-height: 640px;
    margin: 0 auto 48px;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
}
