/* ==========================================================================
   GoBeeVir Business OS — design system
   Brand colours sampled directly from the GoBeeVir logo:
     Orange  #E77133   Navy  #0E2F40
   ========================================================================== */

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

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

body,
h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; padding: 0; }

ul[class], ol[class] { list-style: none; }

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

button, input, select, textarea { font: inherit; color: inherit; }

a { color: inherit; text-decoration: none; }

/* --- Tokens --------------------------------------------------------------- */
:root {
  /* Brand */
  --navy:        #0E2F40;
  --navy-deep:   #0A2431;
  --navy-soft:   #17414F;
  --orange:      #E77133;
  --orange-dark: #CF5F25;
  --orange-tint: #FDF1E9;

  /* Neutrals */
  --ink:         #0E2F40;
  --body:        #47606D;
  --muted:       #7B909B;
  --line:        #E3E9ED;
  --line-soft:   #EFF3F5;
  --surface:     #FFFFFF;
  --canvas:      #FFFFFF;
  --canvas-soft: #F7F9FA;

  /* Support */
  --green:       #1F9D63;
  --green-tint:  #ECF7F1;
  --red:         #D9483B;
  --amber:       #E0A02A;

  /* Type */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;

  /* Space + shape */
  --radius-sm: 8px;
  --radius:    12px;
  --radius-lg: 18px;
  --radius-xl: 26px;

  --shadow-sm: 0 1px 2px rgba(14, 47, 64, .05);
  --shadow:    0 4px 16px rgba(14, 47, 64, .06);
  --shadow-lg: 0 18px 48px rgba(14, 47, 64, .10);

  --container: 1180px;
  --nav-h: 74px;
}

/* --- Base ----------------------------------------------------------------- */
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--body);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.021em;
}

h1 { font-size: clamp(2.35rem, 1.4rem + 3.6vw, 3.9rem); letter-spacing: -0.032em; }
h2 { font-size: clamp(1.85rem, 1.25rem + 2.1vw, 2.7rem); letter-spacing: -0.028em; }
h3 { font-size: 1.16rem; }
h4 { font-size: 1rem; }

p { text-wrap: pretty; }

strong { color: var(--ink); font-weight: 600; }

::selection { background: var(--orange); color: #fff; }

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-sm);
  transition: top .18s ease;
}
.skip-link:focus { top: 12px; }

/* --- Layout --------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding: clamp(72px, 8vw, 118px) 0; }
.section--soft { background: var(--canvas-soft); }
.section--tight { padding-block: clamp(56px, 6vw, 84px); }

.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p {
  margin-top: 16px;
  font-size: 1.06rem;
  color: var(--body);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--orange);
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
}
.section-head--center .eyebrow::before { display: none; }

/* --- Brand lockup --------------------------------------------------------- */
.lockup {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}
.lockup__mark { height: 38px; width: auto; }
.lockup__word { height: 19px; width: auto; }
.lockup--lg .lockup__mark { height: 54px; }
.lockup--lg .lockup__word { height: 27px; }

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  white-space: nowrap;
  max-width: 100%;
  transition: background-color .18s ease, border-color .18s ease,
              color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 6px 18px rgba(231, 113, 51, .26);
}
.btn--primary:hover { background: var(--orange-dark); box-shadow: 0 8px 22px rgba(231, 113, 51, .32); }

.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-soft); }

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn--ghost:hover { border-color: var(--navy); background: var(--canvas-soft); }

.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: #F0F4F6; }

.btn--outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, .32);
  color: #fff;
}
.btn--outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }

.btn--block { width: 100%; }
.btn--lg { padding: 15px 32px; font-size: 1rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  color: var(--orange);
  font-size: .95rem;
}
.link-arrow svg { transition: transform .18s ease; }
.link-arrow:hover svg { transform: translateX(3px); }

/* --- Header --------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.site-header__inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 34px;
  margin-left: auto;
}
.nav a {
  position: relative;
  font-size: .94rem;
  font-weight: 500;
  color: var(--body);
  transition: color .16s ease;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--orange);
  transition: width .2s ease;
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle span {
  position: relative;
  width: 17px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: background .15s ease;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 17px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s ease;
}
.nav-toggle span::before { top: -5.5px; }
.nav-toggle span::after  { top:  5.5px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-5.5px) rotate(-45deg); }

/* --- Hero ----------------------------------------------------------------- */
.hero {
  position: relative;
  padding: clamp(64px, 7vw, 104px) 0 clamp(72px, 8vw, 108px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -420px;
  right: -220px;
  width: 780px;
  height: 780px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(231, 113, 51, .10) 0%, rgba(231, 113, 51, 0) 68%);
  pointer-events: none;
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: clamp(40px, 5vw, 76px);
  align-items: center;
}
.hero__copy { max-width: 580px; }
.hero h1 { margin-bottom: 22px; }
.hero h1 .accent { color: var(--orange); }
.hero__lede {
  font-size: 1.13rem;
  line-height: 1.68;
  margin-bottom: 34px;
  max-width: 520px;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 13px; margin-bottom: 34px; }

.hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.hero__proof li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .875rem;
  font-weight: 500;
  color: var(--body);
}
.hero__proof svg { flex: none; color: var(--green); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 26px;
  padding: 7px 15px 7px 8px;
  background: var(--orange-tint);
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 500;
  color: var(--navy);
}
.pill b {
  padding: 3px 9px;
  background: var(--orange);
  border-radius: 999px;
  color: #fff;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* --- Dashboard mock ------------------------------------------------------- */
.mock {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.mock__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 13px 18px;
  background: var(--canvas-soft);
  border-bottom: 1px solid var(--line);
}
.mock__dot { width: 9px; height: 9px; border-radius: 50%; background: #D5DDE2; }
.mock__dot:first-child { background: var(--orange); }
.mock__title {
  margin-left: 8px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .01em;
}
.mock__body { padding: 22px; }

.mock__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 18px;
}
.mock__row h4 { font-size: .98rem; }
.mock__row span { font-size: .78rem; color: var(--muted); }

.mock__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 11px;
  margin-bottom: 18px;
}
.stat-card {
  padding: 15px;
  background: var(--canvas-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}
.stat-card small {
  display: block;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}
.stat-card b {
  display: block;
  font-size: 1.32rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.stat-card i {
  display: inline-block;
  margin-top: 5px;
  font-size: .72rem;
  font-style: normal;
  font-weight: 600;
  color: var(--green);
}
.stat-card i.is-down { color: var(--red); }

.mock__chart {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  height: 96px;
  padding: 14px 15px 0;
  background: var(--canvas-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  margin-bottom: 16px;
}
.mock__chart span {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: #D8E1E6;
  animation: bar-rise .9s cubic-bezier(.2, .7, .3, 1) backwards;
}
.mock__chart span.is-hot { background: var(--orange); }
@keyframes bar-rise { from { height: 0 !important; opacity: 0; } }

.mock__list li {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 0;
  border-top: 1px solid var(--line-soft);
  font-size: .855rem;
}
.mock__list li:first-child { border-top: 0; }
.mock__list .tick {
  flex: none;
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green-tint);
  color: var(--green);
}
.mock__list .tick--wait { background: var(--orange-tint); color: var(--orange); }
.mock__list em {
  margin-left: auto;
  font-style: normal;
  font-size: .76rem;
  color: var(--muted);
}

.mock-badge {
  position: absolute;
  right: -14px;
  bottom: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  font-size: .8rem;
  font-weight: 500;
}
.mock-badge b { display: block; color: #fff; font-size: .86rem; }
.mock-badge small { color: rgba(255, 255, 255, .62); font-size: .72rem; }
.mock-badge__ai {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--orange);
  flex: none;
}

/* --- Logo / trust strip --------------------------------------------------- */
.strip {
  padding: 30px 0;
  border-block: 1px solid var(--line);
  background: var(--canvas-soft);
}
.strip__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 44px;
}
.strip p {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.strip span {
  font-size: .95rem;
  font-weight: 600;
  color: var(--navy);
  opacity: .72;
}

/* --- Problem / metrics ---------------------------------------------------- */
.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.metric {
  padding: 32px 28px;
  background: var(--surface);
}
.metric b {
  display: block;
  font-size: clamp(1.9rem, 1.3rem + 1.7vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  color: var(--orange);
  line-height: 1.05;
  margin-bottom: 10px;
}
.metric span {
  display: block;
  font-size: .92rem;
  color: var(--body);
}

/* --- Modules -------------------------------------------------------------- */
.modules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
  gap: 18px;
}
.module {
  position: relative;
  padding: 28px 26px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.module:hover {
  border-color: #CFDBE2;
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.module__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 11px;
  background: var(--orange-tint);
  color: var(--orange);
}
.module h3 { margin-bottom: 9px; }
.module p { font-size: .92rem; line-height: 1.6; }
.module__tag {
  position: absolute;
  top: 24px;
  right: 24px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--canvas-soft);
  border: 1px solid var(--line);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.module__tag--live { background: var(--green-tint); border-color: transparent; color: var(--green); }

/* --- Split feature -------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.checklist { margin-top: 26px; display: grid; gap: 15px; }
.checklist li {
  display: flex;
  gap: 13px;
  align-items: flex-start;
}
.checklist .tick {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--orange-tint);
  color: var(--orange);
}
.checklist b { display: block; margin-bottom: 2px; font-size: .97rem; }
.checklist p { font-size: .9rem; line-height: 1.55; }

/* --- Steps ---------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 26px;
  counter-reset: step;
}
.step { position: relative; padding-top: 26px; border-top: 2px solid var(--line); }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: -13px;
  left: 0;
  padding-right: 12px;
  background: var(--canvas-soft);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .09em;
  color: var(--orange);
}
.step h3 { margin-bottom: 9px; }
.step p { font-size: .92rem; }

/* --- Roles ---------------------------------------------------------------- */
.roles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.role {
  display: flex;
  flex-direction: column;
  padding: 30px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.role:hover { border-color: #CFDBE2; box-shadow: var(--shadow); }
.role__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  margin-bottom: 20px;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.role__badge--orange { background: var(--orange); }
.role h3 { margin-bottom: 10px; }
.role > p { font-size: .92rem; margin-bottom: 20px; }
.role ul { margin-top: auto; display: grid; gap: 9px; padding-top: 20px; border-top: 1px solid var(--line-soft); }
.role li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: .875rem;
  color: var(--body);
}
.role li::before {
  content: "";
  flex: none;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--orange);
}
.role__link { margin-top: 22px; }

/* --- Security ------------------------------------------------------------- */
.security {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 20px;
  margin-top: 46px;
}
.security__item {
  padding: 24px 22px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .04);
}
.security__item svg { color: var(--orange); margin-bottom: 15px; }
.security__item h4 { color: #fff; margin-bottom: 7px; font-size: .97rem; }
.security__item p { font-size: .875rem; color: rgba(255, 255, 255, .66); line-height: 1.55; }

.panel-dark {
  background: var(--navy);
  color: rgba(255, 255, 255, .74);
}
.panel-dark h2, .panel-dark h3, .panel-dark h4 { color: #fff; }
.panel-dark .section-head p { color: rgba(255, 255, 255, .7); }
.panel-dark .eyebrow { color: var(--orange); }

.compliance {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 40px;
  padding-top: 34px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.compliance span {
  padding: 7px 15px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, .82);
}

/* --- CTA band ------------------------------------------------------------- */
.cta-band {
  position: relative;
  padding: clamp(56px, 6vw, 82px) clamp(28px, 5vw, 70px);
  background: var(--navy);
  border-radius: var(--radius-xl);
  overflow: hidden;
  text-align: center;
}
.cta-band::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -320px;
  transform: translateX(-50%);
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(231, 113, 51, .26) 0%, rgba(231, 113, 51, 0) 68%);
  pointer-events: none;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; margin-bottom: 16px; }
.cta-band p {
  max-width: 500px;
  margin: 0 auto 32px;
  color: rgba(255, 255, 255, .74);
  font-size: 1.05rem;
}
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 13px; justify-content: center; }
.cta-band__note { margin-top: 22px; font-size: .82rem; color: rgba(255, 255, 255, .5); }

/* --- Footer --------------------------------------------------------------- */
.site-footer {
  padding: 64px 0 34px;
  border-top: 1px solid var(--line);
  background: var(--canvas-soft);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 44px;
  padding-bottom: 44px;
}
.footer-brand p {
  margin-top: 18px;
  max-width: 290px;
  font-size: .9rem;
  line-height: 1.6;
}
.footer-col h4 {
  margin-bottom: 16px;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer-col li + li { margin-top: 10px; }
.footer-col a {
  font-size: .91rem;
  color: var(--body);
  transition: color .16s ease;
}
.footer-col a:hover { color: var(--orange); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: .84rem;
  color: var(--muted);
}
.footer-bottom nav { display: flex; gap: 22px; }
.footer-bottom a:hover { color: var(--orange); }

/* ==========================================================================
   Login page
   ========================================================================== */
.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.02fr 1.18fr;
}

/* Brand side */
.auth__aside {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 44px 48px;
  background: var(--navy);
  color: rgba(255, 255, 255, .72);
  overflow: hidden;
}
.auth__aside::before {
  content: "";
  position: absolute;
  top: -180px;
  left: -160px;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(231, 113, 51, .22) 0%, rgba(231, 113, 51, 0) 66%);
  pointer-events: none;
}
.auth__aside > * { position: relative; z-index: 1; }

.auth__logo {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  align-self: flex-start;
}
.auth__logo-chip {
  display: grid;
  place-items: center;
  width: auto;
  height: auto;
  padding: 12px 18px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
}
.auth__logo-chip img { height: 54px; width: auto; }

.auth__pitch { max-width: 430px; padding-block: 44px; }
.auth__pitch h1 {
  font-size: clamp(1.95rem, 1.4rem + 1.7vw, 2.6rem);
  color: #fff;
  margin-bottom: 18px;
}
.auth__pitch h1 .accent { color: var(--orange); }
.auth__pitch > p {
  font-size: 1.02rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, .72);
}
.auth__points { margin-top: 34px; display: grid; gap: 16px; }
.auth__points li {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  font-size: .93rem;
  color: rgba(255, 255, 255, .82);
}
.auth__points .tick {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(231, 113, 51, .18);
  color: var(--orange);
}
.auth__aside-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: .8rem;
  color: rgba(255, 255, 255, .48);
}

/* Form side */
.auth__main {
  display: flex;
  flex-direction: column;
  padding: 34px clamp(24px, 5vw, 76px) 44px;
  background: var(--canvas);
}
.auth__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: auto;
  font-size: .88rem;
  color: var(--muted);
}
.auth__top a { font-weight: 600; color: var(--orange); }
.auth__top a:hover { color: var(--orange-dark); }

.auth__panel {
  width: 100%;
  max-width: 468px;
  margin: 40px auto;
}
.auth__panel > header { margin-bottom: 26px; }
.auth__panel h2 { font-size: 1.62rem; margin-bottom: 8px; }
.auth__panel > header p { font-size: .95rem; }

/* Portal switcher */
.portal-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  padding: 5px;
  margin-bottom: 28px;
  background: var(--canvas-soft);
  border: 1px solid var(--line);
  border-radius: 13px;
}
.portal-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 11px 6px 10px;
  background: transparent;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  color: var(--muted);
  transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}
.portal-tab svg { transition: transform .18s ease; }
.portal-tab span {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.portal-tab:hover { color: var(--ink); }
.portal-tab[aria-selected="true"] {
  background: var(--surface);
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}
.portal-tab[aria-selected="true"] svg { color: var(--orange); }

/* Contextual banner per portal */
.portal-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  margin-bottom: 24px;
  background: var(--orange-tint);
  border-radius: var(--radius);
  font-size: .855rem;
  line-height: 1.55;
  color: var(--navy);
}
.portal-note svg { flex: none; margin-top: 2px; color: var(--orange); }
.portal-note b { display: block; margin-bottom: 1px; }

/* Form */
.field { margin-bottom: 17px; }
.field__label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
}
.field label {
  font-size: .875rem;
  font-weight: 600;
  color: var(--ink);
}
.field__link {
  font-size: .82rem;
  font-weight: 500;
  color: var(--orange);
}
.field__link:hover { color: var(--orange-dark); }

.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap > svg {
  position: absolute;
  left: 15px;
  color: var(--muted);
  pointer-events: none;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="password"] {
  width: 100%;
  padding: 13px 15px 13px 43px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: .95rem;
  color: var(--ink);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.field input::placeholder { color: #A9B8C1; }
.field input:hover { border-color: #CFDBE2; }
.field input:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(231, 113, 51, .14);
}
.field input[aria-invalid="true"] {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(217, 72, 59, .12);
}

.toggle-pw {
  position: absolute;
  right: 6px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: transparent;
  border: 0;
  border-radius: 7px;
  color: var(--muted);
  cursor: pointer;
}
.toggle-pw:hover { color: var(--ink); background: var(--canvas-soft); }

.field__error {
  display: none;
  margin-top: 6px;
  font-size: .8rem;
  font-weight: 500;
  color: var(--red);
}
.field__error.is-visible { display: block; }

.field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 4px 0 22px;
}
.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: .875rem;
  cursor: pointer;
  user-select: none;
}
.checkbox input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--orange);
  cursor: pointer;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 24px 0;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.sso { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.sso button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: .89rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease;
}
.sso button:hover { border-color: #CFDBE2; background: var(--canvas-soft); }

.auth__switch {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: .9rem;
  text-align: center;
}
.auth__switch a { font-weight: 600; color: var(--orange); }
.auth__switch a:hover { color: var(--orange-dark); }

.auth__legal {
  margin-top: 18px;
  font-size: .78rem;
  line-height: 1.6;
  color: var(--muted);
  text-align: center;
}
.auth__legal a { color: var(--body); text-decoration: underline; text-underline-offset: 2px; }

.auth__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding-top: 26px;
  font-size: .8rem;
  color: var(--muted);
}
.auth__foot a:hover { color: var(--orange); }

/* Demo notice — this build has no backend */
.demo-flag {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 13px 15px;
  margin-top: 22px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--canvas-soft);
  font-size: .8rem;
  line-height: 1.55;
  color: var(--muted);
}
.demo-flag svg { flex: none; margin-top: 2px; color: var(--amber); }

/* Form status message */
.form-status {
  display: none;
  gap: 11px;
  align-items: flex-start;
  padding: 13px 15px;
  margin-bottom: 18px;
  border-radius: var(--radius);
  font-size: .87rem;
  line-height: 1.5;
}
.form-status.is-visible { display: flex; }
.form-status--ok { background: var(--green-tint); color: #14663F; }
.form-status--err { background: #FDEDEC; color: #9E2F25; }
.form-status svg { flex: none; margin-top: 2px; }
.form-status__bv { flex: none; width: 46px; height: 46px; object-fit: contain; margin-left: auto; }

/* Button loading state */
.btn.is-loading { pointer-events: none; opacity: .82; }
.btn.is-loading .btn__label { visibility: hidden; }
.btn.is-loading::after {
  content: "";
  position: absolute;
  width: 17px;
  height: 17px;
  border: 2px solid rgba(255, 255, 255, .4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .6s linear infinite;
}
.btn { position: relative; }
@keyframes spin { to { transform: rotate(360deg); } }

/* --- Reveal on scroll -----------------------------------------------------
   Scoped to .js so content is ALWAYS visible when scripting is unavailable,
   blocked, or the observer never fires. Never hide content behind JS.        */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s ease, transform .55s cubic-bezier(.2, .7, .3, 1);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   Tap targets (WCAG 2.5.8 - at least 24x24 CSS px)
   ========================================================================== */
.footer-col a { display: inline-block; padding: 4px 0; }
.footer-bottom a { display: inline-block; padding: 4px 0; }
.footer-col li + li { margin-top: 4px; }
.field__link { display: inline-block; padding: 4px 0; }
.auth__switch a { display: inline-block; padding: 6px 0; }
.auth__foot a { display: inline-block; padding: 5px 0; }
.role__link { display: inline-flex; align-items: center; padding: 6px 0; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__copy { max-width: 640px; }
  .mock-badge { right: 10px; }
  .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .auth { grid-template-columns: 1fr; }
  .auth__aside {
    padding: 30px 28px 34px;
    gap: 26px;
  }
  .auth__pitch { padding-block: 0; max-width: none; }
  .auth__pitch h1 { font-size: 1.62rem; }
  .auth__points { display: none; }
  .auth__aside-foot { display: none; }
  .auth__panel { margin-block: 26px; }
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }

  .nav {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 20px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--line-soft); }
  .nav a::after { display: none; }

  .header-actions .btn--ghost { display: none; }

  .hero__cta .btn { flex: 1 1 auto; }
  .mock__stats { grid-template-columns: 1fr; }
  .mock-badge { position: static; margin-top: 16px; }

  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .portal-tab span { font-size: .72rem; }
  .sso { grid-template-columns: 1fr; }

  /* 44px-class tap targets */
  .footer-col a { display: inline-block; padding: 8px 0; }
  .footer-col li + li { margin-top: 2px; }
  .footer-bottom a { display: inline-block; padding: 8px 0; }

  .auth__top a { display: inline-block; padding: 6px 0; }
  .field__link { display: inline-block; padding: 7px 0; }
  .auth__switch a { display: inline-block; padding: 7px 0; }
  .auth__legal a { display: inline-block; padding: 4px 0; }
  .auth__foot a { display: inline-block; padding: 7px 0; }
  .role__link { display: inline-flex; align-items: center; padding: 8px 0; }
  .checkbox input { width: 20px; height: 20px; }
}

@media (max-width: 420px) {
  .portal-tabs { gap: 3px; padding: 4px; }
  .portal-tab { padding: 10px 3px 9px; }
  .portal-tab span { font-size: .66rem; }
}

/* --- Motion / print preferences ------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .cta-band, .nav-toggle { display: none; }
  body { color: #000; }
}
