/* CONTABIS entry portal. Extends the v02 academy styles without external resources. */

.branch-word {
  display: block;
  margin: 1px 0 5px 69px;
  color: #48627b;
  font-size: 9px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: .22em;
  white-space: nowrap;
}
.branch-switch {
  color: #536b7f;
  font-size: 12px;
  font-weight: 600;
}
.gateway-page {
  padding: 26px max(28px, calc((100% - 1200px) / 2)) 30px;
  background: #f5f7f9;
}
.gateway-intro {
  max-width: 780px;
  margin: 0 auto 26px;
  text-align: center;
}
.gateway-intro .eyebrow {
  margin-bottom: 8px;
  font-size: 10px;
  color: #52697e;
}
.gateway-intro h1 {
  margin-bottom: 12px;
  color: #102a43;
  font-size: clamp(31px, 3.5vw, 47px);
  line-height: 1.12;
  letter-spacing: -.035em;
}
.gateway-intro > p:not(.eyebrow) {
  max-width: 590px;
  margin: 0 auto;
  color: #596674;
  font-size: 15px;
  line-height: 1.65;
}
.gateway-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.gateway-card {
  --choice-accent: #168b56;
  --choice-button: #d8f0e2;
  --choice-button-ink: #103d2b;
  display: flex;
  flex-direction: column;
  position: relative;
  isolation: isolate;
  min-width: 0;
  min-height: clamp(470px, 56vh, 610px);
  overflow: hidden;
  border: 1px solid #324c63;
  border-radius: 14px;
  background: #102a43;
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 12px 30px #102a4310;
}
.gateway-card.academy-choice {
  --choice-accent: #f7931a;
  --choice-button: #f7931a;
  --choice-button-ink: #102a43;
}
.gateway-card:focus-visible {
  outline: 3px solid #9a5000;
  outline-offset: 5px;
  border-radius: 14px;
}
.gateway-photo,
.gateway-photo-alt {
  position: absolute;
  z-index: -3;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 50% 30%;
  filter: saturate(.65) contrast(1.03);
  transform: scale(1.001);
  transition: opacity .65s ease, transform .8s ease, filter .65s ease;
}
.gateway-photo { opacity: .86; }
.gateway-photo-alt { opacity: 0; }
.gateway-scrim {
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(180deg, #102a4326 0%, #102a4314 27%, #102a43bd 60%, #102a43fa 100%),
    linear-gradient(90deg, #102a433d, #102a430a);
  transition: background-color .5s ease;
}
.gateway-card::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  border-bottom: 5px solid var(--choice-accent);
  opacity: .75;
  transition: opacity .3s ease, background-color .45s ease;
}
.gateway-card.business-choice:is(:hover, :focus-visible)::after { background-color: #168b560a; }
.gateway-card.academy-choice:is(:hover, :focus-visible)::after { background-color: #f7931a0a; }
.gateway-card:is(:hover, :focus-visible)::after { opacity: 1; }
.gateway-card:is(:hover, :focus-visible) .gateway-photo {
  opacity: 0;
  transform: scale(1.035);
}
.gateway-card:is(:hover, :focus-visible) .gateway-photo-alt {
  opacity: 1;
  filter: saturate(1) contrast(1.03);
  transform: scale(1.035);
}
.gateway-number {
  position: absolute;
  top: 25px;
  right: 28px;
  color: #ffffffc9;
  font-size: 13px;
  letter-spacing: .12em;
  line-height: 1.2;
  font-weight: 500;
}
.gateway-label {
  position: absolute;
  top: 24px;
  left: 29px;
  padding: 5px 8px;
  color: #ffffff;
  background: #102a438c;
  border: 1px solid #ffffff3b;
  border-radius: 4px;
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: .13em;
  font-weight: 600;
}
.gateway-content {
  position: relative;
  width: 100%;
  margin-top: auto;
  padding: 155px 32px 29px;
}
.gateway-content > .eyebrow {
  margin-bottom: 4px;
  color: #e2eaf0;
  font-size: 10px;
  letter-spacing: .2em;
}
.gateway-title,
.gateway-content .gateway-title {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: clamp(43px, 4.7vw, 66px);
  line-height: 1.04;
  letter-spacing: -.045em;
  font-weight: 650;
}
.gateway-description {
  max-width: 35ch;
  margin-bottom: 17px;
  color: #f0f4f7;
  font-size: 16px;
  line-height: 1.55;
}
.gateway-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 12px;
  margin: 0 0 23px;
  color: #d7e2eb;
  font-size: 11px;
  line-height: 1.6;
}
.gateway-topics span:not(:last-child)::after {
  content: "·";
  margin-left: 12px;
  color: #c9d9e3;
}
.gateway-cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: fit-content;
  max-width: 100%;
  min-height: 48px;
  padding: 12px 17px;
  border: 1px solid #ffffff99;
  border-radius: 6px;
  background: #ffffff;
  color: #102a43;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.5;
  transition: background-color .25s ease, border-color .25s ease, gap .25s ease;
}
.gateway-cta svg { width: 19px; height: 19px; }
.gateway-card:is(:hover, :focus-visible) .gateway-cta {
  gap: 37px;
  border-color: var(--choice-button);
  background: var(--choice-button);
  color: var(--choice-button-ink);
}
.gateway-bottom-note {
  margin: 20px auto 0;
  max-width: 720px;
  text-align: center;
  color: #596674;
  font-size: 12px;
  line-height: 1.6;
}
.gateway-bottom-note a {
  color: #102a43;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* First Business destination; its commercial detail remains for the later brief. */
.business-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: 60px;
  padding: 54px max(28px, calc((100% - 1200px) / 2)) 58px;
  background: #102a43;
  color: #ffffff;
}
.business-copy { min-width: 0; max-width: 650px; }
.business-copy .eyebrow { color: #bfd2df; }
.business-copy h1 {
  margin-bottom: 25px;
  color: #ffffff;
  font-size: clamp(36px, 4.4vw, 59px);
  line-height: 1.12;
}
.business-copy > p:not(.eyebrow) {
  max-width: 550px;
  color: #d0dee8;
  font-size: 17px;
  line-height: 1.75;
}
.business-copy .button-row { margin-top: 27px; }
.business-photo {
  width: 100%;
  height: 435px;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: 11px;
  background: #d7d6d2;
}
.business-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 27px;
  color: #d7e5ee;
  font-size: 12px;
}
.business-links a { text-decoration: underline; text-underline-offset: 4px; }
.business-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 55px 0 64px;
}
.business-section > h2 { font-size: clamp(27px, 3vw, 36px); }
.business-section > p { max-width: 700px; color: #596674; }
.business-placeholder-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 23px;
}
.business-placeholder {
  min-width: 0;
  padding: 26px;
  border: 1px solid #dce4ea;
  border-radius: 10px;
  background: #ffffff;
}
.business-placeholder h2,
.business-placeholder h3 {
  margin-bottom: 12px;
  color: #102a43;
  font-size: 23px;
  line-height: 1.25;
}
.business-placeholder p {
  margin-bottom: 0;
  color: #596674;
  font-size: 14px;
  line-height: 1.75;
}
.business-placeholder .eyebrow {
  margin-bottom: 14px;
  color: #44725e;
  font-size: 10px;
}
.business-placeholder a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  color: #102a43;
  font-size: 13px;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Design-only account step shown after choosing a course. */
.purchase-context {
  max-width: 100%;
  margin: 0 0 24px;
  padding: 20px;
  border: 1px solid #d9e3eb;
  border-radius: 9px;
  background: #f1f5f8;
  color: #30343b;
}
.purchase-context .eyebrow {
  margin-bottom: 9px;
  color: #52697e;
  font-size: 10px;
}
.purchase-context h2,
.purchase-context h3 {
  margin-bottom: 10px;
  color: #102a43;
  font-size: 21px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.purchase-context p {
  margin-bottom: 0;
  color: #526476;
  font-size: 13px;
  line-height: 1.6;
}
.purchase-summary {
  display: grid;
  gap: 5px;
  margin-bottom: 16px;
  min-width: 0;
}
.purchase-summary strong {
  color: #102a43;
  font-size: 15px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.purchase-summary span,
.purchase-summary small {
  color: #596674;
  font-size: 12px;
}
.flow-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 17px 0 0;
  list-style: none;
}
.flow-step {
  display: flex;
  flex: 1 1 80px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 7px 9px;
  border: 1px solid #d5e0e8;
  border-radius: 5px;
  background: #ffffff;
  color: #596674;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.45;
}
.flow-step.flow-current,
.flow-current {
  border-color: #102a43;
  background: #102a43;
  color: #ffffff;
}
.access-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  color: #102a43;
  font-size: 12px;
  line-height: 1.6;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.access-back svg { width: 16px; height: 16px; }

@media (min-width: 1500px) {
  .gateway-page { padding-top: 32px; }
  .gateway-card { min-height: 580px; }
}
@media (max-width: 1255px) {
  .business-section { padding-inline: 28px; }
}
@media (max-width: 900px) {
  .gateway-grid { gap: 17px; }
  .gateway-content { padding: 150px 25px 25px; }
  .gateway-title, .gateway-content .gateway-title { font-size: 49px; }
  .gateway-description { font-size: 15px; }
  .gateway-label { left: 25px; }
  .business-hero { gap: 34px; }
  .business-copy h1 { font-size: 43px; }
  .business-photo { height: 405px; }
  .business-placeholder-grid { gap: 15px; }
  .business-placeholder { padding: 21px; }
}
@media (max-width: 820px) {
  .gateway-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .gateway-card { min-height: 445px; }
  .gateway-content { padding: 150px 30px 29px; }
  .gateway-title, .gateway-content .gateway-title { font-size: 60px; }
  .gateway-description { max-width: 39ch; }
  .gateway-photo, .gateway-photo-alt { object-position: 50% 31%; }
  .gateway-bottom-note { max-width: 540px; }
  .business-hero { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .business-copy { max-width: 650px; }
  .business-photo { max-width: 650px; height: 380px; }
  .business-placeholder-grid { grid-template-columns: minmax(0, 1fr); gap: 17px; }
  .business-placeholder { padding: 25px; }
}
@media (max-width: 640px) {
  .gateway-page { padding: 25px 18px 26px; }
  .gateway-intro { margin-bottom: 24px; text-align: left; }
  .gateway-intro h1 { font-size: 34px; margin-bottom: 13px; }
  .gateway-intro > p:not(.eyebrow) { margin-inline: 0; font-size: 14px; }
  .gateway-card { min-height: 432px; border-radius: 10px; }
  .gateway-card:focus-visible { border-radius: 10px; outline-offset: 4px; }
  .gateway-content { padding: 140px 24px 25px; }
  .gateway-title, .gateway-content .gateway-title { font-size: 52px; margin-bottom: 14px; }
  .gateway-description { font-size: 15px; margin-bottom: 15px; max-width: 31ch; }
  .gateway-label { top: 21px; left: 23px; font-size: 9px; }
  .gateway-number { top: 24px; right: 23px; font-size: 12px; }
  .gateway-topics { gap: 5px 9px; margin-bottom: 21px; font-size: 10px; }
  .gateway-topics span:not(:last-child)::after { margin-left: 9px; }
  .gateway-cta { min-height: 46px; padding: 11px 15px; font-size: 12px; gap: 23px; }
  .gateway-card:is(:hover, :focus-visible) .gateway-cta { gap: 29px; }
  .gateway-bottom-note { font-size: 11px; text-align: left; margin-top: 20px; }
  .branch-word { font-size: 8px; letter-spacing: .15em; }
  .business-hero { padding: 35px 20px 38px; gap: 27px; }
  .business-copy h1 { font-size: 38px; line-height: 1.14; margin-bottom: 20px; }
  .business-copy > p:not(.eyebrow) { font-size: 15px; line-height: 1.7; }
  .business-photo { height: 340px; border-radius: 9px; }
  .business-section { padding: 38px 20px 45px; }
  .business-placeholder { padding: 22px; }
  .purchase-context { padding: 17px; margin-bottom: 21px; }
  .purchase-context h2, .purchase-context h3 { font-size: 19px; }
  .purchase-summary strong { font-size: 14px; }
  .flow-steps { gap: 6px; }
  .flow-step { flex-basis: 64px; padding: 7px 6px; font-size: 10px; gap: 4px; }
  .access-back { margin-top: 19px; }
}
@media (max-width: 360px) {
  .gateway-page { padding-inline: 15px; }
  .gateway-intro h1 { font-size: 31px; }
  .gateway-card { min-height: 430px; }
  .gateway-content { padding-inline: 20px; }
  .gateway-title, .gateway-content .gateway-title { font-size: 46px; }
  .gateway-label { left: 20px; }
  .gateway-number { right: 20px; }
  .gateway-topics { max-width: 235px; }
  .business-copy h1 { font-size: 34px; }
  .business-photo { height: 300px; }
  .branch-word { margin-left: 66px; font-size: 7px; letter-spacing: .12em; }
  .flow-step { flex-basis: 58px; padding-inline: 4px; }
}
@media (hover: none), (pointer: coarse) {
  .gateway-cta { min-height: 48px; }
  .gateway-card { touch-action: manipulation; }
}
@media (prefers-reduced-motion: reduce) {
  .gateway-photo, .gateway-photo-alt, .gateway-scrim,
  .gateway-card::after, .gateway-cta {
    transition: none !important;
  }
  .gateway-photo, .gateway-photo-alt,
  .gateway-card:is(:hover, :focus-visible) .gateway-photo,
  .gateway-card:is(:hover, :focus-visible) .gateway-photo-alt {
    transform: none !important;
  }
}

