/* ========== Reset & Base ========== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: #1e293b;
  background-color: #f8fafc;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ========== Layout ========== */
.container {
  width: min(92%, 1120px);
  margin-inline: auto;
  padding-left: clamp(0.85rem, 3vw, 1.5rem);
  padding-right: clamp(0.85rem, 3vw, 1.5rem);
}

/* ========== Header ========== */
.site-header {
  background: #0f172a;
  color: #f1f5f9;
  padding: 0.95rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #1e293b;
  box-shadow: 0 1px 0 rgba(255,255,255,0.03);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.logo {
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #f8fafc;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.25rem;
}

.main-nav a {
  font-size: 0.93rem;
  font-weight: 500;
  color: #94a3b8;
  transition: color 0.2s ease;
  padding: 0.25rem 0;
}

.main-nav a:hover,
.main-nav a.active {
  color: #f8fafc;
}

/* ========== Mobile nav toggle ========== */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid #334155;
  border-radius: 8px;
  width: 44px;
  height: 40px;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: #e2e8f0;
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }
  .header-inner {
    flex-wrap: nowrap;
  }
  .main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0 0.75rem;
    border-top: 1px solid #1e293b;
    margin-top: 0.65rem;
  }
  .main-nav.is-open {
    display: flex;
  }
  .main-nav a {
    padding: 0.7rem 0.25rem;
    font-size: 1rem;
    border-bottom: 1px solid #1e293b;
  }
  .main-nav a:last-child {
    border-bottom: none;
  }
  .header-inner {
    flex-wrap: wrap;
  }
}


/* ========== Hero base (overridden by Installment 1 rules later) ========== */
.lead {
  font-size: 1.15rem;
  max-width: 540px;
  margin: 0 auto 2.2rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ========== Sections ========== */
.section {
  padding: 4.8rem 0;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
}

.section-header h2 {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
  color: #0f172a;
}

.section-intro {
  color: #64748b;
  font-size: 1.05rem;
}

/* ========== Cards ========== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.6rem;
}

.card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.9rem 1.8rem;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07);
  border-color: #cbd5e1;
}

.card h3 {
  font-size: 1.2rem;
  font-weight: 650;
  margin-bottom: 0.75rem;
  color: #0f172a;
}

.card p {
  color: #475569;
  font-size: 0.98rem;
  margin-bottom: 1.4rem;
}

.card-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: #0c4a6e;
  transition: color 0.2s ease;
}

.card-link:hover {
  color: #082f49;
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-primary {
  background: #0c4a6e;
  color: #ffffff;
  border: 2px solid transparent;
}

.btn-primary:hover {
  background: #082f49;
}

.btn-outline {
  background: transparent;
  color: #f8fafc;
  border: 2px solid rgba(255, 255, 255, 0.45);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.75);
  color: #ffffff;
}

/* ========== Footer ========== */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 2.4rem 0;
  text-align: center;
  margin-top: 2rem;
  border-top: 1px solid #1e293b;
}

.footer-note {
  font-size: 0.9rem;
  max-width: 520px;
  margin: 0 auto 0.6rem;
  line-height: 1.5;
}

.footer-copy {
  font-size: 0.85rem;
  color: #64748b;
}

/* ========== Responsive Adjustments ========== */
@media (max-width: 640px) {
  .hero {
  padding: 3.5rem 0 3.8rem;
}

.hero h1 {
  font-size: clamp(1.75rem, 5vw, 2.4rem);
}

.lead {
  font-size: 1.05rem;
  margin-bottom: 1.8rem;
}

.hero-actions {
  flex-direction: column;
  align-items: center;
}

.hero-actions .btn {
  width: 100%;
  max-width: 280px;
}

  .section {
    padding: 3.5rem 0;
  }

  .main-nav {
    gap: 0.3rem 1rem;
  }
}
/* ========== Page Header ========== */
.page-header {
  background: #0f172a;
  color: #f8fafc;
  padding: 3.5rem 0 3.2rem;
  text-align: center;
}

.page-header h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.8rem;
}

.page-header .lead {
  color: #94a3b8;
  max-width: 540px;
  margin: 0 auto;
  font-size: 1.1rem;
}

/* ========== Resource Groups ========== */
.resource-group {
  margin-bottom: 3.5rem;
}

.resource-group h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1.4rem;
  color: #0f172a;
  padding-bottom: 0.55rem;
  border-bottom: 2px solid #e2e8f0;
  letter-spacing: -0.02em;
}

.resource-detail {
  font-size: 0.92rem;
  color: #475569;
  margin-bottom: 0.35rem;
}

.resource-group .card p:last-of-type {
  margin-bottom: 0.9rem;
}

.resource-group .card-link {
  display: inline-block;
  margin-top: 0.25rem;
}

/* ========== Support Page Content ========== */
.content-narrow {
  max-width: 720px;
}

.content-block {
  margin-bottom: 2.8rem;
}

.content-block h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #0f172a;
}

.process-list,
.note-list {
  padding-left: 1.3rem;
  color: #334155;
}

.process-list li,
.note-list li {
  margin-bottom: 0.7rem;
}

.highlight-box {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.8rem 1.6rem;
}

.contact-name {
  font-size: 1.15rem;
  margin: 1rem 0 0.4rem;
}

.contact-detail {
  margin-bottom: 0.3rem;
}

.contact-detail a {
  color: #0c4a6e;
  font-weight: 500;
}

.contact-detail a:hover {
  text-decoration: underline;
}
/* ========== Contact Form ========== */
.contact-form {
  margin-top: 1.5rem;
  max-width: 520px;
}

.form-group {
  margin-bottom: 1.3rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
  color: #0f172a;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #0c4a6e;
}

.contact-form .btn {
  margin-top: 0.5rem;
}

/* ========== Form Instructions Page ========== */
.do-box {
  background: #f0fff4;
  border-left: 4px solid #276749;
  padding: 1.4rem 1.5rem;
  border-radius: 0 8px 8px 0;
}

.dont-box {
  background: #fff5f5;
  border-left: 4px solid #c53030;
  padding: 1.4rem 1.5rem;
  border-radius: 0 8px 8px 0;
}

.warning-box {
  background: #fffaf0;
  border-left: 4px solid #dd6b20;
  padding: 1rem 1.3rem;
  margin-bottom: 1rem;
  border-radius: 0 6px 6px 0;
}

.tip-box {
  background: #ebf8ff;
  border-left: 4px solid #2b6cb0;
  padding: 1.4rem 1.5rem;
  border-radius: 0 8px 8px 0;
}

/* ========== Hero (Installment 1) ========== */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 480px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #f8fafc;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.55) contrast(1.05);
  z-index: 0;
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    165deg,
    rgba(15, 23, 42, 0.72) 0%,
    rgba(15, 23, 42, 0.55) 45%,
    rgba(15, 23, 42, 0.78) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 3.5rem 1.5rem;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #93c5fd;
  margin-bottom: 1rem;
  opacity: 0.95;
}

.hero-content h1 {
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 1.15rem;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.4);
}

.hero-content .lead {
  font-size: 1.18rem;
  max-width: 540px;
  margin: 0 auto 2.3rem;
  line-height: 1.7;
  color: #e2e8f0;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ========== Cards polish ========== */
.card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 2rem 1.9rem;
  transition: box-shadow 0.28s ease, border-color 0.28s ease, transform 0.28s ease;
}

.card:hover {
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.09);
  border-color: #cbd5e1;
  transform: translateY(-2px);
}

.card h3 {
  font-size: 1.22rem;
  font-weight: 650;
  margin-bottom: 0.8rem;
  color: #0f172a;
}

.card p {
  color: #475569;
  font-size: 0.98rem;
  margin-bottom: 1.5rem;
  line-height: 1.65;
}

.card-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: #0c4a6e;
  transition: color 0.2s ease;
}

.card-link:hover {
  color: #082f49;
}

/* ========== Buttons polish ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.82rem 1.65rem;
  font-size: 0.97rem;
  font-weight: 600;
  border-radius: 9px;
  border: 2px solid transparent;
  transition: all 0.22s ease;
  cursor: pointer;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: #0c4a6e;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(30, 64, 175, 0.28);
}

.btn-primary:hover {
  background: #082f49;
  box-shadow: 0 8px 22px rgba(30, 64, 175, 0.4);
  transform: translateY(-2px);
}

.btn-primary:active {
  background: #172554;
  box-shadow: 0 2px 8px rgba(30, 64, 175, 0.3);
  transform: translateY(0);
}

.btn-outline {
  background: transparent;
  color: #f8fafc;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.9);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-outline:active {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(0);
}

/* ========== Trust Strip ========== */
.trust-strip {
  padding: 3rem 0 3.4rem;
  text-align: center;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.trust-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 1.6rem;
}

.trust-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
  margin-bottom: 1.3rem;
}

.trust-logos img {
  max-height: 50px;
  width: auto;
  opacity: 0.9;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.trust-logos img:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.trust-note {
  font-size: 0.9rem;
  color: #64748b;
  max-width: 380px;
  margin: 0 auto;
  line-height: 1.5;
}

/* Mobile adjustments */
@media (max-width: 640px) {
  .hero {
    min-height: 420px;
  }

  .hero-content {
    padding: 2.8rem 1.25rem;
  }

  .hero-content h1 {
    font-size: clamp(1.8rem, 5.5vw, 2.3rem);
  }

  .hero-content .lead {
    font-size: 1.08rem;
    margin-bottom: 1.9rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 280px;
  }

  .trust-logos {
    gap: 1.8rem;
  }

  .trust-logos img {
    max-height: 42px;
  }
}
/* ========== About page (Installment 2) ========== */
.about-profile {
  text-align: center;
  margin-bottom: 2.8rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e2e8f0;
}

.about-photo {
  max-width: 260px;
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
  margin: 0 auto 1.1rem;
}

.about-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.2rem;
}

.about-role {
  font-size: 0.95rem;
  color: #64748b;
}

.about-image-wrap {
  text-align: center;
  margin: 2.2rem 0 2.8rem;
}

.about-secondary-img {
  max-width: 360px;
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
}

.highlight-box h2 {
  margin-bottom: 1rem;
}

/* ========== Support page process steps ========== */
.process-steps {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  position: relative;
}

.process-steps li {
  display: flex;
  gap: 1.15rem;
  margin-bottom: 0;
  align-items: flex-start;
  position: relative;
  padding-bottom: 1.5rem;
}

.process-steps li:last-child {
  padding-bottom: 0;
}

/* vertical connector */
.process-steps li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 1.1rem;
  top: 2.4rem;
  bottom: 0;
  width: 2px;
  background: #bfdbfe;
}

.process-steps .step-num {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: #0c4a6e;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.1rem;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 4px #eff6ff;
}

.process-steps li > div {
  flex: 1;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.95rem 1.1rem;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.process-steps strong {
  display: block;
  font-size: 1.05rem;
  color: #0f172a;
  margin-bottom: 0.3rem;
}

.process-steps p {
  margin: 0;
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.55;
}

@media (max-width: 480px) {
  .process-steps .step-num {
    width: 2rem;
    height: 2rem;
    font-size: 0.88rem;
  }
  .process-steps li:not(:last-child)::before {
    left: 0.95rem;
  }
  .process-steps li > div {
    padding: 0.85rem 0.95rem;
  }
}

.support-image-wrap {
  text-align: center;
  margin: 2rem 0 2.8rem;
}

.support-img {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
}

.support-img-caption {
  margin-top: 0.85rem;
  font-size: 0.9rem;
  color: #64748b;
}

/* ========== Application Fee card (Installment 4) ========== */
.fee-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 2.2rem 1.8rem;
  text-align: center;
  margin: 2rem 0 2.8rem;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.fee-label {
  font-size: 0.95rem;
  color: #64748b;
  margin-bottom: 0.35rem;
}

.fee-amount {
  font-size: 2.6rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.fee-sub {
  font-size: 0.9rem;
  color: #64748b;
  margin-top: 0.3rem;
  margin-bottom: 1.6rem;
}

.fee-btn {
  display: inline-block;
  width: 100%;
  max-width: 320px;
  padding: 0.9rem 1.5rem;
  font-size: 1rem;
}

.fee-or {
  margin: 1.4rem 0 0.7rem;
  font-size: 0.95rem;
  color: #64748b;
}

.btn-secondary {
  background: #f1f5f9;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  box-shadow: none;
}

.btn-secondary:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.btn-secondary:active {
  background: #cbd5e1;
  transform: translateY(0);
  box-shadow: none;
}

/* Dark-surface outline buttons on non-hero pages */
.section .btn-outline,
.highlight-box .btn-outline,
.content-block .btn-outline {
  color: #0c4a6e;
  border-color: #93c5fd;
  background: #fff;
}

.section .btn-outline:hover,
.highlight-box .btn-outline:hover,
.content-block .btn-outline:hover {
  background: #eff6ff;
  border-color: #0c4a6e;
  color: #082f49;
}

@media (prefers-reduced-motion: reduce) {
  .btn-primary:hover,
  .btn-secondary:hover,
  .btn-outline:hover,
  .btn-primary:active,
  .btn-secondary:active,
  .btn-outline:active {
    transform: none;
  }
}

/* ========== Final mobile polish (Installment 6) ========== */
@media (max-width: 480px) {
  .site-header {
    padding: 0.85rem 0;
  }

  .logo {
    font-size: 1.2rem;
  }

  .main-nav {
    gap: 0.25rem 0.9rem;
  }

  .main-nav a {
    font-size: 0.88rem;
  }

  .page-header {
    padding: 2.8rem 0 2.6rem;
  }

  .page-header h1 {
    font-size: 1.7rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .fee-amount {
    font-size: 2.3rem;
  }

  .about-photo {
    max-width: 220px;
  }
}


/* ========== Security badges ========== */
.security-badges-block {
  text-align: center;
  margin: 1.8rem 0 2.2rem;
  padding: 0 0.5rem;
}
.security-badges-block .badge-combined {
  max-width: 340px;
  width: 100%;
  height: auto;
  margin: 0 auto 1.1rem;
  display: block;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}
.security-badges-block .badge-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  max-width: 420px;
  margin: 0 auto;
  align-items: stretch;
}
.security-badges-block .badge-sm {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  background: #0b1f3a;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
}
@media (max-width: 480px) {
  .security-badges-block .badge-combined {
    max-width: 280px;
  }
  .security-badges-block .badge-row {
    max-width: 340px;
    gap: 0.45rem;
  }
}


/* ========== Accessibility ========== */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 0.75rem 1.25rem;
  background: #0c4a6e;
  color: #fff;
  font-weight: 600;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
  outline: 3px solid #93c5fd;
  outline-offset: 2px;
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.nav-toggle:focus-visible,
.card-link:focus-visible,
.toc a:focus-visible,
.form-toc-links a:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 3px;
  box-shadow: 0 0 0 1px #fff, 0 0 0 5px rgba(37, 99, 235, 0.35);
}

.main-nav a:focus-visible {
  color: #f8fafc;
  outline-color: #93c5fd;
  box-shadow: 0 0 0 1px #0f172a, 0 0 0 5px rgba(56, 189, 248, 0.45);
}

.logo:focus-visible {
  outline-color: #93c5fd;
  box-shadow: 0 0 0 1px #0f172a, 0 0 0 5px rgba(56, 189, 248, 0.45);
}

.nav-toggle:focus-visible {
  outline-color: #93c5fd;
  border-radius: 8px;
}

/* Prefer visible focus over removing outline for mouse users */
.btn:focus:not(:focus-visible),
button:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
  outline: none;
  box-shadow: none;
}

/* High-contrast keyboard path for primary actions */
.btn-primary:focus-visible {
  outline-color: #1d4ed8;
  box-shadow: 0 0 0 2px #fff, 0 0 0 6px rgba(29, 78, 216, 0.45);
}


/* ========== Cross-device fluid layout ========== */
/* Tablets */
@media (min-width: 641px) and (max-width: 1023px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.35rem;
  }
  .page-header {
    padding: 3rem 0 2.75rem;
  }
  .section {
    padding: 3.25rem 0;
  }
}

/* Laptops / desktops */
@media (min-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.75rem;
  }
  .content-narrow {
    max-width: 760px;
  }
  .page-header {
    padding: 3.75rem 0 3.25rem;
  }
  .section {
    padding: 4rem 0;
  }
}

/* Very large screens — keep content from stretching endlessly */
@media (min-width: 1400px) {
  .container {
    width: min(90%, 1200px);
  }
}

/* Prefer comfortable form controls on touch tablets */
@media (hover: none) and (pointer: coarse) {
  .main-nav a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .btn {
    min-height: 44px;
  }
}


/* ========== Subtle entrance motion (Installment 1) ========== */
@media (prefers-reduced-motion: no-preference) {
  .hero-content {
    animation: hg-fade-up 0.7s ease-out both;
  }
  .page-header .container {
    animation: hg-fade-up 0.55s ease-out both;
  }
  .reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.55s ease, transform 0.55s ease;
  }
  .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
  .card-grid .card:nth-child(1).reveal { transition-delay: 0.05s; }
  .card-grid .card:nth-child(2).reveal { transition-delay: 0.12s; }
  .card-grid .card:nth-child(3).reveal { transition-delay: 0.19s; }
}

@keyframes hg-fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-content,
  .page-header .container,
  .reveal {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}


/* ========== Back to top (Installment 6) ========== */
.back-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1.25rem;
  z-index: 900;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #0c4a6e;
  color: #fff;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease, background 0.2s ease;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: #1d4ed8;
}
.back-to-top:focus-visible {
  outline: 3px solid #93c5fd;
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  .back-to-top {
    transition: none;
  }
}
@media (max-width: 480px) {
  .back-to-top {
    right: 0.75rem;
    bottom: 0.85rem;
    width: 2.5rem;
    height: 2.5rem;
  }
}


/* ========== Print styles (Installment 7) ========== */
@media print {
  .site-header,
  .site-footer,
  .nav-toggle,
  .back-to-top,
  .no-print,
  .print-toolbar,
  .skip-link,
  .security-badges-block,
  .trust-strip,
  .hero-bg,
  .hero-overlay {
    display: none !important;
  }

  body {
    background: #fff !important;
    color: #000 !important;
    font-size: 11pt;
    line-height: 1.45;
  }

  a {
    color: #000 !important;
    text-decoration: underline;
  }

  .page-header {
    background: none !important;
    color: #000 !important;
    padding: 0 0 0.75rem !important;
    border-bottom: 2px solid #000;
    margin-bottom: 1rem;
  }

  .page-header h1 {
    color: #000 !important;
    font-size: 18pt !important;
  }

  .page-header .lead {
    color: #333 !important;
    max-width: none !important;
  }

  .section {
    padding: 0 !important;
  }

  .content-narrow,
  .container {
    max-width: none !important;
    width: 100% !important;
  }

  .content-block,
  .fee-card,
  .highlight-box,
  .expect-card,
  .focus-card,
  .card {
    box-shadow: none !important;
    page-break-inside: avoid;
  }

  .btn {
    border: 1px solid #000 !important;
    background: #fff !important;
    color: #000 !important;
    box-shadow: none !important;
  }

  .hero {
    min-height: auto !important;
    padding: 1rem 0 !important;
    background: none !important;
  }

  .hero-content {
    color: #000 !important;
  }
}

/* ========== Language Switcher ========== */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 2px;
  flex-shrink: 0;
}

.lang-btn {
  appearance: none;
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.32rem 0.55rem;
  border-radius: 6px;
  cursor: pointer;
  line-height: 1;
  transition: background 0.15s ease, color 0.15s ease;
}

.lang-btn:hover {
  color: #e2e8f0;
}

.lang-btn.is-active {
  background: #1e293b;
  color: #f8fafc;
}

.lang-btn:focus-visible {
  outline: 2px solid #38bdf8;
  outline-offset: 1px;
}

/* Desktop: logo | nav (grows) | language */
@media (min-width: 769px) {
  .header-inner {
    flex-wrap: nowrap;
  }
  .main-nav {
    margin-left: auto;
    margin-right: 0.85rem;
  }
  .header-actions {
    order: 3;
  }
}

/* Mobile: logo | language + hamburger  /  nav full-width when open */
@media (max-width: 768px) {
  .header-actions {
    margin-left: auto;
  }
}
