/* ==========================================================================
   CloudInovasi — shared stylesheet
   Ported from the Webflow build (cloudinovasi-working.webflow.shared.e5b970e2f)
   Tokens, type scale, spacing and breakpoints preserved exactly.
   ========================================================================== */

:root {
  /* Brand */
  --blue: #2745e4;
  --blue-dark: #112bb1;
  --light-grey: #f5f1ee;
  --white: #fff;
  --black: #000;
  /* Body copy. Blue passes WCAG on the grey at 6.12:1, but a dark neutral
     reaches 13.98:1 and is far easier on a long read. Blue is retained for
     headings, links, taglines and UI, where it carries the brand. */
  --ink: #1c2333;

  /* Neutrals */
  --neutral-lightest: #eee;
  --neutral-lighter: #ccc;
  --neutral-light: #aaa;
  --neutral: #666;
  --neutral-dark: #444;

  /* System */
  --success-bg: #cfffb0;
  --success-fg: #23ce6b;
  --error-bg: #f8e4e4;
  --error-fg: #3b0b0b;
  --warning-bg: #fcf8d8;
  --warning-fg: #5e5515;
  --focus: #2d62ff;

  /* Semantic */
  --bg-primary: var(--light-grey);
  --bg-secondary: var(--blue);
  --bg-tertiary: var(--white);
  --bg-hover: var(--blue-dark);
  --text-primary: var(--ink);
  --text-accent: var(--blue);
  --text-secondary: var(--white);
  /* Muted text on light backgrounds. 5.79:1 on the grey, 6.5:1 on white. */
  --text-muted: #585e6b;
  /* Muted text on the blue footer and nav. 5.3:1 on the brand blue. */
  --text-on-blue-muted: #dbe1fd;
  --text-tertiary: var(--text-muted);
  --text-alternate: var(--black);
  --border-primary: var(--blue);

  /* Roundness */
  --r-small: 0.4rem;
  --r-medium: 1rem;
  --r-large: 2.5rem;

  /* Type */
  --font-display: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --font-mono: "Space Mono", ui-monospace, monospace;
}

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

html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: inline-block; vertical-align: middle; }
/* <picture> must not generate a box, or it breaks absolute positioning
   and object-fit on the hero and card images inside it. */
picture { display: contents; }
a { color: var(--text-accent); }

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  color: var(--text-accent);
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.015em;
}

/* Larger sizes need tighter tracking to avoid looking loose. */
h1, .heading-hero, .heading-h1, .heading-massive { letter-spacing: -0.03em; }
h2, .heading-h2 { letter-spacing: -0.022em; }

h1 { font-size: 3.375rem; line-height: 1.1; }
h2 { font-size: 2.625rem; line-height: 1.2; }
h3 { font-size: 2.25rem;  line-height: 1.2; }
h4 { font-size: 1.5rem;   line-height: 1.3; }
h5 { font-size: 1.25rem;  line-height: 1.4; }
h6 { font-size: 1.125rem; line-height: 1.4; }

p { margin: 0; line-height: 1.4; }
ul, ol { margin: 0; padding-left: 1.5rem; }
li { margin-bottom: 0.25rem; }
label { display: block; margin-bottom: 0.25rem; font-weight: 500; }

:focus-visible {
  outline: 0.125rem solid var(--focus);
  outline-offset: 0.125rem;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* --- Layout primitives --------------------------------------------------- */
.page-wrapper { overflow: clip; }
.padding-global { padding-left: 2.5rem; padding-right: 2.5rem; }
.container-large  { width: 100%; max-width: 100rem; margin-inline: auto; }
.container-medium { width: 100%; max-width: 64rem;  margin-inline: auto; }
/* Long-form pages. Keeps the heading and the prose in one centred column so a
   wide screen does not leave the text stranded on the left. */
.container-article { width: 100%; max-width: 58rem; margin-inline: auto; }
.container-article .prose { max-width: none; }
.container-small  { width: 100%; max-width: 48rem;  margin-inline: auto; }

.padding-section-large  { padding-top: 5rem; padding-bottom: 5rem; }
.padding-section-medium { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.padding-section-small  { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.padding-section-hero   { padding-top: 7rem; padding-bottom: 6vh; }
.padding-section-hero-small { padding-top: 6.5rem; padding-bottom: 3vh; }
.padding-section-footer { padding-top: 3.5rem; padding-bottom: 1rem; }

.max-width-small  { width: 100%; max-width: 20rem; }
.max-width-medium { width: 100%; max-width: 32rem; }
.max-width-medlarge { width: 100%; max-width: 39rem; }
.max-width-large  { width: 100%; max-width: 48rem; }
.max-width-xlarge { width: 100%; max-width: 64rem; }
.align-center { margin-inline: auto; }

.mb-xxsmall { margin-bottom: 0.25rem; }
.mb-xsmall  { margin-bottom: 0.5rem; }
.mb-small   { margin-bottom: 1rem; }
.mb-medium  { margin-bottom: 1.5rem; }
.mb-large   { margin-bottom: 2rem; }
.mb-xlarge  { margin-bottom: 2.5rem; }
.mb-xxlarge { margin-bottom: 3rem; }
.mt-xxsmall { margin-top: 0.25rem; }
.mt-small   { margin-top: 1rem; }
.mt-medium  { margin-top: 1.5rem; }
.mt-large   { margin-top: 2rem; }

.text-align-center { text-align: center; }
.z-index-1 { position: relative; z-index: 1; }
.hide { display: none !important; }

/* The signature device: curved bottom corners between stacked sections. */
.curve-wrapper {
  border-bottom-left-radius: var(--r-large);
  border-bottom-right-radius: var(--r-large);
  overflow: hidden;
}
.curve-wrapper.is-visible { overflow: visible; }

.bg-primary   { background-color: var(--bg-primary); }
.bg-secondary { background-color: var(--bg-secondary); }
.bg-tertiary  { background-color: var(--bg-tertiary); }
.text-secondary,
.text-secondary h1, .text-secondary h2, .text-secondary h3,
.text-secondary h4, .text-secondary .tagline,
/* Both classes often sit on the same element, so match that case too and
   place it after .tagline in source order so white actually wins. */
.tagline.text-secondary,
.text-utility.text-secondary { color: var(--text-secondary) !important; }
.text-tertiary  { color: var(--text-muted); }

/* Sections overlap by 1px to prevent sub-pixel hairlines between them. */
.section { position: relative; margin-top: -1px; }

/* Where a section sits on the same background as the one above it, the pair
   was paying full padding twice and leaving a dead band between them. The
   section above already contributes its bottom padding, so the one below
   drops its top padding and the gap becomes correct instead of doubled. */
.pad-top-0 { padding-top: 0 !important; }

/* Top-of-page clearance for the fixed navbar, plus a little breathing room
   before the body copy. Replaces a scattering of inline padding-top values. */
.page-head { padding-top: 6rem; padding-bottom: 2.5rem; }
@media screen and (max-width: 767px) {
  .page-head { padding-top: 5rem; padding-bottom: 2rem; }
}


/* --- Type styles --------------------------------------------------------- */
.heading-hero { font-family: var(--font-display); font-size: 5.625rem; font-weight: 600; line-height: 0.95; }
.heading-h1 { font-size: 3.375rem; line-height: 1.1; }
.heading-h2 { font-size: 2.625rem; line-height: 1.2; }
.heading-h3 { font-size: 2.25rem;  line-height: 1.2; }
.heading-h4 { font-size: 1.5rem;   line-height: 1.3; }

.text-size-large   { font-size: 1.5rem; }
.text-size-medium  { font-size: 1.125rem; }
.text-size-small   { font-size: 0.875rem; }
.text-size-tiny    { font-size: 0.75rem; }
.text-weight-semibold { font-weight: 600; }

.tagline {
  display: inline-block;
  color: var(--text-accent);
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.text-utility {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.5;
}
/* Short labels can still be uppercase; sentences should not be. */
.text-utility.is-label { text-transform: uppercase; letter-spacing: 0.06em; }

/* --- Buttons ------------------------------------------------------------- */
.button {
  display: inline-block;
  border: 0;
  border-radius: var(--r-small);
  background-color: var(--bg-secondary);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 400;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.75rem 1.75rem;
  cursor: pointer;
  transition: background-color 0.2s;
}
.button:hover { background-color: var(--bg-hover); }

.button.is-secondary {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
}
.button.is-secondary:hover {
  background-color: var(--bg-hover);
  color: var(--text-secondary);
}
.button.is-large { padding: 1rem 2rem; }
.button.is-nav { display: flex; align-items: center; text-align: center; }

.button-group { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.button-group.is-center { justify-content: center; }

/* Hero split button (label + arrow tile) */
.hero-button-wrapper {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  height: 3.25rem;
  text-decoration: none;
}
.hero-button {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0.75rem 1.75rem;
  border-radius: var(--r-small);
  background-color: var(--bg-tertiary);
  text-decoration: none;
}
.hero-button.is-icon {
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  padding: 0 0.75rem 0 0.85rem;
  color: var(--blue);
  transition: transform 0.2s;
}
.hero-button-wrapper:hover .hero-button.is-icon { transform: translateX(0.35rem); }
.hero-button-text {
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 1.125rem;
}
.icon-medsmall { width: 1.5rem; height: 1.5rem; }
.icon-large { width: 2.5rem; height: 2.5rem; }
.icon-xl { width: 3rem; height: 3rem; }

/* ==========================================================================
   CSS-only interaction
   No JavaScript anywhere on this site, so the menu, tabs and accordions are
   driven by hidden form controls and the :checked pseudo-class. The controls
   stay keyboard reachable; only their painted box is hidden.
   ========================================================================== */
.a11y-control {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.a11y-control:focus-visible + label,
.a11y-control:focus-visible + label .hamburger-bars {
  outline: 0.125rem solid var(--focus);
  outline-offset: 0.125rem;
}

/* --- Navbar -------------------------------------------------------------- */
.navbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 4.5rem;
  padding-left: 2.5rem;
  padding-right: 2.5rem;
  background-color: transparent;
}
.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  margin-inline: auto;
}
.navbar-menu-wrapper {
  display: flex;
  align-items: center;
  gap: 4rem;
  padding: 0.5rem 1.5rem;
  border-radius: var(--r-small);
  background-color: var(--bg-tertiary);
}
.navbar-logo-link { display: flex; padding-bottom: 0.5rem; padding-left: 0; }
.navbar-logo { width: 10rem; }
.navbar-menu-links { display: flex; align-items: center; }
.navbar-link {
  padding: 0.5rem 1rem;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s;
}
.navbar-link:hover { color: var(--blue-dark); }
.navbar-link[aria-current="page"] { color: var(--blue-dark); }
.navbar-actions { display: flex; gap: 0.75rem; }

.mobile-navbar-container {
  display: none;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.mobile-navbar-menu-wrapper {
  display: flex;
  align-items: center;
  height: 3.5rem;
  padding: 0.5rem 1.5rem;
  border-radius: var(--r-small);
  background-color: var(--bg-tertiary);
}
.hamburger {
  display: flex;
  user-select: none;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  padding: 0;
  border: 0;
  border-radius: var(--r-small);
  background-color: var(--bg-tertiary);
  color: var(--blue);
  cursor: pointer;
}
.hamburger-bars { display: block; width: 1.35rem; height: 0.85rem; position: relative; }
.hamburger-bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: currentColor;
  transition: transform 0.25s, opacity 0.2s;
}
.hamburger-bars span:nth-child(1) { top: 0; }
.hamburger-bars span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hamburger-bars span:nth-child(3) { bottom: 0; }

.mobile-dropdown {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  width: 100%;
  background-color: var(--bg-primary);
}
#nav-toggle:checked ~ .mobile-dropdown { display: flex; }
/* Bars morph to a cross when open. */
#nav-toggle:checked ~ .mobile-navbar-container .hamburger-bars span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
#nav-toggle:checked ~ .mobile-navbar-container .hamburger-bars span:nth-child(2) { opacity: 0; }
#nav-toggle:checked ~ .mobile-navbar-container .hamburger-bars span:nth-child(3) { top: 50%; bottom: auto; transform: translateY(-50%) rotate(-45deg); }
.mobile-dropdown-links { display: flex; flex-direction: column; align-items: center; }
.mobile-dropdown-links a {
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 1rem;
  text-transform: uppercase;
  text-decoration: none;
}

/* --- Hero ---------------------------------------------------------------- */
.hero-component {
  display: flex;
  min-height: 68svh;
  max-height: 40rem;
}
.hero-component.is-small { min-height: 40svh; }
.hero-content-wrapper {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  height: 100%;
}
.hero-content-left { display: flex; flex-direction: column; justify-content: flex-end; }
/* Hero text sits over photography, so give it a shadow rather than relying on
   the gradient overlay alone. */
.hero-content-left .tagline { text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55); }
.hero-content-left h1 { text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35); }
.hero-bg-wrapper {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  border-bottom-left-radius: var(--r-large);
  border-bottom-right-radius: var(--r-large);
  background-color: var(--blue-dark);
  background-image: linear-gradient(#00000080, #00000080);
}
.hero-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.image-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: linear-gradient(212deg, #0000 51%, #0000008a);
}

/* --- Overview ------------------------------------------------------------ */
.overview-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1rem; }
.overview-component { grid-column: 1 / 10; }

/* --- Benefits cards ------------------------------------------------------ */
.text-3-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.benefits-grid { display: grid; gap: 2rem; }
.benefits-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
  gap: 1rem;
}
.card {
  border-radius: var(--r-medium);
  background-color: var(--bg-tertiary);
  overflow: hidden;
}
.card-medium { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.card-medium-content { display: flex; flex-direction: column; justify-content: center; padding: 1.75rem; }
.card-large { grid-area: 1 / 3 / 3 / 5; display: flex; flex-direction: column; }
.card-large-content { display: flex; flex: 1; flex-direction: column; justify-content: center; padding: 2rem; }
.card-small { display: flex; flex-direction: column; }
.card-small-content { display: flex; flex: 1; flex-direction: column; justify-content: space-around; padding: 1.5rem; }
.card-image-wrapper { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.card-image { width: 100%; height: 100%; object-fit: cover; }

/* --- Services tabs ------------------------------------------------------- */
.services-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem 5rem;
  align-items: center;
}
.services-tabs-menu { display: grid; }
.services-tab-link {
  padding: 1rem 0 1rem 2rem;
  border: 0;
  border-left: 2px solid transparent;
  background-color: transparent;
  color: var(--text-primary);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s;
}
.services-tab-link { display: block; width: 100%; }
.tab-radio:checked + .services-tab-link { border-left-color: var(--border-primary); }
.tab-radio:focus-visible + .services-tab-link { outline: 0.125rem solid var(--focus); outline-offset: 0.125rem; }
#svc-1:checked ~ .tabs-content #pane-1,
#svc-2:checked ~ .tabs-content #pane-2,
#svc-3:checked ~ .tabs-content #pane-3,
#svc-4:checked ~ .tabs-content #pane-4 { display: block; }
.tab-header { display: flex; align-items: center; gap: 0.5rem; }
.tab-icon { padding-top: 0.2rem; color: var(--blue); }
.tab-text { padding-left: 2rem; }
.tabs-content { height: 100%; }
.tab-pane { display: none; height: 100%; }

.services-image { width: 100%; height: 100%; border-radius: var(--r-medium); object-fit: cover; }

/* --- Process ------------------------------------------------------------- */
.process-component {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
.process-content-left { display: none; }
.process-number {
  font-family: var(--font-display);
  font-size: 14rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.process-number-wrapper { text-align: center; transition: transform 0.5s ease; }
.process-content-right { display: grid; gap: 3rem; }
.process-content { padding-top: 0; }
.process-number-mobile {
  display: block;
  font-family: var(--font-display);
  font-size: 6rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
}
.process-progress-wrapper { width: 100%; height: 2px; margin-bottom: 2rem; background-color: var(--blue-dark); }
.process-progress-bar { width: 100%; height: 2px; background-color: var(--white); }

/* --- Stat CTA ------------------------------------------------------------ */
.section-stat-cta { position: relative; }
.section-stat-cta.bg-primary { margin-top: -2.5rem; padding-top: 2.5rem; }
.stat-cta-component {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  align-items: center;
}
.stat-cta-card {
  grid-column: 3 / 4;
  padding: 1rem 2rem;
  border-radius: 2rem;
  background-color: var(--bg-tertiary);
}
.stat-cta-bg-wrapper {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  border-bottom-left-radius: var(--r-large);
  border-bottom-right-radius: var(--r-large);
  background-color: var(--blue-dark);
  background-image: linear-gradient(#00000080, #00000080);
}
.stat-cta-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Regulations accordion ---------------------------------------------- */
.regulations-content {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 4rem;
  align-items: start;
}
.regulations-left  { grid-column: 1 / 5; }
.regulations-right { grid-column: 6 / 13; }
.regulations-list { display: grid; gap: 1rem; }
.accordion {
  border-radius: var(--r-medium);
  background-color: var(--bg-tertiary);
  overflow: hidden;
}
.accordion-question {
  display: flex;
  list-style: none;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  padding: 1.25rem 1.5rem;
  border: 0;
  background-color: transparent;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1.5rem;
  text-align: left;
  cursor: pointer;
}
.accordion-icon {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  transition: transform 0.3s ease;
}
.accordion-question::-webkit-details-marker { display: none; }
.accordion[open] .accordion-icon { transform: rotate(45deg); }
.accordion-answer {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.accordion-answer p { padding-bottom: 1.5rem; }
.accordion-answer p + p { padding-top: 0; margin-top: -0.75rem; }

/* --- Footer CTA ---------------------------------------------------------- */
.footer-cta-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
}
.footer-cta-content { position: relative; z-index: 1; }
.footer-cta-bg-wrapper { position: absolute; inset: 0; z-index: 0; }
.footer-cta-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: var(--r-medium);
  object-fit: cover;
  background-color: var(--blue-dark);
}

/* --- Footer -------------------------------------------------------------- */
.footer {
  position: relative;
  margin-top: -1px;
  background-color: var(--blue);
  color: var(--text-secondary);
}
.footer, .footer a, .footer .tagline { color: var(--text-secondary); }
.footer-top {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
  align-items: start;
}
.footer-left { grid-column: 1 / 5; }
.footer-menu { grid-column: 8 / 13; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
.footer-logo-link { display: inline-flex; width: 20rem; }
.footer-logo { width: 100%; height: 100%; object-fit: contain; }
.footer-link-list { display: flex; flex-direction: column; align-items: flex-start; }
.footer-link {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  font-size: 1.25rem;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-link:hover { color: var(--text-on-blue-muted); }
.footer-social-list { display: flex; gap: 0.75rem; }
.footer-social-link { display: flex; align-items: center; width: 2rem; height: 2rem; }
.line-divider { width: 100%; height: 1px; background-color: rgba(255, 255, 255, 0.25); }
.footer-bottom {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
  align-items: start;
}
.footer-credit { grid-column: 1 / 6; font-size: 0.875rem; }
.footer-legal { grid-column: 8 / 13; display: flex; gap: 1.5rem; }
.footer-legal a {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  text-transform: uppercase;
  text-decoration: underline;
}

/* --- About / team / statistics ------------------------------------------ */
.text-2-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.about-stack { display: flex; flex-direction: column; gap: 1rem; }
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  border-radius: var(--r-medium);
  background-color: var(--bg-tertiary);
  overflow: hidden;
}
.about-content-left { width: 92%; padding-left: 2.25rem; }
.about-image-wrapper { aspect-ratio: 1; }
.about-image { width: 100%; height: 100%; object-fit: cover; }
.team-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem 1.5rem; align-items: start; }
.team-item { width: 100%; }
.team-image-wrapper {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  border-radius: var(--r-medium);
  overflow: hidden;
  background-color: var(--neutral-lightest);
}
.team-image { width: 100%; height: 100%; object-fit: cover; }
.statistics-content { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem 1rem; align-items: start; }
.statistics-image-wrapper { height: 38vh; border-radius: var(--r-medium); overflow: hidden; }
.statistics-image { width: 100%; height: 100%; object-fit: cover; }

/* --- Service cards (services page, sticky stack) ----------------------- */
.service-component { display: grid; }
.service-card {
  position: sticky;
  top: 8%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  min-height: 58vh;
  margin-bottom: 5vh;
  border-radius: var(--r-medium);
  background-color: var(--bg-tertiary);
  overflow: hidden;
}
.service-card:last-child { margin-bottom: 0; }
.service-card-content { display: flex; flex-direction: column; justify-content: space-between; padding: 2.25rem 2.25rem 2.75rem; }
.service-card-content-top { width: 90%; }
.service-image-wrapper { display: flex; align-items: center; justify-content: center; height: 100%; }
.service-image { width: 100%; height: 100%; object-fit: cover; }
.icon-huge { width: 5vw; max-width: 6rem; color: var(--blue); }

/* --- Contact ------------------------------------------------------------- */
.contact-content { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem 5rem; align-items: start; }
.contact-form { display: grid; gap: 1.5rem; }
.form-field-label {
  margin-bottom: 0.5rem;
  color: var(--text-accent);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 400;
  text-transform: uppercase;
}
.form-input {
  width: 100%;
  min-height: 3rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-primary);
  border-radius: var(--r-small);
  background-color: transparent;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
}
.form-input::placeholder { color: var(--text-muted); }
.form-input:focus { border-color: var(--border-primary); }
.form-input.is-textarea { min-height: 8rem; padding-top: 0.75rem; resize: vertical; }
select.form-input { appearance: none; background-image: none; }
.form-checkbox { display: flex; align-items: flex-start; gap: 0.5rem; margin-bottom: 0.5rem; }
.form-checkbox input { margin-top: 0.3rem; accent-color: var(--blue); }
.form-checkbox label { margin: 0; font-weight: 400; }
.form-message {
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  border-radius: var(--r-small);
}
.form-message.is-success { background-color: var(--success-bg); color: var(--success-fg); }
.form-message.is-error   { background-color: var(--error-bg);   color: var(--error-fg); }
.contact-map { width: 100%; min-height: 100%; border: 1px solid var(--blue); border-radius: var(--r-medium); overflow: hidden; }
.contact-map iframe { display: block; width: 100%; height: 100%; min-height: 24rem; border: 0; }
.contact-details-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4rem 2rem; align-items: start; }

/* --- Guides / prose ------------------------------------------------------ */
.guides-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.guide-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem;
  border-radius: var(--r-medium);
  background-color: var(--bg-tertiary);
  text-decoration: none;
  transition: transform 0.2s;
}
.guide-card:hover { transform: translateY(-0.25rem); }
.guide-card h3 { font-size: 1.5rem; }

.prose { max-width: 46rem; }
.prose p { margin-bottom: 1.25rem; font-size: 1.125rem; line-height: 1.65; }
.prose h2 { margin-top: 2.5rem; margin-bottom: 1rem; font-size: 1.875rem; }
.prose h3 { margin-top: 1.75rem; margin-bottom: 0.75rem; font-size: 1.5rem; }
.prose ul, .prose ol { margin-bottom: 1.25rem; font-size: 1.125rem; line-height: 1.6; }
.prose a { text-decoration: underline; }
.prose table { width: 100%; margin-bottom: 1.5rem; border-collapse: collapse; font-size: 1rem; }
.prose th, .prose td { padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--neutral-lighter); text-align: left; }
.prose th { font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; font-weight: 400; }
.prose td.num, .prose th.num { text-align: right; font-variant-numeric: tabular-nums; }

.callout {
  margin-bottom: 1.5rem;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--blue);
  border-radius: var(--r-small);
  background-color: var(--bg-tertiary);
}
.callout p { margin-bottom: 0; font-size: 1rem; }

.as-of {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: var(--r-small);
  background-color: var(--bg-tertiary);
  color: var(--text-accent);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Glossary */
.glossary-list { display: grid; gap: 0.75rem; }
.glossary-item { padding: 1.25rem; border-radius: var(--r-medium); background-color: var(--bg-tertiary); }
.glossary-term { font-family: var(--font-display); font-size: 1.5rem; }
.glossary-expansion { font-family: var(--font-mono); font-size: 0.875rem; color: var(--neutral); }

/* --- Calculator ---------------------------------------------------------- */
.calc-layout { display: grid; grid-template-columns: 22rem 1fr; gap: 3rem; align-items: start; }
.calc-panel {
  padding: 1.5rem;
  border-radius: var(--r-medium);
  background-color: var(--bg-tertiary);
}
.calc-panel.is-sticky { position: sticky; top: 6rem; }
.calc-field { margin-bottom: 1.25rem; }
.calc-hint { margin-top: 0.35rem; font-size: 0.8125rem; color: var(--neutral); }
.calc-input-group { display: flex; align-items: stretch; }
.calc-input-prefix {
  display: flex;
  align-items: center;
  padding: 0 0.75rem;
  border: 1px solid var(--border-primary);
  border-right: 0;
  border-radius: var(--r-small) 0 0 var(--r-small);
  background-color: var(--bg-primary);
  font-family: var(--font-mono);
  font-size: 0.875rem;
}
.calc-input-group .form-input { border-radius: 0 var(--r-small) var(--r-small) 0; }
.calc-results { display: grid; gap: 1.5rem; }
.calc-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.calc-table th, .calc-table td { padding: 0.5rem 0.5rem; border-bottom: 1px solid var(--neutral-lightest); text-align: left; }
.calc-table td.num, .calc-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.calc-table tr.is-group td {
  padding-top: 1.25rem;
  border-bottom: 1px solid var(--blue);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.calc-table tr.is-total td {
  border-bottom: 0;
  border-top: 2px solid var(--blue);
  font-weight: 600;
}
.calc-headline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 1.5rem 2rem;
  border-radius: var(--r-medium);
  background-color: var(--bg-secondary);
  color: var(--text-secondary);
}
.calc-headline-figure {
  font-family: var(--font-display);
  font-size: 2.625rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
}
.calc-headline-label { font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; }
.calc-disclaimer { font-size: 0.875rem; color: var(--neutral-dark); line-height: 1.6; }
.calc-assumptions { margin: 0; }
.calc-assumptions dt {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
}
.calc-assumptions dt:first-child { margin-top: 0; }
.calc-assumptions dd { margin: 0.25rem 0 0; font-size: 0.9375rem; }
.calc-panel details > summary { list-style: none; }
.calc-panel summary::-webkit-details-marker { display: none; }
.calc-panel summary::after { content: " +"; font-family: var(--font-mono); }
.calc-panel[open] summary::after,
details[open] > summary::after { content: " \2212"; }
.calc-table tbody:empty { display: none; }

/* ==========================================================================
   Breakpoints — matching the original: 991 / 767 / 479
   ========================================================================== */
@media screen and (max-width: 991px) {
  .padding-global { padding-left: 2rem; padding-right: 2rem; }
  .padding-section-large { padding-top: 4rem; padding-bottom: 4rem; }
  .padding-section-medium { padding-top: 3rem; padding-bottom: 3rem; }
  .padding-section-hero { padding-top: 5.5rem; padding-bottom: 4rem; }
  .padding-section-footer { padding-top: 3rem; }
  .navbar { padding-left: 2rem; padding-right: 2rem; }
  .navbar-menu-wrapper { gap: 2rem; height: 3.5rem; }
  .navbar-menu-links { gap: 1.5rem; }
  .navbar-link { padding: 0.75rem 0; }
  .button.is-nav { height: 3.5rem; }
  .hero-content-wrapper { grid-template-columns: 1fr; }
  .overview-grid { grid-template-columns: 1fr; }
  .overview-component { grid-column: 1 / 2; }
  /* Rows must go to auto here. Leaving the 1.5fr 1fr ratio in place forces
     the short text card to stretch to match the tall photo card. */
  .benefits-row { grid-template-columns: 1fr 1fr; grid-template-rows: auto; gap: 1.5rem; }
  .card-large { grid-area: auto / auto / auto / auto; grid-column: span 2; }
  .benefits-row > * { align-self: start; }
  .card-small-content, .card-large-content { padding: 1.5rem; }
  .services-tabs { grid-template-columns: 1fr; gap: 0 3rem; }
  .tabs-content { display: none; }
  .process-component { grid-template-columns: 0.75fr 1fr; gap: 4rem 2rem; }
  .regulations-content { display: flex; flex-direction: column; gap: 3rem; }
  .regulations-left, .regulations-right { grid-column: auto; }
  .footer-top { display: flex; flex-direction: column; gap: 2.5rem; }
  .footer-left, .footer-menu { grid-column: auto; }
  .footer-bottom { display: flex; justify-content: space-between; }
  .footer-credit, .footer-legal { grid-column: auto; }
  .text-3-col { grid-template-columns: 1fr 1fr; }
.about-content { grid-template-columns: 1.5fr 1fr; }
  .about-content-left { padding: 2rem; width: 100%; }
  .service-card-content { padding: 1.75rem; }
  .contact-content { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .contact-details-grid { grid-template-columns: 1fr 1fr; gap: 4rem 2.5rem; }
  .team-list { gap: 2rem 1.5rem; }
  .statistics-content { gap: 1.5rem 2.5rem; }
  .calc-layout { grid-template-columns: 1fr; }
  .calc-panel.is-sticky { position: static; }
}

@media screen and (max-width: 767px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.5rem; }
  h4 { font-size: 1.25rem; }
  .heading-hero { font-size: 4rem; }
  .heading-h1 { font-size: 2.5rem; }
  .heading-h2 { font-size: 2rem; }
  .heading-h3 { font-size: 1.5rem; }
  .text-size-large { font-size: 1.25rem; }
  .padding-global { padding-left: 1.25rem; padding-right: 1.25rem; }
  .padding-section-large { padding-top: 3rem; padding-bottom: 3rem; }
  .padding-section-medium { padding-top: 2.5rem; padding-bottom: 2.5rem; }
  .padding-section-small { padding-top: 1.75rem; padding-bottom: 1.75rem; }
  .padding-section-hero { padding-top: 4.5rem; padding-bottom: 5vh; }
  .hero-component { min-height: 58svh; }
  .hero-component.is-small { min-height: 34svh; }
  .padding-section-hero-small { padding-top: 4.5rem; padding-bottom: 1.5rem; }
  .padding-section-footer { padding-top: 2.5rem; }

  .navbar {
    min-height: 4rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    /* Content used to scroll visibly through the gap between the logo pill and
       the hamburger. A translucent backdrop mutes it without hiding the hero
       photograph behind the bar. */
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    background-color: rgba(245, 241, 238, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  /* Browsers without backdrop-filter get a solid bar instead of a see-through one. */
  @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .navbar { background-color: var(--bg-primary); }
  }
  .navbar-container { display: none; }
  .mobile-navbar-container { display: flex; }

  .hero-content-wrapper { display: flex; flex-direction: column; justify-content: flex-end; gap: 3rem; }
  .hero-content-left { justify-content: flex-start; }

  .benefits-grid { gap: 1.5rem; }
  .benefits-row { grid-template-columns: 1fr 1fr; grid-template-rows: auto; gap: 1.5rem; }
  .card-small-content, .card-large-content { padding: 1.5rem; }

  .services-tabs { grid-template-columns: 1fr; gap: 0; }
  .services-tab-link { padding-left: 1.5rem; }
  .tab-text { padding-left: 1.5rem; }

  .process-component { grid-template-columns: 1fr; gap: 2.25rem; }
  .process-content-left { display: none; }
  .process-content { padding-top: 0; }
.process-number-mobile { display: block; margin-top: 2.5rem; }
  .process-content-right { gap: 2.25rem; }
  .process-progress-wrapper { margin-top: 2rem; }

  .stat-cta-component { grid-template-columns: 1fr; }
  .stat-cta-card { grid-column: auto; }

  .regulations-content { gap: 3rem; }
  .accordion-question { padding: 1rem 1.25rem; font-size: 1.25rem; }
  .accordion-answer { padding-left: 1.25rem; padding-right: 1.25rem; }

  .footer-cta-card { padding: 1.75rem; }
  .footer-top { gap: 2rem; }
  .footer-bottom { flex-direction: column-reverse; align-items: stretch; gap: 1.5rem; padding-bottom: 1rem; }
  .footer-legal { flex-direction: column; gap: 0.75rem; }

  .text-3-col, .text-2-col { grid-template-columns: 1fr; }
.about-content { display: flex; flex-direction: column; }
  .about-content-left { width: 100%; padding: 2rem; }
  .about-image-wrapper { order: -1; }
  .team-list { grid-template-columns: 1fr; gap: 2rem; }
  .statistics-content { grid-template-columns: 1fr; }
  .service-card { position: static; grid-template-columns: 1fr; min-height: auto; margin-bottom: 1.25rem; }
  .service-card-content { padding: 1.5rem; gap: 2rem; }
  .icon-huge { width: 50px; }
  .contact-content { grid-template-columns: 1fr; gap: 3rem; }
  .contact-details-grid { grid-template-columns: 1fr; gap: 3rem 2rem; }
  .guides-list { grid-template-columns: 1fr; }
  .calc-headline { grid-template-columns: 1fr; }
  /* The salary band table is seven numeric columns and cannot fit a phone. It
     scrolls inside its wrapper, but a sideways scroll is easy to miss, so drop
     the derived columns and keep the ones people came for. The full table is
     still there on a wider screen. */
  .calc-table { font-size: 0.875rem; }
  .calc-table th, .calc-table td { padding-left: 0.25rem; padding-right: 0.25rem; }
  .calc-table.is-bands th:nth-child(2),
  .calc-table.is-bands td:nth-child(2),
  .calc-table.is-bands th:nth-child(4),
  .calc-table.is-bands td:nth-child(4),
  .calc-table.is-bands th:nth-child(6),
  .calc-table.is-bands td:nth-child(6) { display: none; }
  .prose p, .prose ul, .prose ol { font-size: 1rem; }
}

@media screen and (max-width: 479px) {
  .heading-hero { font-size: 3rem; }
  .tagline { font-size: 0.75rem; }
  .curve-wrapper,
  .hero-bg-wrapper,
  .stat-cta-bg-wrapper { border-bottom-left-radius: 1.5rem; border-bottom-right-radius: 1.5rem; }
  .card, .card-medium, .card-large, .card-small, .team-image-wrapper, .about-content { border-radius: 0.5rem; }
  /* Once the cards stack, the image wrapper has no height to inherit from, so
     height:100% on the image is undefined. Give it a ratio to size against. */
  .card-image-wrapper { height: auto; aspect-ratio: 16 / 10; }
  .card-image { height: 100%; }
  .card-medium { display: flex; flex-direction: column; }
  .card-medium .card-image-wrapper { order: -1; }
  .benefits-row { grid-template-columns: 1fr; grid-template-rows: auto; gap: 1rem; }
  /* Every card must span the single column here. Leaving .card-medium on
     span 2 forces an implicit second column, collapses the explicit track to
     0px, and renders any card placed in it zero-width while it still takes up
     its full height. */
  .benefits-row > * { grid-column: 1 / -1; }
  .hero-button-wrapper { gap: 0.3rem; height: 2.5rem; }
  .hero-button { padding: 0.45rem 1.15rem; border-radius: 0.2rem; }
  .hero-button.is-icon { width: 2.5rem; height: 2.5rem; }
  .hero-button-text { font-size: 1rem; }
  .icon-medsmall { width: 1rem; height: 1rem; }
  .process-number { font-size: 6rem; }
  .stat-cta-card { padding-left: 1.5rem; padding-right: 1.5rem; border-radius: 1rem; }
  .footer-logo-link { width: 15rem; }
  .footer-menu { grid-template-columns: 1fr; gap: 2.5rem; }
  .mobile-navbar-menu-wrapper { height: 50px; padding-left: 15px; padding-right: 15px; }
  .hamburger { width: 50px; height: 50px; }
  .calc-panel { padding: 1.25rem; }
  .calc-headline { padding: 1.25rem 1.5rem; }
  .calc-headline-figure { font-size: 2rem; }
}

/* Print */
@media print {
  .navbar, .mobile-dropdown, .footer-cta-card, .button { display: none !important; }
  body { background: #fff; color: #000; }
}
