/* Shared across all pages: variables, base, nav, buttons, footer. */

/* Variables */
:root {
  /* Navy: institutional color */
  --navy:        #0a2044;
  --navy-2:      #0f2c5c;
  --navy-3:      #163a73;
  --navy-deep:   #061529;

  /* Orange: accent */
  --orange:      #f58a04;
  --orange-soft: #ffae47;
  --orange-deep: #d97406;

  /* Neutrals */
  --white:       #ffffff;
  --off-white:   #f1f3f6;

  /* Surfaces and text, light theme */
  --paper:       #f6f7f9;
  --paper-card:  #ffffff;
  --ink:         #0a2044;
  --ink-soft:    #46586f;
  --ink-faint:   #7386a0;
  --rule:        #e1e5ec;
  --rule-soft:   #edf0f4;

  --maxw:        1120px;
  --pad-x:       clamp(1.25rem, 5vw, 3rem);
  /* For blocks whose horizontal padding sits INSIDE the max-width. */
  --maxw-box:    calc(var(--maxw) + var(--pad-x) * 2);
}

html[data-theme="dark"] {
  --paper:      #071426;
  --paper-card: #0d1f38;
  --ink:        #e8ecf2;
  --ink-soft:   #9daec4;
  --ink-faint:  #6a7f9a;
  --rule:       #1a3251;
  --rule-soft:  #132842;
}

/* Base reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
:target { scroll-margin-top: 90px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
img { max-width: 100%; }
::selection { background: var(--orange); color: #1a0f00; }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: clamp(0.68rem, 1.5vw, 0.78rem);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 1.3rem;
}
.eyebrow::before {
  content: "";
  width: 9px; height: 9px;
  background: var(--orange);
  border-radius: 50%;
  flex-shrink: 0;
}

.sec-head { margin-bottom: clamp(2rem, 5vw, 3rem); }
.sec-head h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3.8vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ink);
  text-wrap: balance;
}
.sec-head__sub {
  margin: 0.9rem 0 0;
  /* No max-width: inside a grid, 62ch left the right half empty. */
  font-size: clamp(0.95rem, 1.6vw, 1.06rem);
  color: var(--ink-soft);
  line-height: 1.65;
}
.sec-head--center { text-align: center; }
.sec-head--center .eyebrow { justify-content: center; }
.sec-head--center .sec-head__sub { max-width: 62ch; margin-left: auto; margin-right: auto; }

/* On dark backgrounds */
.on-navy .sec-head h2 { color: var(--white); }
.on-navy .sec-head__sub { color: rgba(255,255,255,0.66); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  border-radius: 12px;
  border: 1.5px solid transparent;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s cubic-bezier(0.4,0,0.2,1), box-shadow 0.2s, background 0.2s, border-color 0.2s, color 0.2s;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--orange);
  color: #1a0f00;
  box-shadow: 0 4px 20px rgba(245,138,4,0.30);
}
.btn--primary:hover {
  background: var(--orange-soft);
  box-shadow: 0 10px 32px rgba(245,138,4,0.42);
}

.btn--navy {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(10,32,68,0.24);
}
.btn--navy:hover { background: var(--navy-3); box-shadow: 0 10px 32px rgba(10,32,68,0.32); }

.btn--ghost {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.28);
  color: var(--white);
}
.btn--ghost:hover { background: rgba(255,255,255,0.10); border-color: rgba(255,255,255,0.5); }

.btn--outline {
  background: transparent;
  border-color: var(--rule);
  color: var(--ink);
}
.btn--outline:hover { border-color: var(--orange); color: var(--orange-deep); }
html[data-theme="dark"] .btn--outline:hover { color: var(--orange-soft); }

.btn--whatsapp {
  background: #25a55a;
  color: #fff;
  box-shadow: 0 4px 20px rgba(37,165,90,0.28);
}
.btn--whatsapp:hover { background: #2ecc71; box-shadow: 0 10px 32px rgba(37,165,90,0.40); }

.btn--lg { padding: 1.05rem 1.9rem; font-size: 1rem; }
.btn--block { width: 100%; }

/* Compliance list: home hero panel and /solicitar-laudo sidebar. */
.norm-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.9rem; }
.norm-list li { display: flex; gap: 0.85rem; align-items: flex-start; }
.norm-list__mark {
  width: 24px; height: 24px;
  border-radius: 7px;
  background: rgba(245,138,4,0.16);
  color: var(--orange-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.12rem;
}
.norm-list__mark svg { width: 12px; height: 12px; display: block; }
/* :not() keeps this from hitting the marker and killing its display:flex */
.norm-list span:not(.norm-list__mark) {
  display: block;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.45;
}
.norm-list strong {
  display: block;
  font-size: 0.93rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--white);
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--paper-card);
  border-bottom: 1px solid var(--rule);
  transform: translateZ(0);
}
.nav__inner {
  max-width: var(--maxw-box);
  margin: 0 auto;
  padding: 0.7rem var(--pad-x);
  display: flex;
  align-items: center;
  gap: 1rem;
}
.nav__logo { display: flex; align-items: center; flex-shrink: 0; }
/* The wordmark is only ~42% of the file height, hence the high mobile floor. */
.nav__logo img { height: clamp(36px, 5.2vw, 40px); width: auto; display: block; }
.nav__logo .logo-light { display: none; }
html[data-theme="dark"] .nav__logo .logo-light { display: block; }
html[data-theme="dark"] .nav__logo .logo-dark  { display: none; }

.nav__spacer { flex: 1; }
.nav__wrap { position: relative; }

.nav__links {
  display: flex;
  gap: 0.15rem;
  align-items: center;
}
.nav__links a {
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink-soft);
  padding: 0.5rem 0.85rem;
  border-radius: 9px;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.nav__links a:hover { color: var(--ink); background: var(--rule-soft); }
.nav__links a[aria-current="page"] { color: var(--navy); background: rgba(10,32,68,0.07); }
html[data-theme="dark"] .nav__links a[aria-current="page"] { color: var(--white); background: rgba(255,255,255,0.10); }

/* Submenu */
.nav__group { position: relative; }
.nav__group-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Manrope', sans-serif;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 0.5rem 0.85rem;
  border-radius: 9px;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.nav__group-btn svg { width: 13px; height: 13px; transition: transform 0.2s; }
.nav__group-btn:hover { color: var(--ink); background: var(--rule-soft); }
.nav__group-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
/* current page lives in this group */
.nav__group-btn[data-current] { color: var(--navy); background: rgba(10,32,68,0.07); }
html[data-theme="dark"] .nav__group-btn[data-current] { color: var(--white); background: rgba(255,255,255,0.10); }

.nav__sub {
  display: none;
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 0;
  min-width: 290px;
  padding: 0.4rem;
  background: var(--paper-card);
  border: 1px solid var(--rule);
  border-radius: 14px;
  box-shadow: 0 14px 38px rgba(6,21,41,0.16);
  z-index: 1001;
}
html[data-theme="dark"] .nav__sub { box-shadow: 0 14px 38px rgba(0,0,0,0.5); }
.nav__group-btn[aria-expanded="true"] + .nav__sub { display: block; }
.nav__sub a {
  display: block;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
  transition: background 0.18s;
}
.nav__sub a:hover { background: var(--rule-soft); }
.nav__sub a[aria-current="page"] { background: rgba(245,138,4,0.10); color: var(--orange-deep); }
html[data-theme="dark"] .nav__sub a[aria-current="page"] { color: var(--orange-soft); }
.nav__sub-desc {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-faint);
  line-height: 1.4;
}

.nav__actions { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.nav__cta {
  padding: 0.6rem 1.1rem;
  border-radius: 10px;
  background: var(--orange);
  color: #1a0f00;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 12px rgba(245,138,4,0.26);
}
.nav__cta:hover { background: var(--orange-soft); box-shadow: 0 4px 18px rgba(245,138,4,0.38); }

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.35rem;
  color: var(--ink-soft);
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.nav-toggle svg { width: 21px; height: 21px; display: block; }
.nav-toggle:hover { background: var(--rule-soft); color: var(--ink); }

/* Theme toggle */
.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  padding: 0;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}
.theme-toggle:hover { background: var(--rule-soft); color: var(--ink); }
.theme-toggle svg { width: 17px; height: 17px; display: block; }
.theme-toggle .icon-moon { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun  { display: none; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

/* Mobile nav */
@media (max-width: 900px) {
  .nav__spacer { display: none; }
  .nav__actions { margin-left: auto; }
  .nav-toggle { display: flex; order: 3; }
  .nav__wrap { order: 3; position: static; }
  .nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    background: var(--paper-card);
    border-bottom: 1px solid var(--rule);
    padding: 0.6rem var(--pad-x) 1rem;
    box-shadow: 0 12px 28px rgba(6,21,41,0.12);
    z-index: 999;
  }
  .nav__links.open { display: flex; }
  .nav__links > a { padding: 0.7rem 0.9rem; font-size: 0.95rem; }

  /* No dropdown on mobile: the group becomes a label with indented children. */
  .nav__group { position: static; }
  .nav__group-btn {
    width: 100%;
    justify-content: flex-start;
    padding: 0.9rem 0.9rem 0.4rem;
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-faint);
    pointer-events: none;
    background: none;
  }
  .nav__group-btn svg { display: none; }
  .nav__group-btn[data-current] { background: none; color: var(--orange); }
  .nav__sub {
    display: block;
    position: static;
    min-width: 0;
    padding: 0 0 0.3rem;
    background: none;
    border: 0;
    box-shadow: none;
  }
  .nav__sub a { padding: 0.6rem 0.9rem; }
}
@media (max-width: 560px) {
  .nav__cta { display: none; }
}

/* Reusable CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 55%, var(--navy-3) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 7vw, 4.5rem) var(--pad-x);
}
.cta-band::after {
  content: "";
  position: absolute;
  width: 560px; height: 560px;
  right: -180px; bottom: -300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,138,4,0.22) 0%, transparent 62%);
  pointer-events: none;
}
.cta-band__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.5rem, 4vw, 3rem);
  flex-wrap: wrap;
}
.cta-band h2 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  text-wrap: balance;
}
.cta-band p { margin: 0; color: rgba(255,255,255,0.7); max-width: 52ch; font-size: clamp(0.92rem,1.5vw,1.02rem); }
.cta-band__actions { display: flex; gap: 0.75rem; flex-wrap: wrap; flex-shrink: 0; }
@media (max-width: 700px) {
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
  .cta-band__actions { width: 100%; }
  .cta-band__actions .btn { flex: 1; min-width: 180px; }
}

/* Footer */
.foot {
  background: var(--navy-deep);
  color: var(--off-white);
  position: relative;
  overflow: hidden;
}
.foot::before {
  content: "";
  position: absolute;
  width: 460px; height: 460px;
  left: -180px; top: -230px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(22,58,115,0.5) 0%, transparent 65%);
  pointer-events: none;
}
.foot__inner {
  max-width: var(--maxw-box);
  margin: 0 auto;
  padding: clamp(2.8rem, 7vw, 4rem) var(--pad-x) clamp(1.8rem, 4vw, 2.5rem);
  position: relative;
  z-index: 1;
}
.foot__brand img { height: clamp(32px, 6vw, 40px); width: auto; display: block; }
.foot__desc {
  margin: 0;
  flex: 1 1 380px;
  /* Rule separating the logo, anchoring the text on the left */
  padding-left: clamp(1.5rem, 4vw, 3rem);
  border-left: 1px solid rgba(241,243,246,0.16);
  color: rgba(241,243,246,0.68);
  font-size: clamp(0.84rem, 1.3vw, 0.92rem);
  line-height: 1.65;
}

.foot__top {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  flex-wrap: wrap;
}
/* Stacked, the vertical rule makes no sense */
@media (max-width: 700px) {
  .foot__desc { padding-left: 0; border-left: 0; }
}

/* Unicamp seal: white-border version, the one Inova's manual prescribes for
   dark backgrounds. Usage rules documented in the README. */
.seal { display: inline-flex; flex-shrink: 0; }
.seal img { width: 152px; height: auto; display: block; }

.seal--foot { margin-top: 1.4rem; }
.seal--foot img { width: 138px; }

/* Explicit columns: "Empresa" carries the address, so it needs to be wider
   than the rest; auto-fit would give them all the same space. */
.foot__grid {
  margin: 2.9rem 0 0;
  display: grid;
  grid-template-columns: 1.35fr 1.8fr 1fr;
  gap: 2.4rem;
}
@media (max-width: 900px) { .foot__grid { grid-template-columns: 1fr 1fr; gap: 2rem 2.4rem; } }
@media (max-width: 540px) { .foot__grid { grid-template-columns: 1fr; gap: 1.9rem; } }

.foot__col h3 {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: clamp(0.66rem, 1.4vw, 0.76rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 0.8rem;
  font-weight: 500;
}
.foot__col p, .foot__col a {
  margin: 0 0 0.55rem;
  font-size: clamp(0.84rem, 1.3vw, 0.9rem);
  color: rgba(241,243,246,0.74);
  line-height: 1.65;
  text-decoration: none;
  display: block;
}
.foot__col a:hover { color: var(--orange-soft); }

.foot__legal { margin-bottom: 0.85rem; }
.foot__cnpj {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.8rem !important;
  letter-spacing: 0.02em;
  color: rgba(241,243,246,0.6) !important;
  margin-bottom: 1rem !important;
}
.foot__addr { line-height: 1.8 !important; }
.foot__social { display: flex; gap: 0.6rem; margin-top: 0.9rem; }
.foot__social a {
  width: 36px; height: 36px;
  border-radius: 9px;
  border: 1px solid rgba(255,255,255,0.14);
  display: flex; align-items: center; justify-content: center;
  margin: 0;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.foot__social a:hover { border-color: var(--orange); background: rgba(245,138,4,0.12); color: var(--orange-soft); }
.foot__social svg { width: 17px; height: 17px; display: block; }
.foot__bottom {
  margin: 2.4rem 0 0;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(241,243,246,0.12);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem 1.5rem;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: clamp(0.7rem, 1.4vw, 0.76rem);
  color: rgba(241,243,246,0.48);
  letter-spacing: 0.03em;
}
.foot__bottom a { color: rgba(241,243,246,0.66); text-decoration: none; }
.foot__bottom a:hover { color: var(--orange-soft); }

/* Step flow, home and /avm. Arcs are drawn by assets/flow.js. */
.flow {
  background: var(--navy);
  color: var(--white);
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 8vw, 6rem) var(--pad-x);
}
.flow::before {
  content: "";
  position: absolute;
  width: 500px; height: 500px;
  left: -200px; top: -250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(22,58,115,0.7) 0%, transparent 65%);
  pointer-events: none;
}
.flow::after {
  content: "";
  position: absolute;
  width: 400px; height: 400px;
  right: -130px; bottom: -200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,138,4,0.11) 0%, transparent 65%);
  pointer-events: none;
}
.flow__inner { max-width: var(--maxw); margin: 0 auto; position: relative; z-index: 1; }
.flow__sub {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  margin: 0.8rem 0 0;
}

/* Step animations */
@keyframes stepIn {
  from { opacity: 0; transform: translateY(56px) scale(0.88); }
  to   { opacity: 1; transform: none; }
}
@keyframes stepActivate {
  0%   { border-color: rgba(245,138,4,0.22); background: rgba(245,138,4,0.07); color: rgba(255,174,71,0.78); box-shadow: none; }
  5%   { border-color: var(--orange); background: rgba(245,138,4,0.26); color: var(--orange-soft); box-shadow: 0 0 28px rgba(245,138,4,0.5); }
  22%  { border-color: rgba(245,138,4,0.3); background: rgba(245,138,4,0.1); box-shadow: 0 0 8px rgba(245,138,4,0.12); }
  38%  { border-color: rgba(245,138,4,0.22); background: rgba(245,138,4,0.07); color: rgba(255,174,71,0.78); box-shadow: none; }
  100% { border-color: rgba(245,138,4,0.22); background: rgba(245,138,4,0.07); color: rgba(255,174,71,0.78); box-shadow: none; }
}
@keyframes labelActivate {
  0%   { color: rgba(255,255,255,0.62); }
  5%   { color: var(--orange-soft); }
  22%  { color: rgba(255,255,255,0.75); }
  38%  { color: rgba(255,255,255,0.62); }
  100% { color: rgba(255,255,255,0.62); }
}
.flow.is-visible .step__icon  { animation: stepActivate 5s linear infinite; animation-delay: calc(2s + var(--i,0)*5s/6); }
.flow.is-visible .step__label { animation: labelActivate 5s linear infinite; animation-delay: calc(2s + var(--i,0)*5s/6); }

/* Step layout */
.steps-track { position: relative; padding-top: 0.25rem; overflow: visible; }
.steps-svg   { position: absolute; left: 0; pointer-events: none; z-index: 0; overflow: visible; }
.steps {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
  z-index: 1;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  gap: 0;
}
.steps::-webkit-scrollbar { display: none; }
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  min-width: 120px;
  max-width: 160px;
  padding: 0 0.4rem;
  opacity: 0;
}
.flow.is-visible .step { animation: stepIn 0.65s cubic-bezier(0.16,1,0.3,1) both; animation-delay: calc(var(--i,0)*0.11s + 0.2s); }
.step__num {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.18em;
  color: var(--orange); margin: 0 0 0.55rem; opacity: 0.65; line-height: 1;
}
.step--last .step__num { opacity: 1; }
.step__badge { position: relative; width: 86px; height: 86px; margin: 0 auto 0.95rem; flex-shrink: 0; }
.step__ghost {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 3.6rem; font-weight: 800;
  color: rgba(245,138,4,0.09);
  letter-spacing: -0.08em; line-height: 1;
  pointer-events: none; user-select: none;
}
.step__icon {
  width: 86px; height: 86px;
  border-radius: 50%;
  border: 1.5px solid rgba(245,138,4,0.22);
  background: rgba(245,138,4,0.07);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,174,71,0.78);
  position: absolute; inset: 0;
  transition: background 0.28s, border-color 0.28s, color 0.28s;
}
.step__icon::before {
  content: ""; position: absolute; inset: -7px;
  border-radius: 50%; border: 1.5px solid rgba(245,138,4,0);
  transition: border-color 0.3s, inset 0.3s;
}
.step:hover .step__icon::before { inset: -10px; border-color: rgba(245,138,4,0.25); }
.step:hover .step__icon { background: rgba(245,138,4,0.16); border-color: rgba(245,138,4,0.7); color: var(--orange-soft); }
.step__icon svg { width: 28px; height: 28px; display: block; position: relative; z-index: 1; }
.step__label { font-size: 0.82rem; font-weight: 600; color: rgba(255,255,255,0.65); line-height: 1.38; max-width: 12ch; }

/* Stacked steps */
@media (max-width: 760px) {
  .steps-svg { display: none; }
  .steps { flex-direction: column; align-items: stretch; overflow: visible; gap: 0; }
  .step {
    flex-direction: row; align-items: center; text-align: left;
    max-width: none; min-width: 0; width: 100%;
    padding: 0 0 1.6rem 0; gap: 1.1rem;
    position: relative; opacity: 1;
  }
  .step:not(.step--last)::after {
    content: ""; position: absolute;
    left: 27px; top: 54px; bottom: 0;
    width: 1.5px; background: rgba(245,138,4,0.2);
  }
  .step__num { display: none; }
  .step__badge { width: 54px; height: 54px; margin: 0; flex-shrink: 0; }
  .step__icon { width: 54px; height: 54px; }
  .step__icon svg { width: 20px; height: 20px; }
  .step__ghost { font-size: 2.6rem; }
  .step__label { max-width: none; font-size: 0.9rem; color: rgba(255,255,255,0.75); }
  .flow.is-visible .step,
  .flow.is-visible .step__icon { animation: none; }
  .flow.is-visible .step__label { animation: none; color: rgba(255,255,255,0.75); }
}

.flow__note {
  margin: clamp(2rem, 5vw, 2.8rem) 0 0;
  text-align: center;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.62);
  line-height: 1.6;
}
.flow__note strong { color: rgba(255,255,255,0.9); font-weight: 700; }
.flow__note a {
  display: inline-block;
  margin-left: 0.4rem;
  color: var(--orange-soft);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1.5px solid rgba(255,174,71,0.35);
  transition: border-color 0.2s;
}
.flow__note a:hover { border-bottom-color: var(--orange-soft); }

.foot__contact { display: flex; align-items: center; gap: 0.7rem; }
.foot__contact svg {
  width: 15px; height: 15px;
  flex-shrink: 0;
  color: var(--orange);
  opacity: 0.85;
  transition: opacity 0.2s;
}
.foot__contact:hover svg { opacity: 1; }

.foot__sep {
  display: block;
  height: 1px;
  max-width: 190px;
  margin: 1.1rem 0;
  background: rgba(241,243,246,0.14);
}

/* Two columns: seven links, too long for one */
.foot__links2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  /* offsets the link padding so it aligns with the column heading */
  margin-left: -0.7rem;
}
.foot__links2 a {
  margin: 0;
  padding: 0.52rem 0.7rem;
  transition: background 0.18s, color 0.2s;
}
/* Checkerboard zebra: across two columns, 4n+1 and 4n+4 paint (row + col) even. */
.foot__links2 a:nth-child(4n+1),
.foot__links2 a:nth-child(4n+4) { background: rgba(255,255,255,0.035); }
.foot__links2 a { border-radius: 8px; }
.foot__links2 a:hover { background: rgba(255,255,255,0.09); }

/* Must follow the base rules: same specificity, last one wins. */
@media (max-width: 700px) {
  .foot__links2 { grid-template-columns: 1fr; }
  /* Single column: plain item-by-item alternation */
  .foot__links2 a:nth-child(4n+1),
  .foot__links2 a:nth-child(4n+4) { background: none; }
  .foot__links2 a:nth-child(odd) { background: rgba(255,255,255,0.035); }
  .foot__links2 a:hover { background: rgba(255,255,255,0.09); }
}

.foot__desc strong {
  color: inherit;
  font-weight: inherit;
  /* underline wavy waves too hard; a stretched SVG gives one soft curve. */
  padding-bottom: 0.2em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 8' preserveAspectRatio='none'%3E%3Cpath d='M2 6.4 C 34 2.9, 86 2.9, 118 5.6' fill='none' stroke='%23f58a04' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 7px;
}

/* Screen-reader only */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
