/*
 * Singapore Immigration Guide -- guide.immigrationspecialist.sg
 * Independent educational guide. Design system reuses the light/glass brand
 * language (cyan on white, glassmorphic cards) from the sibling project, but
 * rebuilt for long-form document-flow articles: no images anywhere, every
 * visual is a CSS/HTML "wireframe" block (infographic, decision tree,
 * comparison table, timeline, checklist, warning callout).
 */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; padding: 0; min-height: 100%; }

:root {
  --g-white: #ffffff;
  --g-cyan: #27d3f5;
  --g-cyan-deep: #40b7ff;
  --g-badge-text: #0d6b96;
  --g-pale-cyan: #eaf9fd;
  --g-soft-grey: #f4f7f9;
  --g-ink: #223142;
  --g-ink-soft: #5c7080;
  --g-line: rgba(34, 49, 66, 0.12);
  --g-amber: #b7791f;
  --g-amber-bg: #fdf6e7;
  --g-amber-line: rgba(183, 121, 31, 0.35);
  --g-font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --g-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --g-maxw: 62rem;
}

body {
  font-family: var(--g-font);
  color: var(--g-ink);
  background:
    radial-gradient(1200px 600px at 80% -10%, var(--g-pale-cyan), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, #eef4f8, transparent 55%),
    var(--g-white);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

a { color: var(--g-cyan-deep); }

/* ============================ Skip link ============================ */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--g-ink); color: #fff; padding: 0.6rem 1rem; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* ============================ Top nav ============================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.85rem clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 8px 24px -14px rgba(28, 63, 110, 0.35);
}
.nav__brand {
  display: flex; align-items: center; gap: 0.55rem;
  font-weight: 800; font-size: 1.02rem; letter-spacing: -0.01em;
  color: var(--g-ink); text-decoration: none; white-space: nowrap;
}
.nav__brand-mark {
  width: 2rem; height: 2rem; border-radius: 8px; flex-shrink: 0;
  display: grid; place-items: center; color: #06323d; font-weight: 800; font-size: 0.9rem;
  background: linear-gradient(150deg, var(--g-cyan), var(--g-cyan-deep));
}
.nav__brand small { display: block; font-weight: 600; font-size: 0.62rem; color: var(--g-ink-soft); letter-spacing: 0.02em; }
.nav__logo { height: 2.2rem; width: auto; display: block; flex-shrink: 0; }

/* Author byline (under H1) and author card (end of article) */
.byline { display: flex; align-items: center; gap: 0.6rem; margin-top: 1.1rem; font-size: 0.82rem; color: var(--g-ink-soft); }
.byline__logo { width: 2rem; height: 2rem; border-radius: 50%; object-fit: contain; background: #fff; border: 1px solid var(--g-line); padding: 2px; flex-shrink: 0; }
.byline strong { color: var(--g-ink); }
.author-card { display: flex; gap: 1rem; align-items: flex-start; margin: 2.25rem 0 0; padding: 1.25rem 1.4rem; border-radius: 16px; background: rgba(255,255,255,0.6); border: 1px solid var(--g-line); }
.author-card__logo { width: 3.5rem; height: 3.5rem; border-radius: 12px; object-fit: contain; background: #fff; border: 1px solid var(--g-line); padding: 5px; flex-shrink: 0; }
.author-card__name { font-weight: 800; font-size: 1.02rem; color: var(--g-ink); }
.author-card__meta { font-size: 0.7rem; color: var(--g-cyan-deep); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-top: 0.15rem; }
.author-card__bio { margin: 0.6rem 0 0; font-size: 0.88rem; line-height: 1.6; color: var(--g-ink-soft); }
/* Author / publisher card (E-E-A-T) */
.author-pro { margin: 2.75rem 0 0.5rem; padding: 1.7rem 1.8rem; border-radius: 20px; color: #c3d2e6; background: linear-gradient(158deg, #16375c 0%, #0e2138 100%); border: 1px solid rgba(232,190,111,0.22); box-shadow: 0 22px 46px -26px rgba(6,17,34,0.8); }
.author-pro__head { display: flex; gap: 1.2rem; align-items: center; }
.author-pro .author-pro__avatar { width: 76px; height: 76px; border-radius: 50%; flex-shrink: 0; object-fit: contain; background: #fff; padding: 8px; border: 2px solid #e8be6f; box-shadow: 0 0 0 4px rgba(232,190,111,0.15); }
.author-pro__id { min-width: 0; }
.author-pro__name { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 800; font-size: 1.2rem; line-height: 1.2; color: #fff; letter-spacing: -0.01em; }
.author-pro a.author-pro__li { display: inline-flex; align-items: center; justify-content: center; width: 21px; height: 21px; border-radius: 5px; background: #e8be6f; color: #10243f; text-decoration: none; transition: transform 0.15s ease; }
.author-pro a.author-pro__li:hover { transform: translateY(-1px); color: #10243f; }
.author-pro__li svg { width: 13px; height: 13px; }
.author-pro__role { margin-top: 0.28rem; font-size: 0.96rem; font-weight: 600; color: #e8be6f; }
.author-pro .author-pro__role a { color: #e8be6f; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.author-pro .author-pro__role a:hover { color: #f4d79b; }
.author-pro .author-pro__bio { margin: 1.1rem 0 0; font-size: 0.94rem; line-height: 1.72; color: #cdd9ea; }
.author-pro .author-pro__checks { list-style: none; margin: 1.9rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.55rem 1.5rem; }
.author-pro__checks li { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; font-weight: 600; color: #cdd9ea; }
.author-pro__checks svg { width: 15px; height: 15px; color: #e8be6f; flex-shrink: 0; }
.author-pro__ctas { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 1.3rem; }
.author-pro a.author-pro__cta { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.9rem; font-weight: 700; color: #e8be6f; text-decoration: none; }
.author-pro a.author-pro__cta svg { width: 15px; height: 15px; }
.author-pro a.author-pro__cta:hover { color: #f4d79b; gap: 0.5rem; }
@media (max-width: 560px) {
  .author-pro { padding: 1.4rem 1.3rem; }
  .author-pro__head { align-items: flex-start; gap: 0.9rem; }
  .author-pro__avatar { width: 60px; height: 60px; }
  .author-pro__name { font-size: 1.08rem; }
  .author-pro__checks { gap: 0.5rem; flex-direction: column; }
}
.footer__logo { height: 2.4rem; width: auto; display: block; }
.footer__brand-name { gap: 0.6rem; }
.nav__links { display: flex; align-items: center; gap: 0.35rem; list-style: none; margin: 0; padding: 0; }
.nav__links > li { position: relative; }
.nav__links > li > a, .nav__dropdown-trigger {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: 0.85rem; font-weight: 600; color: var(--g-ink-soft);
  text-decoration: none; padding: 0.5rem 0.7rem; border-radius: 9px; cursor: pointer;
  background: none; border: none; font-family: inherit;
}
.nav__links > li > a:hover, .nav__dropdown-trigger:hover,
.nav__dropdown.is-open .nav__dropdown-trigger { color: var(--g-cyan-deep); background: rgba(39, 211, 245, 0.1); }
.nav__dropdown-trigger svg { transition: transform 0.25s ease; }
.nav__dropdown.is-open .nav__dropdown-trigger svg { transform: rotate(180deg); }
.nav__panel {
  position: absolute; top: calc(100% + 0.5rem); left: 0;
  display: none; width: max-content; max-width: 22rem;
  padding: 0.5rem; border-radius: 14px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 18px 40px -16px rgba(28, 63, 110, 0.45);
}
.nav__dropdown.is-open .nav__panel { display: block; }
.nav__panel a {
  display: block; padding: 0.5rem 0.7rem; border-radius: 8px;
  font-size: 0.85rem; font-weight: 600; color: var(--g-ink); text-decoration: none; white-space: nowrap;
}
.nav__panel a:hover { background: rgba(39, 211, 245, 0.14); color: var(--g-cyan-deep); }
.nav__cta {
  padding: 0.55rem 1.1rem; font-size: 0.82rem; white-space: nowrap;
}
.nav__toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 2.4rem; height: 2.4rem; padding: 0; border: none; background: none; cursor: pointer;
}
.nav__toggle span { display: block; width: 22px; height: 2px; border-radius: 2px; background: var(--g-ink); transition: transform 0.3s, opacity 0.3s; }
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1024px) {
  .nav__links { display: none; }
  .nav .nav__cta { display: none; } /* higher specificity than .btn's display */
  .nav__toggle { display: flex; }
  .nav { gap: 0.6rem; }
  /* Let the brand shrink instead of pushing the toggles off-screen. */
  .nav__brand { min-width: 0; font-size: 0.92rem; }
  .nav__brand > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
}

/* Mobile drawer */
.nav__scrim { position: fixed; inset: 0; z-index: 98; background: rgba(20, 44, 77, 0.4); opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s; }
.nav__scrim.is-open { opacity: 1; visibility: visible; }
.nav__mobile {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 99; width: min(88vw, 23rem);
  background: rgba(255, 255, 255, 0.97); backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 1.25rem 1.25rem 2rem; overflow-y: auto;
  transform: translateX(100%); transition: transform 0.4s var(--g-ease);
  box-shadow: -20px 0 50px -20px rgba(28, 63, 110, 0.4);
}
.nav__mobile.is-open { transform: translateX(0); }
.nav__mobile-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.nav__mobile-close { background: none; border: none; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--g-ink-soft); padding: 0.2rem 0.5rem; }
.nav__mobile details { border-bottom: 1px solid var(--g-line); }
.nav__mobile summary { list-style: none; cursor: pointer; padding: 0.85rem 0.25rem; font-weight: 700; font-size: 0.95rem; color: var(--g-ink); display: flex; justify-content: space-between; align-items: center; }
.nav__mobile summary::-webkit-details-marker { display: none; }
.nav__mobile summary::after { content: '+'; color: var(--g-cyan-deep); font-size: 1.2rem; }
.nav__mobile details[open] summary::after { content: '\2212'; }
.nav__mobile details a { display: block; padding: 0.5rem 0.25rem 0.5rem 1rem; font-size: 0.88rem; font-weight: 500; color: var(--g-ink-soft); text-decoration: none; }
.nav__mobile details a:hover { color: var(--g-cyan-deep); }
.nav__mobile > a { display: block; padding: 0.85rem 0.25rem; border-bottom: 1px solid var(--g-line); font-weight: 700; font-size: 0.95rem; color: var(--g-ink); text-decoration: none; }
.nav__mobile .btn { margin-top: 1rem; width: 100%; display: flex; justify-content: center; align-items: center; padding: 0.85rem 1.4rem; text-align: center; }

/* ============================ Buttons ============================ */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.4rem; border-radius: 999px;
  font-size: 0.9rem; font-weight: 700; text-decoration: none; cursor: pointer;
  border: none; font-family: inherit;
  transition: transform 0.35s var(--g-ease), background 0.3s ease, box-shadow 0.3s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--g-cyan); color: #06323d; box-shadow: 0 10px 24px -12px rgba(39, 211, 245, 0.9); }
.btn--primary:hover { background: var(--g-cyan-deep); color: #fff; }
.btn--ghost { background: rgba(255, 255, 255, 0.6); color: var(--g-ink); border: 1px solid var(--g-line); }
.btn--ghost:hover { background: #fff; }
.cta-row { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* ============================ Type ============================ */
.eyebrow { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.18em; color: var(--g-cyan-deep); margin: 0; }
.badge {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.4rem 0.85rem; border-radius: 999px;
  background: rgba(255, 255, 255, 0.7); border: 1px solid rgba(39, 211, 245, 0.35);
  font-size: 0.74rem; font-weight: 700; color: var(--g-badge-text);
}
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--g-cyan); }
.heading { margin: 0; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; color: var(--g-ink); }
.heading--xl { font-size: clamp(2rem, 4.6vw, 3.3rem); }
.heading--lg { font-size: clamp(1.55rem, 3.2vw, 2.25rem); }
.heading--md { font-size: clamp(1.25rem, 2.2vw, 1.55rem); }

/* ============================ Layout ============================ */
.shell { max-width: var(--g-maxw); margin: 0 auto; padding: 0 clamp(1.5rem, 5vw, 2rem); }
.wide { max-width: 74rem; }
main { display: block; }

/* Breadcrumbs */
.crumbs { font-size: 0.78rem; color: var(--g-ink-soft); padding-top: 1.25rem; } /* horizontal padding from .shell */
/* Repeated breadcrumb in the band between the article and the footer. Same
   .crumbs.shell.wide alignment as the top one, with room to breathe. */
.crumbs--bottom { padding-top: 2.75rem; padding-bottom: 0.5rem; border-top: 1px solid var(--g-line); } /* padTop offsets the footer's own top padding so the crumb sits visually centered in the band */
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.crumbs li { display: flex; align-items: center; gap: 0.4rem; }
.crumbs li:not(:last-child)::after { content: '/'; color: var(--g-line); }
.crumbs a { color: var(--g-ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--g-cyan-deep); }
.crumbs [aria-current] { color: var(--g-ink); font-weight: 600; }

/* Article hero */
.page-hero { padding-top: 1.5rem; padding-bottom: 0.5rem; } /* horizontal padding comes from .shell */
.page-hero .meta-row { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; margin-bottom: 1rem; }
.page-hero .lede { margin: 1rem 0 0; font-size: 1.1rem; line-height: 1.6; color: var(--g-ink-soft); max-width: 46rem; }
.page-hero .cta-row { margin-top: 1.5rem; }

/* Two-column article layout with sticky TOC */
.layout { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 2.5rem; padding-top: 2.5rem; padding-bottom: 1rem; align-items: start; } /* horizontal padding comes from .shell */
@media (max-width: 900px) { .layout { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; } }
/* Mobile overflow safety: let the article column shrink below its content's
   intrinsic width (wide tables scroll inside .wf-scroll instead of stretching
   the whole page), and never let media/long words push past the viewport. */
.article { min-width: 0; overflow-wrap: break-word; }
.article img, .article video, .article iframe, .article table, .article pre { max-width: 100%; }
.toc { position: sticky; top: 5rem; max-height: calc(100vh - 6.5rem); overflow-y: auto; overscroll-behavior: contain; padding-right: 0.3rem; scrollbar-width: thin; scrollbar-color: rgba(15,42,68,0.28) transparent; }
.toc::-webkit-scrollbar { width: 6px; }
.toc::-webkit-scrollbar-thumb { background: rgba(15,42,68,0.22); border-radius: 4px; }
.toc::-webkit-scrollbar-thumb:hover { background: rgba(15,42,68,0.4); }
.toc::-webkit-scrollbar-track { background: transparent; }
@media (max-width: 900px) { .toc { position: static; max-height: none; overflow: visible; padding-right: 0; } }
.toc__title { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--g-ink-soft); margin: 0 0 0.6rem; }
.toc ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.1rem; }
.toc a { display: block; padding: 0.4rem 0.6rem; border-radius: 8px; font-size: 0.82rem; color: var(--g-ink-soft); text-decoration: none; border-left: 2px solid transparent; }
.toc a:hover { background: rgba(39, 211, 245, 0.1); color: var(--g-cyan-deep); }
@media (max-width: 900px) {
  .toc { background: rgba(255,255,255,0.6); border: 1px solid var(--g-line); border-radius: 14px; padding: 1rem 1.1rem; }
  .toc ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); }
}

/* Article body */
.article > section { padding: 1.75rem 0; border-top: 1px solid var(--g-line); scroll-margin-top: 5rem; }
.article > section:first-child { border-top: none; }
.article h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 800; letter-spacing: -0.015em; color: var(--g-ink); margin: 0 0 0.9rem; line-height: 1.15; }
.article h3 { font-size: 1.1rem; font-weight: 700; color: var(--g-ink); margin: 1.5rem 0 0.5rem; }
.article p { margin: 0 0 1rem; color: #33475b; font-size: 1rem; line-height: 1.72; }
.article p:last-child { margin-bottom: 0; }
/* In-body contextual links read as body text (both themes), distinguished only by the underline. */
.article a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(120, 132, 146, 0.45); border-bottom-color: color-mix(in srgb, currentColor 40%, transparent); }
.article a:hover { border-bottom-color: currentColor; }
/* buttons inside articles must keep their own styling, not the content-link look */
.article a.btn { border-bottom: none; }
.article a.btn--primary { color: #06323d; }
.article a.btn--primary:hover { color: #fff; }
.article a.btn--ghost { color: var(--g-ink); }
.article ul, .article ol { margin: 0 0 1rem; padding-left: 1.25rem; color: #33475b; line-height: 1.7; }
.article li { margin-bottom: 0.4rem; }

/* Card primitive */
.card { padding: 1.3rem 1.25rem; border-radius: 16px; background: rgba(255, 255, 255, 0.6); border: 1px solid rgba(255, 255, 255, 0.8); backdrop-filter: blur(12px); box-shadow: 0 12px 30px -22px rgba(28, 63, 110, 0.5); }

/* ==================== WIREFRAME BLOCKS (no images) ==================== */
.wf {
  margin: 1.25rem 0; border-radius: 16px; overflow: hidden;
  background: rgba(255, 255, 255, 0.55); border: 1px solid rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
}
.wf__cap {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 1rem; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--g-badge-text); background: rgba(39, 211, 245, 0.12); border-bottom: 1px dashed var(--g-amber-line);
}
.wf__cap::before { content: ''; width: 8px; height: 8px; border-radius: 2px; background: var(--g-cyan-deep); }
.wf__body { padding: 1.25rem; }

/* infographic -> figure grid */
.wf-figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 0.85rem; }
.wf-fig { padding: 1rem; border-radius: 12px; background: rgba(255,255,255,0.6); border: 1px solid var(--g-line); text-align: center; }
.wf-fig__k { font-size: 1.35rem; font-weight: 800; color: var(--g-ink); letter-spacing: -0.02em; }
.wf-fig__l { margin-top: 0.3rem; font-size: 0.76rem; color: var(--g-ink-soft); line-height: 1.35; }

/* decision tree -> node flow */
.wf-tree { display: flex; flex-direction: column; gap: 0.6rem; }
.wf-tree__row { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: stretch; }
.wf-node {
  flex: 1 1 12rem; min-width: 10rem; padding: 0.75rem 0.9rem; border-radius: 12px;
  background: rgba(255,255,255,0.7); border: 1px solid var(--g-line); position: relative;
}
.wf-node--q { border-color: rgba(64,183,255,0.5); background: rgba(39,211,245,0.1); }
.wf-node__t { font-size: 0.82rem; font-weight: 700; color: var(--g-ink); }
.wf-node__d { margin-top: 0.2rem; font-size: 0.76rem; color: var(--g-ink-soft); }
.wf-tree__arrow { text-align: center; color: var(--g-cyan-deep); font-size: 1rem; line-height: 1; }

/* comparison -> table */
.wf-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.wf-table th, .wf-table td { text-align: left; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--g-line); vertical-align: top; }
.wf-table thead th { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--g-ink-soft); background: rgba(39,211,245,0.08); }
.wf-table tbody th { font-weight: 700; color: var(--g-ink); }
.wf-table td { color: var(--g-ink-soft); }
.wf-scroll { overflow-x: auto; }

/* checklist */
.checklist { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 0.6rem 1.5rem; margin: 0; }
.checklist__item { display: flex; align-items: flex-start; gap: 0.55rem; font-size: 0.9rem; color: var(--g-ink); }
.checklist__item svg { flex-shrink: 0; margin-top: 0.15rem; color: var(--g-cyan-deep); }

/* timeline / steps */
.timeline { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem 1.5rem; margin: 0; }
@media (max-width: 640px) { .timeline { grid-template-columns: 1fr; } }
.timeline__step { display: flex; gap: 0.85rem; }
.timeline__num { flex-shrink: 0; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: rgba(39,211,245,0.16); border: 1px solid rgba(39,211,245,0.4); display: grid; place-items: center; font-weight: 800; font-size: 0.85rem; color: var(--g-cyan-deep); }
.timeline__title { font-size: 0.95rem; font-weight: 700; color: var(--g-ink); }
.timeline__text { margin: 0.2rem 0 0; font-size: 0.84rem; line-height: 1.5; color: var(--g-ink-soft); }

/* warning / callout */
.callout { margin: 1.25rem 0; padding: 1.1rem 1.25rem; border-radius: 14px; border: 1px solid var(--g-amber-line); background: var(--g-amber-bg); }
.callout--info { border-color: rgba(64,183,255,0.4); background: var(--g-pale-cyan); }
.callout__title { display: flex; align-items: center; gap: 0.5rem; font-weight: 800; font-size: 0.92rem; color: var(--g-amber); margin: 0 0 0.5rem; }
.callout--info .callout__title { color: var(--g-badge-text); }
.callout p { margin: 0 0 0.5rem; font-size: 0.9rem; line-height: 1.6; color: #4a3d22; }
.callout--info p { color: #2a4a5c; }
.callout p:last-child { margin-bottom: 0; }
.callout ul { margin: 0.25rem 0 0; padding-left: 1.2rem; font-size: 0.9rem; color: #4a3d22; }
.callout--info ul { color: #2a4a5c; }

/* source line */
.source-note { margin: 0.75rem 0 0; font-size: 0.8rem; color: var(--g-ink-soft); }
.source-note a { color: var(--g-cyan-deep); }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 0.6rem; }
.faq-item { border-radius: 14px; background: rgba(255,255,255,0.6); border: 1px solid rgba(255,255,255,0.8); backdrop-filter: blur(12px); padding: 0 1.15rem; }
.faq-item summary { cursor: pointer; list-style: none; padding: 0.95rem 0; font-weight: 700; font-size: 0.94rem; color: var(--g-ink); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.25rem; color: var(--g-cyan-deep); flex-shrink: 0; }
.faq-item[open] summary::after { content: '\2212'; }
.faq-item p { margin: 0 0 1rem; font-size: 0.9rem; line-height: 1.6; color: var(--g-ink-soft); }

/* Related links / children grid */
.link-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 0.85rem; margin: 0.5rem 0; }
.link-card { display: block; padding: 1rem 1.1rem; border-radius: 14px; background: rgba(255,255,255,0.6); border: 1px solid rgba(255,255,255,0.8); backdrop-filter: blur(12px); text-decoration: none; transition: transform 0.3s var(--g-ease), box-shadow 0.3s; }
.link-card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px -20px rgba(28,63,110,0.6); }
.link-card__tag { font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--g-cyan-deep); }
.link-card__title { margin-top: 0.35rem; font-size: 0.95rem; font-weight: 700; color: var(--g-ink); line-height: 1.3; }
.link-card__arrow { margin-top: 0.5rem; font-size: 0.8rem; font-weight: 700; color: var(--g-cyan-deep); }

/* "More guides" supporting carousel — paged, max 6 cards per view */
.more-guides__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.more-guides__head h2 { margin: 0; }
.more-guides__nav { display: flex; align-items: center; gap: 0.5rem; }
.more-guides__count { font-size: 0.8rem; font-weight: 700; color: var(--g-ink-soft); font-variant-numeric: tabular-nums; min-width: 3.4rem; text-align: center; }
.more-guides__arrow { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; padding: 0; border-radius: 999px; border: 1px solid var(--g-line); background: rgba(255,255,255,0.6); color: var(--g-ink); cursor: pointer; transition: background 0.2s, border-color 0.2s, opacity 0.2s; }
.more-guides__arrow:hover:not([disabled]) { background: #fff; border-color: rgba(39,211,245,0.5); color: var(--g-cyan-deep); }
.more-guides__arrow[disabled] { opacity: 0.35; cursor: default; }
.more-guides__arrow svg { width: 15px; height: 15px; }
.more-guides .link-grid { margin-top: 1rem; }
.more-guides .link-card[hidden] { display: none; }

/* Section-level CTA band */
.cta-band { margin: 2rem 0 0; padding: 1.75rem; border-radius: 20px; background: linear-gradient(150deg, rgba(39,211,245,0.16), rgba(64,183,255,0.08)); border: 1px solid rgba(39,211,245,0.3); }
.cta-band h2 { margin: 0.5rem 0 0.5rem; }
.cta-band p { margin: 0; color: var(--g-ink-soft); max-width: 40rem; }

/* Disclaimer strip */
.disclaimer { margin-top: 2.5rem; padding: 1rem 1.25rem; border-radius: 12px; background: var(--g-soft-grey); border: 1px solid var(--g-line); font-size: 0.8rem; line-height: 1.6; color: var(--g-ink-soft); }
.disclaimer strong { color: var(--g-ink); }

/* ============================ Homepage / hub ============================ */
.hero-home { padding: clamp(2.5rem, 7vw, 5rem) 0 2rem; text-align: center; }
.hero-home .heading { margin: 1rem auto 0; max-width: 22ch; }
.hero-home .lede { margin: 1.25rem auto 0; max-width: 42rem; font-size: 1.12rem; color: var(--g-ink-soft); }
.hero-home .cta-row { justify-content: center; }
.hero-home .search { margin: 1.75rem auto 0; max-width: 34rem; display: flex; gap: 0.5rem; }
.hero-home .search input { flex: 1; padding: 0.85rem 1.1rem; border-radius: 999px; border: 1px solid var(--g-line); background: rgba(255,255,255,0.8); font: inherit; font-size: 0.95rem; }
.hero-home .search input:focus { outline: 2px solid var(--g-cyan-deep); }

.stat-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 2.5rem; margin: 2rem 0; }
.stat { text-align: center; }
.stat__n { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; color: var(--g-ink); letter-spacing: -0.02em; }
.stat__l { margin-top: 0.2rem; font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--g-ink-soft); }

.section-head { text-align: center; max-width: 44rem; margin: 0 auto 1.75rem; }
.section-head .lede { margin-top: 0.75rem; color: var(--g-ink-soft); }

.cluster-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1rem; }
.cluster-card { display: flex; flex-direction: column; padding: 1.4rem; border-radius: 18px; background: rgba(255,255,255,0.62); border: 1px solid rgba(255,255,255,0.85); backdrop-filter: blur(12px); text-decoration: none; box-shadow: 0 14px 34px -24px rgba(28,63,110,0.55); transition: transform 0.35s var(--g-ease), box-shadow 0.35s; }
.cluster-card:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -22px rgba(28,63,110,0.55); }
.cluster-card__badge { font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--g-cyan-deep); }
.cluster-card__title { margin: 0.4rem 0 0.35rem; font-size: 1.12rem; font-weight: 800; color: var(--g-ink); letter-spacing: -0.01em; }
.cluster-card__desc { font-size: 0.86rem; color: var(--g-ink-soft); line-height: 1.5; flex: 1; }
.cluster-card__foot { margin-top: 0.9rem; display: flex; justify-content: space-between; align-items: center; font-size: 0.76rem; color: var(--g-ink-soft); }
.cluster-card__foot .arrow { color: var(--g-cyan-deep); font-weight: 700; }

.group { margin-top: 2.5rem; }
.group__title { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.14em; color: var(--g-ink-soft); margin: 0 0 0.9rem; display: flex; align-items: center; gap: 0.6rem; }
.group__title::after { content: ''; flex: 1; height: 1px; background: var(--g-line); }

/* Pillar sub-page list */
.subpage-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: 0.75rem; }
.subpage-item { display: flex; gap: 0.7rem; align-items: flex-start; padding: 0.85rem 1rem; border-radius: 12px; background: rgba(255,255,255,0.55); border: 1px solid var(--g-line); text-decoration: none; }
.subpage-item:hover { background: #fff; border-color: rgba(39,211,245,0.4); }
.subpage-item__ix { flex-shrink: 0; font-size: 0.72rem; font-weight: 700; color: var(--g-cyan-deep); background: rgba(39,211,245,0.14); border-radius: 6px; padding: 0.15rem 0.4rem; }
.subpage-item__t { font-size: 0.88rem; font-weight: 600; color: var(--g-ink); line-height: 1.35; }

/* Reading-progress badges on related / explore cards */
.subpage-item, .link-card { position: relative; }
.card-status { font-size: 0.6rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; padding: 0.14rem 0.5rem; border-radius: 999px; white-space: nowrap; line-height: 1.5; }
.subpage-item .card-status { margin-left: auto; align-self: center; }
.link-card .card-status { position: absolute; top: 0.7rem; right: 0.8rem; }
.card-status--seen { color: #fff; background: rgba(120,124,132,0.85); }
.card-status--seen::before { content: '\2713\00a0'; }
.card-status--next { color: #062a33; background: var(--g-cyan-deep); box-shadow: 0 0 0 3px rgba(39,211,245,0.22); }
.card-status--next::before { content: '\2192\00a0'; }
.card-status--current { color: #3a2c00; background: #f0b429; }
.subpage-item[data-status="seen"], .link-card[data-status="seen"] { opacity: 0.66; }
.subpage-item[data-status="seen"]:hover, .link-card[data-status="seen"]:hover { opacity: 1; }

/* ============================ Footer ============================ */
.footer { margin-top: 3.5rem; border-top: 1px solid var(--g-line); background: rgba(255,255,255,0.55); backdrop-filter: blur(10px); }
.footer__inner { max-width: 74rem; margin: 0 auto; padding: 2.75rem clamp(1rem, 4vw, 2rem) 1.5rem; }
.footer__top { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 1.75rem; }
@media (max-width: 780px) { .footer__top { grid-template-columns: 1fr 1fr; gap: 1.25rem; } .footer__brand { grid-column: 1 / -1; } }
.footer__brand-name { display: flex; align-items: center; gap: 0.55rem; font-weight: 800; font-size: 1.05rem; color: var(--g-ink); }
.footer__tagline { margin: 0.75rem 0 0; font-size: 0.85rem; line-height: 1.6; color: var(--g-ink-soft); max-width: 24rem; }
.footer__h { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--g-ink); margin: 0 0 0.7rem; }
.footer__links { list-style: none; margin: 0; padding: 0; }
.footer__links li { margin-bottom: 0.15rem; }
.footer__links a { display: inline-block; padding: 0.3rem 0; font-size: 0.85rem; color: var(--g-ink-soft); text-decoration: none; }
.footer__links a:hover { color: var(--g-cyan-deep); }
.footer__bottom { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--g-line); display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: space-between; font-size: 0.76rem; color: var(--g-ink-soft); }
.footer__disclaim { margin-top: 1rem; font-size: 0.72rem; line-height: 1.6; color: var(--g-ink-soft); opacity: 0.9; }

/* ============================ Reveal ============================ */
[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 0.7s var(--g-ease), transform 0.7s var(--g-ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* focus */
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--g-cyan-deep); outline-offset: 2px; border-radius: 4px; }

/* ============================ Theme toggle button ============================ */
.theme-toggle { display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 10px; border: 1px solid var(--g-line); background: rgba(255,255,255,0.6); color: var(--g-ink-soft); cursor: pointer; flex-shrink: 0; padding: 0; transition: color 0.2s, background 0.2s, border-color 0.2s; }
/* Service-page hero carries its own theme toggle (no site nav here), pinned top-right. */
.apr-hero__inner { position: relative; }
.apr-hero__inner > .theme-toggle { position: absolute; top: 1.4rem; right: clamp(1.5rem, 5vw, 2rem); z-index: 4; }
.theme-toggle:hover { color: var(--g-cyan-deep); border-color: rgba(39,211,245,0.45); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle__sun { display: none; }
.theme-toggle__moon { display: block; }
:root[data-theme="dark"] .theme-toggle { background: rgba(159,177,196,0.09); }
:root[data-theme="dark"] .theme-toggle__moon { display: none; }
:root[data-theme="dark"] .theme-toggle__sun { display: block; }

/* ============================ Dark mode ============================ */
:root[data-theme="dark"] {
  --g-white: #0e1520;
  --g-cyan: #2fd3f2;
  --g-cyan-deep: #5cc6ff;
  --g-badge-text: #78d1ef;
  --g-pale-cyan: rgba(47,211,242,0.12);
  --g-soft-grey: #151d29;
  --g-ink: #e7eef6;
  --g-ink-soft: #9fb1c4;
  --g-line: rgba(159,177,196,0.18);
  --g-amber: #e2b45f;
  --g-amber-bg: rgba(226,180,95,0.12);
  --g-amber-line: rgba(226,180,95,0.30);
}
:root[data-theme="dark"] body {
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(47,211,242,0.10), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(64,120,180,0.12), transparent 55%),
    #0b111a;
}
:root[data-theme="dark"] .skip-link { background: #0b111a; color: #fff; }
/* nav + panels */
:root[data-theme="dark"] .nav { background: rgba(12,18,27,0.82); border-bottom-color: rgba(159,177,196,0.14); box-shadow: 0 8px 24px -14px rgba(0,0,0,0.6); }
:root[data-theme="dark"] .nav__panel { background: rgba(20,28,40,0.97); border-color: rgba(159,177,196,0.16); box-shadow: 0 18px 40px -16px rgba(0,0,0,0.7); }
:root[data-theme="dark"] .nav__mobile { background: rgba(15,22,32,0.98); box-shadow: -20px 0 50px -20px rgba(0,0,0,0.7); }
:root[data-theme="dark"] .nav__toggle span { background: var(--g-ink); }
/* glassy card surfaces */
:root[data-theme="dark"] .card,
:root[data-theme="dark"] .wf,
:root[data-theme="dark"] .wf-fig,
:root[data-theme="dark"] .wf-node,
:root[data-theme="dark"] .faq-item,
:root[data-theme="dark"] .link-card,
:root[data-theme="dark"] .cluster-card,
:root[data-theme="dark"] .badge,
:root[data-theme="dark"] .btn--ghost {
  background: rgba(159,177,196,0.06);
  border-color: rgba(159,177,196,0.15);
}
:root[data-theme="dark"] .wf-node--q { background: rgba(47,211,242,0.12); border-color: rgba(47,211,242,0.4); }
:root[data-theme="dark"] .btn--ghost:hover { background: rgba(159,177,196,0.14); }
:root[data-theme="dark"] .subpage-item { background: rgba(159,177,196,0.05); border-color: rgba(159,177,196,0.14); }
:root[data-theme="dark"] .subpage-item:hover { background: rgba(159,177,196,0.11); border-color: rgba(47,211,242,0.45); }
:root[data-theme="dark"] .hero-home .search input { background: rgba(159,177,196,0.09); color: var(--g-ink); }
:root[data-theme="dark"] .footer { background: rgba(14,21,31,0.6); }
/* article + callout body text (these were hardcoded, not var-driven) */
:root[data-theme="dark"] .article p,
:root[data-theme="dark"] .article ul,
:root[data-theme="dark"] .article ol { color: #c6d2df; }
:root[data-theme="dark"] .callout p,
:root[data-theme="dark"] .callout ul { color: #e6d6b6; }
:root[data-theme="dark"] .callout--info p,
:root[data-theme="dark"] .callout--info ul { color: #bdd7e7; }
/* TOC scrollbar for dark */
:root[data-theme="dark"] .toc { scrollbar-color: rgba(159,177,196,0.35) transparent; }
:root[data-theme="dark"] .toc::-webkit-scrollbar-thumb { background: rgba(159,177,196,0.3); }
:root[data-theme="dark"] .toc::-webkit-scrollbar-thumb:hover { background: rgba(159,177,196,0.5); }
@media (max-width: 900px) {
  :root[data-theme="dark"] .toc { background: rgba(159,177,196,0.06); border-color: rgba(159,177,196,0.15); }
}

/* ============================ Lead capture (assessment) page ============================ */
.lead-hero .lede { max-width: 44rem; }
.lead-wrap { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(0,1fr); gap: 2rem; padding: 0.5rem 0 1rem; align-items: start; }
@media (max-width: 860px) { .lead-wrap { grid-template-columns: 1fr; gap: 1.5rem; } }
.lead-form { display: flex; flex-direction: column; gap: 1rem; padding: 1.7rem; border-radius: 18px; background: rgba(255,255,255,0.62); border: 1px solid var(--g-line); backdrop-filter: blur(12px); box-shadow: 0 16px 40px -26px rgba(28,63,110,0.5); }
.lead-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .lead-row { grid-template-columns: 1fr; } }
.lead-field { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
.lead-field label { font-size: 0.8rem; font-weight: 700; color: var(--g-ink); }
.lead-form input, .lead-form select, .lead-form textarea { font: inherit; font-size: 0.92rem; padding: 0.7rem 0.85rem; border-radius: 10px; border: 1px solid var(--g-line); background: rgba(255,255,255,0.85); color: var(--g-ink); width: 100%; transition: border-color 0.2s, box-shadow 0.2s; }
.lead-form textarea { resize: vertical; }
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus { outline: none; border-color: var(--g-cyan-deep); box-shadow: 0 0 0 3px rgba(64,183,255,0.2); }
.lead-consent { display: flex; gap: 0.55rem; align-items: flex-start; font-size: 0.82rem; line-height: 1.4; color: var(--g-ink-soft); }
.lead-consent input { margin-top: 2px; flex-shrink: 0; }
.lead-submit { align-self: flex-start; margin-top: 0.15rem; }
.lead-submit[disabled] { opacity: 0.65; cursor: default; transform: none; }
.lead-fineprint { margin: 0; font-size: 0.74rem; color: var(--g-ink-soft); }
.lead-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead-side { display: flex; flex-direction: column; gap: 1.2rem; }
.lead-side__card { padding: 1.4rem; border-radius: 16px; background: linear-gradient(150deg, rgba(39,211,245,0.15), rgba(64,183,255,0.06)); border: 1px solid rgba(39,211,245,0.3); }
.lead-side__h { font-size: 1.05rem; margin: 0 0 0.4rem; color: var(--g-ink); }
.lead-side__card p { margin: 0 0 1rem; font-size: 0.88rem; color: var(--g-ink-soft); line-height: 1.55; }
.lead-side__wa { width: 100%; justify-content: center; }
.lead-side__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.7rem; }
.lead-side__list li { display: flex; gap: 0.55rem; align-items: flex-start; font-size: 0.86rem; color: var(--g-ink-soft); line-height: 1.4; }
.lead-side__list svg { width: 16px; height: 16px; color: var(--g-cyan-deep); flex-shrink: 0; margin-top: 2px; }
.lead-success { text-align: center; padding: 2.5rem 1.5rem; border-radius: 18px; background: rgba(39,211,245,0.08); border: 1px solid rgba(39,211,245,0.3); }
.lead-success__mark { width: 48px; height: 48px; border-radius: 50%; background: var(--g-cyan); color: #06323d; display: grid; place-items: center; font-size: 1.5rem; font-weight: 800; margin: 0 auto 0.8rem; }
.lead-success h3 { margin: 0 0 0.4rem; font-size: 1.2rem; color: var(--g-ink); }
.lead-success p { margin: 0 auto 1.2rem; max-width: 32rem; color: var(--g-ink-soft); font-size: 0.92rem; }
.lead-router { margin-top: 3rem; }
.btn--whatsapp { background: #25d366; color: #08331a; }
.btn--whatsapp:hover { background: #1fbe59; color: #062915; }
.btn--whatsapp svg { width: 18px; height: 18px; }
:root[data-theme="dark"] .lead-form { background: rgba(159,177,196,0.06); border-color: rgba(159,177,196,0.15); }
:root[data-theme="dark"] .lead-form input, :root[data-theme="dark"] .lead-form select, :root[data-theme="dark"] .lead-form textarea { background: rgba(159,177,196,0.09); border-color: rgba(159,177,196,0.22); color: var(--g-ink); }
:root[data-theme="dark"] .lead-form ::placeholder { color: rgba(159,177,196,0.65); }

/* native <select> option list must follow the theme (esp. dark) */
.lead-form option { background-color: #ffffff; color: #223142; }
:root[data-theme="dark"] .lead-form select { color-scheme: dark; }
:root[data-theme="dark"] .lead-form option { background-color: #1a2432; color: #e7eef6; }

/* checkboxes/radios must not stretch to full width like text inputs */
.lead-form input[type="checkbox"], .lead-form input[type="radio"] { width: auto; }
.lead-consent { align-items: center; }

/* ============================ Mobile touch refinements ============================ */
/* Placed last so it overrides the 2.4rem control sizes above. Ensures the
   header controls and drawer links meet the ~44px minimum tap-target size. */
@media (max-width: 1024px) {
  .nav__toggle, .theme-toggle { width: 2.75rem; height: 2.75rem; }
  .nav__mobile-close { width: 2.75rem; height: 2.75rem; font-size: 1.75rem; }
  .nav__mobile details a { padding-top: 0.7rem; padding-bottom: 0.7rem; }
}

/* ============================================================
   Services page (/services/) -- category browser + cards
   ============================================================ */
.svc-intro { padding: 2.6rem 0 0.4rem; }
.svc-head { font-size: 1.15rem; font-weight: 750; color: var(--g-ink); margin: 0 0 1rem; letter-spacing: -0.01em; }
.svc-filter { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.svc-pill {
  appearance: none; cursor: pointer; font: inherit; font-weight: 600; font-size: 0.94rem;
  color: var(--g-ink); background: var(--g-soft-grey); border: 1px solid var(--g-line);
  padding: 0.55rem 1.15rem; border-radius: 999px; transition: all 0.2s var(--g-ease);
}
.svc-pill:hover { border-color: var(--g-cyan-deep); color: var(--g-badge-text); }
.svc-pill.is-active {
  background: var(--g-cyan); color: #06323d; border-color: var(--g-cyan);
  box-shadow: 0 8px 20px -12px rgba(39, 211, 245, 0.9);
}
.svc-count { margin: 1.15rem 0 0; color: var(--g-ink-soft); font-size: 0.92rem; }

.svc-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem;
  padding: 1.4rem 0 1rem;
}
.svc-card {
  display: flex; flex-direction: column; overflow: hidden; border-radius: 18px;
  background: var(--g-soft-grey); border: 1px solid var(--g-line);
  box-shadow: 0 1px 2px rgba(34, 49, 66, 0.04); transition: transform 0.25s var(--g-ease), box-shadow 0.25s var(--g-ease);
}
/* Subgrid keeps the coloured header band a uniform height across every card in
   a row: each row's header track sizes to the tallest header, so single- and
   two-line titles line up. min-height below is the floor / non-subgrid fallback. */
@supports (grid-template-rows: subgrid) {
  .svc-card { display: grid; grid-template-rows: subgrid; grid-row: span 2; row-gap: 0; }
  .svc-card__body { flex: initial; }
}
.svc-card:hover { transform: translateY(-4px); box-shadow: 0 24px 44px -26px rgba(34, 49, 66, 0.4); }
.svc-card__head {
  position: relative; display: flex; align-items: center; gap: 0.9rem; min-height: 6.9rem;
  padding: 1.35rem 1.4rem; color: #06323d;
  background: linear-gradient(135deg, var(--g-cyan) 0%, var(--g-cyan-deep) 100%);
}
.svc-card[data-cat="cit"] .svc-card__head {
  background: linear-gradient(135deg, var(--g-cyan-deep) 0%, #2f80c4 100%); color: #fff;
}
.svc-card__icon {
  flex: 0 0 auto; display: grid; place-items: center; width: 46px; height: 46px;
  border-radius: 12px; background: rgba(255, 255, 255, 0.85); color: var(--g-cyan-deep);
}
.svc-card[data-cat="cit"] .svc-card__icon { color: #2f80c4; }
.svc-card__icon svg { width: 24px; height: 24px; }
.svc-card__title { font-size: 1.12rem; font-weight: 750; line-height: 1.25; letter-spacing: -0.01em; }
.svc-card__tag {
  position: absolute; top: 0.85rem; right: 0.95rem; font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em; padding: 0.2rem 0.55rem;
  border-radius: 999px; background: rgba(255, 255, 255, 0.9); color: var(--g-badge-text);
}
.svc-card[data-cat="cit"] .svc-card__tag { color: #235a8c; }
.svc-card__body { display: flex; flex-direction: column; gap: 1rem; padding: 1.3rem 1.4rem 1.4rem; flex: 1; }
.svc-card__desc { margin: 0; color: var(--g-ink-soft); font-size: 0.96rem; line-height: 1.55; }
.svc-includes__label { font-size: 0.82rem; font-weight: 700; color: var(--g-ink); }
.svc-includes {
  list-style: none; margin: 0.55rem 0 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem 1rem;
}
.svc-includes li { display: flex; align-items: center; gap: 0.4rem; font-size: 0.88rem; color: var(--g-ink); }
.svc-chk { flex: 0 0 auto; width: 15px; height: 15px; color: #1f9d55; }
.svc-card__cta {
  margin-top: auto; display: flex; align-items: center; justify-content: center;
  padding: 0.85rem 1.2rem; border-radius: 12px; font-weight: 700; text-decoration: none;
  background: var(--g-cyan); color: #06323d; transition: all 0.2s var(--g-ease);
  box-shadow: 0 10px 24px -14px rgba(39, 211, 245, 0.9);
}
.svc-card__cta:hover { background: var(--g-cyan-deep); color: #fff; transform: translateY(-2px); }

@media (max-width: 62rem) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 40rem) {
  .svc-grid { grid-template-columns: 1fr; }
  .svc-includes { grid-template-columns: 1fr 1fr; }
}
:root[data-theme="dark"] .svc-card__icon { background: rgba(14, 21, 32, 0.85); }
:root[data-theme="dark"] .svc-card__tag { background: rgba(14, 21, 32, 0.75); color: var(--g-badge-text); }
.svc-card__headtext { display: flex; flex-direction: column; gap: 0.18rem; min-width: 0; }
.svc-card__eyebrow { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.82; }


/* =====================================================================
   Apply Singapore PR — service landing page (scoped to .apr)
   Premium editorial: Fraunces display + system body, cyan atmosphere,
   light/dark cinematic rhythm. Adapts to the site's dark theme.
   ===================================================================== */
.apr {
  --apr-navy: #0b1a2b;
  --apr-navy-soft: #14283c;
  --apr-surface: #ffffff;
  --apr-surface-2: #eef4f7;
  --apr-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  position: relative;
  overflow: clip;
}
:root[data-theme="dark"] .apr { --apr-surface: #13212f; --apr-surface-2: #0f1c29; }

.apr [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--g-ease), transform .8s var(--g-ease); }
.apr [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .apr [data-reveal] { opacity: 1; transform: none; transition: none; } }

/* ---- shared type ---- */
.apr-h1, .apr-h2 { font-family: var(--apr-display); font-weight: 600; letter-spacing: -0.012em; color: var(--g-ink); margin: 0; text-wrap: balance; }
.apr-h1 { font-size: clamp(2.5rem, 6vw, 4.15rem); line-height: 1.02; }
.apr-h1 em { font-style: italic; background: linear-gradient(115deg, var(--g-cyan-deep), var(--g-cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.apr-h2 { font-size: clamp(1.85rem, 3.8vw, 2.95rem); line-height: 1.07; }
.apr-h2--onink { color: #fff; }
.apr-eyebrow { display: inline-block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.2em; color: var(--g-cyan-deep); margin: 0 0 0.85rem; }
.apr-eyebrow--onink { color: #7fe6f9; }
.apr-lede, .apr-sublede { color: var(--g-ink-soft); font-size: clamp(1.02rem, 1.35vw, 1.18rem); line-height: 1.66; margin: 0; }
.apr-sublede--onink { color: rgba(226,240,248,0.8); }

/* ---- section + band rhythm ---- */
/* Vertical only (longhand) so it doesn't zero the horizontal padding when the
   section also carries .shell — otherwise content touches the screen edge on mobile. */
.apr-sec { padding-top: clamp(3.5rem, 8vw, 6.25rem); padding-bottom: clamp(3.5rem, 8vw, 6.25rem); }
.apr-angle { max-width: 46rem; margin-top: 1.25rem; display: flex; flex-direction: column; gap: 1rem; }
.apr-angle p { margin: 0; font-size: 1.02rem; line-height: 1.7; color: var(--g-ink-soft); }
.apr-sechead { max-width: 46rem; }
.apr-sechead > .apr-lede, .apr-sechead > .apr-sublede { margin-top: 1rem; }
.apr-sechead--center { margin-left: auto; margin-right: auto; text-align: center; }
.apr-band { position: relative; }
.apr-band--soft { background: var(--apr-surface-2); }
.apr-band--ink {
  background:
    radial-gradient(900px 520px at 12% -5%, rgba(39,211,245,0.16), transparent 60%),
    radial-gradient(760px 520px at 105% 108%, rgba(64,183,255,0.14), transparent 55%),
    var(--apr-navy);
  color: #e7f2f8;
}
.apr-band--cta { background: linear-gradient(135deg, #0b1a2b 0%, #123a52 58%, #0f7a9d 128%); color: #e7f2f8; }

/* ---- HERO ---- */
.apr-hero { position: relative; padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5.5rem); overflow: clip; }
.apr-hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: clip; }
.apr-orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.55; }
.apr-orb--1 { width: 40rem; height: 40rem; top: -16rem; right: -10rem; background: radial-gradient(circle, rgba(39,211,245,0.55), transparent 62%); }
.apr-orb--2 { width: 32rem; height: 32rem; bottom: -18rem; left: -12rem; background: radial-gradient(circle, rgba(64,183,255,0.4), transparent 62%); }
.apr-grid { position: absolute; inset: 0;
  background-image: linear-gradient(var(--g-line) 1px, transparent 1px), linear-gradient(90deg, var(--g-line) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(120% 90% at 70% 0%, #000 20%, transparent 68%);
  mask-image: radial-gradient(120% 90% at 70% 0%, #000 20%, transparent 68%);
  opacity: 0.5;
}
.apr-hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.02fr 0.98fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
.apr-hero__copy { min-width: 0; }
.apr-hero__copy .apr-lede { margin-top: 1.25rem; max-width: 34rem; }
.apr-cta-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.9rem; }
.apr-cta-row--center { justify-content: center; }
.apr-cta-main { padding: 0.95rem 1.6rem; font-size: 0.98rem; }
.apr-cta-row .btn svg { width: 1.05em; height: 1.05em; vertical-align: -0.15em; margin-right: 0.35em; }

.apr-trust { display: flex; align-items: center; flex-wrap: wrap; gap: 0.7rem 1rem; margin-top: 2rem; }
.apr-trust__item { display: inline-flex; flex-direction: column; font-size: 0.74rem; color: var(--g-ink-soft); line-height: 1.25; }
.apr-trust__item strong { font-family: var(--apr-display); font-size: 1.15rem; font-weight: 600; color: var(--g-ink); letter-spacing: -0.01em; }
.apr-trust__dot { width: 5px; height: 5px; border-radius: 50%; background: var(--g-cyan); flex-shrink: 0; }

/* ---- HERO FORM CARD ---- */
.apr-hero__card { min-width: 0; }
.apr-formcard {
  background: var(--apr-surface);
  border: 1px solid var(--g-line);
  border-radius: 22px;
  padding: clamp(1.4rem, 2.5vw, 2rem);
  box-shadow: 0 2px 6px rgba(11,26,43,0.05), 0 40px 80px -40px rgba(11,26,43,0.4);
  position: relative;
}
.apr-formcard::before { content: ""; position: absolute; inset: -1px; border-radius: 23px; padding: 1px; background: linear-gradient(160deg, rgba(39,211,245,0.6), transparent 45%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.apr-formcard__head { margin-bottom: 1.15rem; }
.apr-formcard__badge { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--g-badge-text); background: var(--g-pale-cyan); border-radius: 999px; padding: 0.35rem 0.8rem; }
.apr-formcard__sub { margin: 0.75rem 0 0; font-size: 0.92rem; line-height: 1.55; color: var(--g-ink-soft); }

.apr-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.apr-field { display: flex; flex-direction: column; gap: 0.32rem; margin-bottom: 0.8rem; }
.apr-field label { font-size: 0.78rem; font-weight: 700; color: var(--g-ink); }
.apr-field__opt { font-weight: 500; color: var(--g-ink-soft); }
.apr-field input, .apr-field select, .apr-field textarea {
  font: inherit; font-size: 0.92rem; color: var(--g-ink);
  background: var(--apr-surface); border: 1px solid var(--g-line); border-radius: 11px;
  padding: 0.66rem 0.8rem; width: 100%; transition: border-color .2s, box-shadow .2s;
}
:root[data-theme="dark"] .apr-field input, :root[data-theme="dark"] .apr-field select, :root[data-theme="dark"] .apr-field textarea { background: rgba(255,255,255,0.04); }
.apr-field input:focus, .apr-field select:focus, .apr-field textarea:focus { outline: none; border-color: var(--g-cyan-deep); box-shadow: 0 0 0 3px rgba(39,211,245,0.22); }
.apr-field textarea { resize: vertical; }
.apr-consent { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.8rem; color: var(--g-ink-soft); margin: 0.2rem 0 1rem; line-height: 1.4; }
.apr-consent input { margin-top: 0.15rem; accent-color: var(--g-cyan-deep); }
.apr-form__submit { width: 100%; padding: 0.9rem 1.2rem; font-size: 0.98rem; justify-content: center; text-align: center; align-self: stretch; }
/* Lead-form field validation (name + SG mobile) */
.field-err { display: block; margin-top: 0.35rem; font-size: 0.8rem; line-height: 1.35; color: #e5484d; font-weight: 600; }
.apr-field.has-err input, .lead-field.has-err input { border-color: #e5484d; }
.apr-field.has-err input:focus, .lead-field.has-err input:focus { box-shadow: 0 0 0 3px rgba(229, 72, 77, 0.18); }
.apr-form__fine { margin: 0.75rem 0 0; font-size: 0.72rem; color: var(--g-ink-soft); text-align: center; }
.lead-hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

.apr-success { text-align: center; padding: 1.5rem 0.5rem; }
.apr-success__mark { width: 3.2rem; height: 3.2rem; margin: 0 auto 0.8rem; border-radius: 50%; background: var(--g-cyan); color: #06323d; display: grid; place-items: center; }
.apr-success__mark svg { width: 1.5rem; height: 1.5rem; }
.apr-success h3 { font-family: var(--apr-display); font-weight: 600; font-size: 1.3rem; color: var(--g-ink); margin: 0 0 0.4rem; }
.apr-success p { color: var(--g-ink-soft); font-size: 0.92rem; margin: 0 0 1.1rem; }

/* ---- ELIGIBILITY ROUTES ---- */
.apr-routes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 0.5rem; }
.apr-route { background: var(--apr-surface); border: 1px solid var(--g-line); border-radius: 18px; padding: 1.5rem 1.35rem; transition: transform .35s var(--g-ease), box-shadow .35s var(--g-ease), border-color .3s; }
.apr-route:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -30px rgba(11,26,43,0.45); border-color: rgba(39,211,245,0.5); }
.apr-route__ic { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 14px; background: var(--g-pale-cyan); color: var(--g-cyan-deep); margin-bottom: 1rem; }
.apr-route__ic svg { width: 1.5rem; height: 1.5rem; }
.apr-route h3 { font-size: 1.02rem; font-weight: 800; color: var(--g-ink); margin: 0 0 0.4rem; }
.apr-route p { font-size: 0.88rem; line-height: 1.55; color: var(--g-ink-soft); margin: 0; }

/* ---- STAKES ---- */
.apr-stakes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.apr-stake { border-top: 1px solid rgba(255,255,255,0.16); padding-top: 1.4rem; }
.apr-stake__no { font-family: var(--apr-display); font-size: 1.4rem; font-weight: 600; background: linear-gradient(120deg, var(--g-cyan), #9becfb); -webkit-background-clip: text; background-clip: text; color: transparent; }
.apr-stake h3 { font-size: 1.25rem; font-weight: 800; color: #fff; margin: 0.5rem 0 0.5rem; }
.apr-stake p { font-size: 0.94rem; line-height: 1.6; color: rgba(226,240,248,0.78); margin: 0; }

/* ---- HOW WE DO IT ---- */
.apr-how { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.apr-how__copy .apr-sublede { margin-top: 1.1rem; }
.apr-how__copy .btn { margin-top: 1.6rem; }
.apr-quote { position: relative; background: var(--apr-surface); border: 1px solid var(--g-line); border-radius: 22px; padding: clamp(1.8rem, 3vw, 2.6rem); box-shadow: 0 30px 70px -45px rgba(11,26,43,0.5); }
.apr-quote__mark { position: absolute; top: -0.6rem; left: 1.5rem; font-family: var(--apr-display); font-size: 5rem; line-height: 1; color: var(--g-cyan); opacity: 0.6; }
.apr-quote p { font-family: var(--apr-display); font-weight: 500; font-size: clamp(1.2rem, 2vw, 1.55rem); line-height: 1.4; color: var(--g-ink); margin: 1rem 0 1.2rem; }
.apr-quote__by { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--g-cyan-deep); }

/* ---- INCLUDED ---- */
.apr-incs { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 2rem; }
.apr-inc { display: flex; gap: 0.9rem; align-items: flex-start; padding: 1.15rem 1.25rem; background: var(--apr-surface); border: 1px solid var(--g-line); border-radius: 16px; }
.apr-inc__tick { display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 8px; background: var(--g-cyan); color: #06323d; flex-shrink: 0; margin-top: 0.1rem; }
.apr-inc__tick svg { width: 1rem; height: 1rem; }
.apr-inc h3 { font-size: 0.98rem; font-weight: 800; color: var(--g-ink); margin: 0 0 0.3rem; }
.apr-inc p { font-size: 0.88rem; line-height: 1.55; color: var(--g-ink-soft); margin: 0; }

/* ---- PROCESS TIMELINE ---- */
.apr-steps { list-style: none; margin: 0; padding: 0; position: relative; max-width: 46rem; }
.apr-steps::before { content: ""; position: absolute; left: 1.35rem; top: 1.4rem; bottom: 1.4rem; width: 2px; background: linear-gradient(var(--g-cyan), var(--g-cyan-deep) 60%, transparent); }
.apr-step { position: relative; display: flex; gap: 1.4rem; padding: 0 0 2.1rem; }
.apr-step:last-child { padding-bottom: 0; }
.apr-step__no { position: relative; z-index: 1; flex-shrink: 0; width: 2.7rem; height: 2.7rem; border-radius: 50%; display: grid; place-items: center; font-family: var(--apr-display); font-weight: 600; font-size: 1.1rem; color: #06323d; background: var(--g-cyan); box-shadow: 0 0 0 6px var(--apr-surface, #fff); }
.apr-step__body { padding-top: 0.25rem; }
.apr-step__body h3 { font-size: 1.1rem; font-weight: 800; color: var(--g-ink); margin: 0 0 0.35rem; }
.apr-step__body p { font-size: 0.92rem; line-height: 1.6; color: var(--g-ink-soft); margin: 0; }

/* ---- PROMISE ---- */
.apr-promises { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.apr-promise { position: relative; background: var(--apr-surface); border: 1px solid var(--g-line); border-radius: 18px; padding: 2rem 1.6rem 1.7rem; overflow: hidden; }
.apr-promise::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--g-cyan), var(--g-cyan-deep)); }
.apr-promise__ic { display: grid; place-items: center; width: 3.1rem; height: 3.1rem; border-radius: 14px; background: var(--g-pale-cyan); color: var(--g-cyan-deep); margin-bottom: 1.1rem; }
.apr-promise__ic svg { width: 1.6rem; height: 1.6rem; }
.apr-promise h3 { font-size: 1.12rem; font-weight: 800; color: var(--g-ink); margin: 0 0 0.5rem; }
.apr-promise p { font-size: 0.9rem; line-height: 1.6; color: var(--g-ink-soft); margin: 0; }

/* ---- STATS ---- */
.apr-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; text-align: center; }
.apr-stat { padding: 1rem 0.5rem; }
.apr-stat__n { display: block; font-family: var(--apr-display); font-weight: 600; font-size: clamp(2.6rem, 5vw, 3.8rem); line-height: 1; letter-spacing: -0.02em; background: linear-gradient(120deg, #fff, #9beafb); -webkit-background-clip: text; background-clip: text; color: transparent; }
.apr-stat__l { display: block; margin-top: 0.7rem; font-size: 0.9rem; color: rgba(226,240,248,0.8); }

/* ---- TESTIMONIALS ---- */
.apr-tmy-note { font-size: 0.9rem; color: var(--g-amber); }
.apr-tmys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.apr-tmy { background: var(--apr-surface); border: 1px solid var(--g-line); border-radius: 18px; padding: 1.7rem 1.5rem; display: flex; flex-direction: column; gap: 1.1rem; }
.apr-tmy blockquote { margin: 0; font-family: var(--apr-display); font-weight: 500; font-size: 1.08rem; line-height: 1.45; color: var(--g-ink); }
.apr-tmy figcaption { display: flex; flex-direction: column; gap: 0.15rem; margin-top: auto; }
.apr-tmy__name { font-weight: 800; font-size: 0.92rem; color: var(--g-ink); }
.apr-tmy__meta { font-size: 0.78rem; color: var(--g-cyan-deep); font-weight: 600; }

/* ---- FAQ ---- */
.apr-faqsec { max-width: 52rem; }
.apr-faqs { border-top: 1px solid var(--g-line); }
.apr-faq { border-bottom: 1px solid var(--g-line); }
.apr-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.25rem 0.25rem; font-weight: 700; font-size: 1.05rem; color: var(--g-ink); }
.apr-faq summary::-webkit-details-marker { display: none; }
.apr-faq summary::after { content: "+"; font-size: 1.4rem; font-weight: 400; color: var(--g-cyan-deep); transition: transform .3s var(--g-ease); flex-shrink: 0; }
.apr-faq[open] summary::after { transform: rotate(45deg); }
.apr-faq p { margin: 0 0 1.25rem; font-size: 0.95rem; line-height: 1.65; color: var(--g-ink-soft); max-width: 44rem; }

/* ---- CLOSING ---- */
.apr-closing { text-align: center; max-width: 44rem; }
.apr-closing .apr-sublede { margin: 1rem auto 0; }
.apr-closing .apr-cta-row { margin-top: 2rem; }
.apr-closing__contact { margin: 1.5rem 0 0; font-size: 0.9rem; color: rgba(226,240,248,0.8); }
.apr-closing__contact a { color: #9beafb; font-weight: 600; }

/* ---- RESPONSIVE ---- */
@media (max-width: 940px) {
  .apr-hero__inner { grid-template-columns: 1fr; }
  .apr-hero__card { order: 2; }
  .apr-how { grid-template-columns: 1fr; }
  .apr-routes { grid-template-columns: repeat(2, 1fr); }
  .apr-stakes, .apr-promises, .apr-stats, .apr-tmys { grid-template-columns: 1fr; }
  .apr-incs { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .apr-routes { grid-template-columns: 1fr; }
  .apr-form__row { grid-template-columns: 1fr; }
  .apr-trust__dot { display: none; }
}

/* ---- Apply-PR: eligibility note + essentials (requirements/documents/fees/timeline) ---- */
.apr-elig-note { margin: 1.75rem auto 0; max-width: 48rem; text-align: center; font-size: 0.95rem; line-height: 1.6; color: var(--g-ink-soft); }
.apr-elig-note a { color: var(--g-cyan-deep); font-weight: 600; }
.apr-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.apr-fact { background: var(--apr-surface); border: 1px solid var(--g-line); border-radius: 18px; padding: 1.7rem 1.6rem; }
.apr-fact__ic { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 14px; background: var(--g-pale-cyan); color: var(--g-cyan-deep); margin-bottom: 1rem; }
.apr-fact__ic svg { width: 1.55rem; height: 1.55rem; }
.apr-fact h3 { font-size: 1.15rem; font-weight: 800; color: var(--g-ink); margin: 0 0 0.6rem; }
.apr-fact p { font-size: 0.92rem; line-height: 1.62; color: var(--g-ink-soft); margin: 0; }
.apr-fact a { color: var(--g-cyan-deep); font-weight: 600; }
.apr-fact__more { margin-top: 0.85rem !important; padding-top: 0.85rem; border-top: 1px dashed var(--g-line); font-size: 0.85rem !important; }
.apr-doclist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.apr-doclist li { display: flex; align-items: flex-start; gap: 0.55rem; font-size: 0.9rem; line-height: 1.45; color: var(--g-ink-soft); }
.apr-doclist li svg { width: 1rem; height: 1rem; color: var(--g-cyan-deep); flex-shrink: 0; margin-top: 0.18rem; }
.apr-fees { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.55rem; }
.apr-fees li { display: flex; align-items: baseline; gap: 0.7rem; font-size: 0.9rem; color: var(--g-ink-soft); }
.apr-fee__amt { font-family: var(--apr-display); font-weight: 600; font-size: 1.1rem; color: var(--g-ink); min-width: 4.6rem; letter-spacing: -0.01em; }
@media (max-width: 940px) { .apr-facts { grid-template-columns: 1fr; } }

/* ---- Apply-PR v2: chrome-less, content-led (brand, solo hero, glance, split, closing form) ---- */
.apr-brand { display: inline-flex; align-items: center; gap: 0.65rem; margin-bottom: 2rem; }
.apr-brand img { width: 2.5rem; height: 2.5rem; border-radius: 9px; object-fit: contain; background: #fff; border: 1px solid var(--g-line); padding: 3px; }
.apr-brand span { display: flex; flex-direction: column; font-weight: 800; font-size: 0.95rem; color: var(--g-ink); line-height: 1.15; text-align: left; }
.apr-brand small { font-weight: 600; font-size: 0.66rem; color: var(--g-ink-soft); letter-spacing: 0.01em; }

.apr-hero__inner--solo { grid-template-columns: 1fr; max-width: 54rem; margin: 0 auto; text-align: center; }
.apr-hero__inner--solo .apr-brand { align-self: center; }
.apr-hero__inner--solo .apr-hero__copy .apr-lede { margin-left: auto; margin-right: auto; max-width: 42rem; }
.apr-hero__note { margin: 0.9rem 0 0; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--g-ink-soft); }
.apr-trust--center { justify-content: center; }

.apr-glance { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border: 1px solid var(--g-line); border-radius: 18px; overflow: hidden; background: var(--apr-surface); }
.apr-glance__item { display: flex; flex-direction: column; gap: 0.4rem; padding: 1.3rem 1.25rem; border-right: 1px solid var(--g-line); }
.apr-glance__item:last-child { border-right: none; }
.apr-glance__k { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--g-cyan-deep); }
.apr-glance__v { font-size: 0.9rem; line-height: 1.4; color: var(--g-ink); font-weight: 600; }

.apr-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
.apr-split__copy .apr-sublede + .apr-sublede { margin-top: 1rem; }
.apr-split__panel { background: var(--apr-surface); border: 1px solid var(--g-line); border-radius: 20px; padding: clamp(1.5rem, 2.5vw, 2.1rem); box-shadow: 0 30px 70px -50px rgba(11,26,43,0.5); }
.apr-doclist--lg li { font-size: 0.96rem; gap: 0.65rem; padding: 0.35rem 0; }
.apr-doclist--lg li svg { width: 1.15rem; height: 1.15rem; margin-top: 0.15rem; }
.apr-note-amber { color: var(--g-amber) !important; font-size: 0.9rem !important; }
.apr-facts--3 { grid-template-columns: repeat(3, 1fr); }
.apr-fees--card { background: var(--apr-surface); border: 1px solid var(--g-line); border-radius: 16px; padding: 1.3rem 1.4rem; gap: 0.9rem; }
.apr-fees--card li { align-items: baseline; }

.apr-formcard--closing { max-width: 34rem; margin: 2rem auto 0; text-align: left; }
.apr-closing .apr-formcard--closing .apr-field label { color: var(--g-ink); }

@media (max-width: 940px) {
  .apr-glance { grid-template-columns: repeat(2, 1fr); }
  .apr-glance__item:nth-child(even) { border-right: none; }
  .apr-split { grid-template-columns: 1fr; }
  .apr-facts--3 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) { .apr-glance { grid-template-columns: 1fr; } .apr-glance__item { border-right: none; border-bottom: 1px solid var(--g-line); } }

/* ---- Native controls (select dropdowns, scrollbars, date pickers) follow the theme ---- */
:root { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { color-scheme: dark; } }

/* ---- Apply-PR: hero scroll cue (replaces the disruptive jump CTA) ---- */
.apr-scrollcue { display: inline-flex; flex-direction: column; align-items: center; gap: 0.45rem; margin-top: 2.6rem; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--g-ink-soft); text-decoration: none; transition: color 0.25s; }
.apr-scrollcue:hover { color: var(--g-cyan-deep); }
.apr-scrollcue svg { width: 1.35rem; height: 1.35rem; color: var(--g-cyan-deep); animation: apr-bounce 1.9s var(--g-ease) infinite; }
@keyframes apr-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .apr-scrollcue svg { animation: none; } }

/* ---- Dark-mode <select> popup + options readability (explicit, browser-reliable) ---- */
:root[data-theme="dark"] .apr-field select,
:root[data-theme="dark"] .lead-field select { color-scheme: dark; }
:root[data-theme="dark"] .apr-field option,
:root[data-theme="dark"] .lead-field option { background-color: #13212f; color: #e7eef6; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .apr-field select,
  :root:not([data-theme="light"]) .lead-field select { color-scheme: dark; }
  :root:not([data-theme="light"]) .apr-field option,
  :root:not([data-theme="light"]) .lead-field option { background-color: #13212f; color: #e7eef6; }
}
