:root {
  --teal-700: #0f5f6b;
  --teal-500: #1e9ca4;
  --gold: #c8a45d;
  --ink: #11333f;
  --muted: #4f6570;
  --white: #ffffff;
  --line: #d8e9eb;
  --ok: #166534;
  --err: #b42318;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Public Sans", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 4% 8%, rgba(143, 212, 214, 0.45) 0, transparent 38%),
    radial-gradient(circle at 96% 12%, rgba(200, 164, 93, 0.3) 0, transparent 32%),
    linear-gradient(180deg, #f9f5e8 0%, #f4fbfc 50%, #ecf8f9 100%);
  line-height: 1.45;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

main {
  flex: 1;
}

/* ── Layout ── */
.shell {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
}

/* ── Topbar ── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(249, 245, 232, 0.88);
  border-bottom: 1px solid rgba(17, 51, 63, 0.08);
}

.topbar-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* ── Brand ── */
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.brand b {
  font-family: "Fraunces", serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  display: block;
  line-height: 1.2;
}

.brand small {
  font-size: 0.82rem;
  color: var(--muted);
}

/* ── Nav ── */
.menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.menu a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
}

.menu a:hover {
  background: rgba(30, 156, 164, 0.12);
}

/* ── Language Switch ── */
.lang-switch {
  display: inline-flex;
  align-items: center;
  background: rgba(17, 51, 63, 0.09);
  border: 1px solid rgba(17, 51, 63, 0.1);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
  flex-shrink: 0;
  cursor: pointer;
}

.lang-opt {
  font-family: "Public Sans", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  border: none;
  border-radius: 999px;
  padding: 0.3rem 0.62rem;
  cursor: pointer;
  background: transparent;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  line-height: 1.4;
  white-space: nowrap;
  transition: background 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.lang-opt.active {
  background: var(--teal-700);
  color: #fff;
  box-shadow: 0 1px 5px rgba(15, 95, 107, 0.35);
}

.lang-opt:not(.active):hover {
  color: var(--ink);
  background: rgba(17, 51, 63, 0.06);
}


/* ── Buttons ── */
.cta {
  border: none;
  border-radius: 999px;
  background: linear-gradient(120deg, #d5b06a, #b88f43);
  color: #fffdfa;
  font-family: inherit;
  font-size: inherit;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  padding: 0.76rem 1.15rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.cta.ghost {
  background: var(--white);
  color: var(--ink);
  border: 1px solid rgba(17, 51, 63, 0.2);
}

/* ── Section label ── */
.label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--teal-700);
  font-weight: 700;
}

/* ── Card ── */
.card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 12px 24px rgba(17, 51, 63, 0.08);
  padding: clamp(1rem, 2vw, 1.5rem);
}

/* ── Apply (PDF steps) ── */
.apply-wrap {
  padding: clamp(1.25rem, 2.5vw, 2rem);
  border-radius: 24px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(231, 245, 245, 0.96) 100%),
    radial-gradient(circle at 100% 0%, rgba(200, 164, 93, 0.2), transparent 38%);
  box-shadow: 0 14px 26px rgba(17, 51, 63, 0.09);
  max-width: 560px;
}

.apply-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.apply-steps li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.step-num {
  width: 2rem;
  height: 2rem;
  background: var(--teal-700);
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.88rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.apply-steps li div {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.apply-steps li b {
  font-size: 1rem;
  color: var(--ink);
}

.apply-steps li a {
  color: var(--teal-700);
  font-weight: 600;
  text-decoration: none;
  word-break: break-all;
}

.apply-steps li a:hover {
  text-decoration: underline;
}

.apply-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ── Mobile page links ── */
.mobile-page-links {
  display: none;
}

@media (max-width: 640px) {
  .mobile-page-links {
    display: flex;
    gap: 0.75rem;
    padding: 1.25rem 1rem;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .mobile-page-links a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.85);
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 2px 8px rgba(17, 51, 63, 0.06);
  }

  .mobile-page-links a::after {
    content: '→';
    font-size: 1rem;
    color: var(--teal-700);
    opacity: 0.7;
  }

  .mobile-page-links a.nav-back {
    flex-direction: row-reverse;
  }

  .mobile-page-links a.nav-back::after {
    content: '←';
  }

  .mobile-page-links a:active {
    background: rgba(30, 156, 164, 0.08);
  }

  .mobile-page-links a.current {
    display: none;
  }
}

/* ── Footer ── */
.footer {
  margin-top: 2rem;
  color: var(--muted);
  border-top: 1px solid rgba(17, 51, 63, 0.12);
  padding: 1.25rem 0 1.5rem;
  font-size: 0.9rem;
}

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

.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
}

.footer a {
  color: var(--teal-700);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .footer {
    margin-top: 0;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }

  .footer-links {
    gap: 0.4rem 1rem;
  }
}

/* ── Reveal animation ── */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  animation: fade-up 0.5s ease forwards;
  animation-delay: var(--delay, 0s);
}

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

/* ── Responsive ── */
@media (max-width: 640px) {
  .topbar {
    position: sticky;
  }

  .topbar-inner {
    min-height: 60px;
    padding: 0.75rem 1rem;
  }

  .menu a:not(.cta) {
    display: none;
  }

  .menu {
    gap: 0.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    animation: none;
  }
}
