/* =============================================================
   ROSS LAWRIE — LEARNING DESIGN PORTFOLIO
   Theme: Learning Studio — Warm Light, Ocean Blue × Saffron
   Designed to feel like a well-crafted Rise 360 course
   ============================================================= */

/* ── RESET ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }

/* ── DESIGN TOKENS ────────────────────────────────────────── */
:root {
  /* Palette — accessible, warm & professional */
  --blue:          #1d6fa4;   /* Ocean blue — primary */
  --blue-light:    #e8f4fd;
  --blue-mid:      #d0e9f7;
  --saffron:       #e08c1a;   /* Warm amber/saffron — accent */
  --saffron-light: #fef3dc;
  --teal:          #1a8c7a;   /* Supporting teal */
  --teal-light:    #d6f2ee;
  --rose:          #c0445b;   /* Supporting rose */
  --rose-light:    #fce8ed;

  /* Neutrals */
  --white:         #ffffff;
  --warm-white:    #faf9f7;
  --warm-50:       #f5f3ef;
  --warm-100:      #ede9e2;
  --warm-200:      #d6d0c5;
  --text:          #1c1917;   /* Near-black, warm */
  --text-muted:    #6b6456;
  --text-subtle:   #9b9288;
  --border:        #e5dfd6;
  --border-mid:    #d0c9be;

  /* Fonts */
  --font-head:   'Nunito', 'Trebuchet MS', sans-serif;
  --font-body:   'Source Serif 4', Georgia, serif;
  --font-mono:   'Courier New', monospace;

  /* Sizing */
  --container:   min(1160px, 92vw);
  --section-pad: clamp(4rem, 8vw, 7rem);
  --gutter:      clamp(1rem, 4vw, 2rem);
  --radius:      12px;
  --radius-sm:   8px;
  --radius-lg:   20px;

  /* Shadows */
  --shadow-sm:   0 1px 4px rgba(28,25,23,.08), 0 1px 2px rgba(28,25,23,.04);
  --shadow-md:   0 4px 16px rgba(28,25,23,.1), 0 2px 6px rgba(28,25,23,.06);
  --shadow-lg:   0 12px 40px rgba(28,25,23,.12), 0 4px 12px rgba(28,25,23,.06);

  /* Transitions */
  --ease: cubic-bezier(.25,.46,.45,.94);
  --ease-bounce: cubic-bezier(.34,1.56,.64,1);
}

/* ── BASE ─────────────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--warm-white);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── ACCESSIBILITY ────────────────────────────────────────── */
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 3px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* ── SCROLLBAR ────────────────────────────────────────────── */
::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: var(--warm-50); }
::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 4px; opacity: .6; }

/* ── PROGRESS BAR ─────────────────────────────────────────── */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  width: 0%;
  height: 4px;
  background: linear-gradient(to right, var(--blue), var(--saffron));
  z-index: 2000;
  border-radius: 0 2px 2px 0;
  transition: width .15s linear;
}

/* ── NAV ──────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 4px;
  left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(16px) saturate(1.5);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .25s var(--ease);
}
.nav.scrolled {
  box-shadow: var(--shadow-md);
}

.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: .9rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  flex-shrink: 0;
}
.nav__logo-initials {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: .85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav__logo-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1rem;
  color: var(--text);
  transition: color .2s;
}
.nav__logo:hover .nav__logo-name { color: var(--blue); }

.nav__links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: .25rem;
}
.nav__links a {
  font-family: var(--font-head);
  font-size: .875rem;
  font-weight: 700;
  color: var(--text-muted);
  text-decoration: none;
  padding: .4rem .85rem;
  border-radius: 6px;
  transition: color .2s, background .2s;
}
.nav__links a:hover {
  color: var(--blue);
  background: var(--blue-light);
}

.nav__cta {
  background: var(--blue) !important;
  color: #fff !important;
  border-radius: 8px !important;
  padding: .45rem 1.1rem !important;
  transition: background .2s, transform .2s !important;
}
.nav__cta:hover {
  background: #175f8f !important;
  transform: translateY(-1px);
}

/* Burger */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem;
  border-radius: 6px;
  transition: background .2s;
}
.nav__burger:hover { background: var(--blue-light); }
.nav__burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all .3s var(--ease);
}

/* Mobile menu */
.nav__mobile {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--white);
}
.nav__mobile.open { display: block; }
.nav__mobile ul {
  list-style: none;
  padding: .75rem var(--gutter) 1rem;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.mobile-link {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .9375rem;
  color: var(--text-muted);
  text-decoration: none;
  padding: .6rem .75rem;
  border-radius: 8px;
  transition: color .2s, background .2s;
}
.mobile-link:hover {
  color: var(--blue);
  background: var(--blue-light);
}

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: calc(5rem + 60px) var(--gutter) 0;
  background: var(--white);
  overflow: hidden;
}

/* Dot grid background */
.hero__dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--warm-200) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
  opacity: .6;
  pointer-events: none;
}

/* Gentle colour wash */
.hero::after {
  content: '';
  position: absolute;
  top: -200px; right: -100px;
  width: 600px; height: 600px;
  background: radial-gradient(ellipse, rgba(29,111,164,.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 4rem;
  align-items: center;
  padding-bottom: 5rem;
  position: relative;
  z-index: 1;
}

.hero__text { animation: rise .7s var(--ease) both; }

.hero__course-label {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-head);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--blue);
  background: var(--blue-light);
  border: 1px solid var(--blue-mid);
  border-radius: 100px;
  padding: .3rem .9rem;
  margin-bottom: 1.5rem;
}

.course-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
}
.course-dot--blue { background: var(--blue); }

.hero__name {
  font-family: var(--font-head);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: .75rem;
}
.hero__name-highlight {
  color: var(--blue);
  position: relative;
  display: inline-block;
}
.hero__name-highlight::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 0; right: 0;
  height: 4px;
  background: var(--saffron);
  border-radius: 2px;
  opacity: .5;
}

.hero__role {
  font-family: var(--font-head);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.hero__bio {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1.75rem;
  max-width: 520px;
}
.hero__bio strong { color: var(--text); font-weight: 600; }

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 2rem;
}
.hero__chips span {
  font-family: var(--font-head);
  font-size: .8125rem;
  font-weight: 700;
  padding: .35rem .85rem;
  border-radius: 8px;
  background: var(--warm-50);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all .2s;
}
.hero__chips span:hover {
  background: var(--blue-light);
  border-color: var(--blue-mid);
  color: var(--blue);
}

.hero__actions {
  display: flex;
  gap: .875rem;
  flex-wrap: wrap;
}

/* ── PROFILE CARD ─────────────────────────────────────────── */
.hero__card {
  display: flex;
  justify-content: center;
  animation: rise .7s var(--ease) .15s both;
}

.profile-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 320px;
  text-align: center;
  position: relative;
}

/* subtle top accent strip */
.profile-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(to right, var(--blue), var(--saffron));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.profile-card__avatar {
  position: relative;
  width: 88px; height: 88px;
  margin: 0 auto 1rem;
}
.profile-card__avatar-inner {
  width: 88px; height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), #2a90d0);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.profile-card__avatar-ring {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px dashed var(--blue-mid);
  animation: spin 20s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.profile-card__name {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--text);
}
.profile-card__title {
  font-family: var(--font-head);
  font-size: .8125rem;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: .5rem;
}
.profile-card__location {
  font-family: var(--font-head);
  font-size: .8125rem;
  color: var(--text-subtle);
  margin-bottom: 1.25rem;
}
.profile-card__divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 1.25rem;
}

.profile-card__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .5rem;
  margin-bottom: 1.5rem;
}
.profile-stat { }
.profile-stat__num {
  display: block;
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--blue);
  line-height: 1;
}
.profile-stat__label {
  display: block;
  font-family: var(--font-head);
  font-size: .6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-subtle);
  margin-top: .2rem;
  line-height: 1.3;
}

.profile-card__badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--saffron-light);
  border: 1px solid #f5d08a;
  border-radius: 100px;
  padding: .35rem .9rem;
  font-family: var(--font-head);
  font-size: .75rem;
  font-weight: 700;
  color: var(--saffron);
}

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .9375rem;
  padding: .7rem 1.6rem;
  border-radius: 10px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .22s var(--ease);
  line-height: 1;
}
.btn__icon { font-size: .75rem; }

.btn--primary {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.btn--primary:hover {
  background: #175f8f;
  border-color: #175f8f;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(29,111,164,.28);
}

.btn--outline {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.btn--outline:hover {
  background: var(--blue-light);
  transform: translateY(-2px);
}

.btn--sm {
  font-size: .8125rem;
  padding: .5rem 1.1rem;
  border-radius: 8px;
}

.btn--full { width: 100%; justify-content: center; }

/* ── SECTIONS ─────────────────────────────────────────────── */
.section {
  padding: var(--section-pad) var(--gutter);
}
.section--white { background: var(--white); }
.section--warm  { background: var(--warm-50); }

.section__inner {
  max-width: var(--container);
  margin: 0 auto;
}

.section__header {
  margin-bottom: 3rem;
  max-width: 680px;
}

.section__label {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-head);
  font-size: .8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-muted);
  margin-bottom: .875rem;
}

.label-pill {
  font-family: var(--font-head);
  font-size: .65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: .25rem .7rem;
  border-radius: 100px;
  background: var(--blue-light);
  color: var(--blue);
  border: 1px solid var(--blue-mid);
}
.label-pill--saffron {
  background: var(--saffron-light);
  color: var(--saffron);
  border-color: #f5d08a;
}
.label-pill--teal {
  background: var(--teal-light);
  color: var(--teal);
  border-color: #a8ddd7;
}
.label-pill--rose {
  background: var(--rose-light);
  color: var(--rose);
  border-color: #f0b3bf;
}

.section__title {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 900;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: .875rem;
}
.section__title em {
  font-style: normal;
  color: var(--blue);
  position: relative;
}

.section__desc {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── ABOUT ────────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}
.about-text p {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.75;
}
.about-text strong { color: var(--text); font-weight: 600; }
.about-text em { font-style: italic; color: var(--blue); }

.about-values {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.value-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .25s var(--ease), transform .25s var(--ease), border-color .25s;
}
.value-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--blue-mid);
}

.value-card__icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 44px; height: 44px;
  background: var(--blue-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.value-card__content h3 {
  font-family: var(--font-head);
  font-size: .9375rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: .35rem;
}
.value-card__content p {
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── CHIPS ────────────────────────────────────────────────── */
.chip {
  display: inline-flex;
  font-family: var(--font-head);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: .2rem .65rem;
  border-radius: 6px;
  background: var(--warm-50);
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.chip--blue    { background: var(--blue-light); border-color: var(--blue-mid); color: var(--blue); }
.chip--saffron { background: var(--saffron-light); border-color: #f5d08a; color: var(--saffron); }
.chip--teal    { background: var(--teal-light); border-color: #a8ddd7; color: var(--teal); }
.chip--rose    { background: var(--rose-light); border-color: #f0b3bf; color: var(--rose); }

/* ── MODULE CARDS ─────────────────────────────────────────── */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
}

.module-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .3s var(--ease), transform .3s var(--ease), border-color .3s;
}
.module-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
  border-color: var(--blue-mid);
}

.module-card--featured {
  grid-column: span 7;
}
.modules-grid .module-card:not(.module-card--featured) {
  grid-column: span 5;
}
.modules-grid .module-card:nth-child(3) { grid-column: span 5; }
.modules-grid .module-card:nth-child(4) { grid-column: span 7; }

/* Card banner */
.module-card__banner {
  position: relative;
  overflow: hidden;
}
.module-card--featured .module-card__banner { height: 240px; }
.module-card__banner { height: 180px; }

.module-card__banner-content {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.module-card__banner--blue    { background: linear-gradient(135deg, #d6eaf8 0%, #eaf4fc 100%); }
.module-card__banner--saffron { background: linear-gradient(135deg, #fde8c0 0%, #fef6e7 100%); }
.module-card__banner--teal    { background: linear-gradient(135deg, #c5ece7 0%, #e4f5f3 100%); }
.module-card__banner--rose    { background: linear-gradient(135deg, #f5cdd5 0%, #fce8ed 100%); }

/* Card body */
.module-card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  flex: 1;
}

.module-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.module-card__title {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.3;
}

.module-card__desc {
  font-size: .9375rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}

.module-card__outcome {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  background: var(--warm-50);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .6rem .875rem;
  font-family: var(--font-head);
  font-size: .8125rem;
  color: var(--text-muted);
}
.module-card__outcome strong { color: var(--text); }
.outcome-icon { flex-shrink: 0; }

/* ─── MODULE SCREEN MOCKUP ────────────────────────────────── */
.module-screen {
  background: var(--white);
  border: 1px solid var(--border-mid);
  border-radius: 10px;
  overflow: hidden;
  width: 100%;
  max-width: 380px;
  box-shadow: var(--shadow-md);
}

.module-screen__topbar {
  background: var(--warm-100);
  padding: .5rem .75rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.module-screen__dots {
  display: flex; gap: .3rem;
}
.module-screen__dots span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border-mid);
}
.module-screen__dots span:first-child  { background: #fc8c8c; }
.module-screen__dots span:nth-child(2) { background: #fcc56a; }
.module-screen__dots span:last-child   { background: #72d98f; }
.module-screen__title-bar {
  font-family: var(--font-head);
  font-size: .65rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .07em;
}

.module-screen__body { padding: .875rem 1rem; }

.module-screen__progress-wrap {
  margin-bottom: .75rem;
}
.module-screen__progress-label {
  font-family: var(--font-head);
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--blue);
  display: block;
  margin-bottom: .3rem;
}
.module-screen__progress {
  height: 6px;
  background: var(--warm-100);
  border-radius: 3px;
  overflow: hidden;
}
.module-screen__progress-fill {
  height: 100%;
  background: linear-gradient(to right, var(--blue), #3aa0d4);
  border-radius: 3px;
  animation: fill-progress 1.2s var(--ease) .5s both;
}
@keyframes fill-progress {
  from { width: 0 !important; }
}

.module-screen__scenario-text {
  font-family: var(--font-head);
  font-size: .75rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: .6rem;
  line-height: 1.4;
}

.module-screen__choices {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.module-screen__choice {
  padding: .35rem .65rem;
  border-radius: 6px;
  font-family: var(--font-head);
  font-size: .65rem;
  font-weight: 600;
  color: var(--text-muted);
  border: 1.5px solid var(--border);
  background: var(--white);
  cursor: default;
}
.module-screen__choice--selected {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-light);
}

/* ─── ONBOARDING PREVIEW ──────────────────────────────────── */
.onboarding-preview {
  width: 100%;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .875rem;
}
.onboarding-preview__character {
  font-size: 2.5rem;
  animation: wave 2.5s ease-in-out infinite;
}
@keyframes wave {
  0%, 60%, 100% { transform: rotate(0deg); }
  10%           { transform: rotate(18deg); }
  20%           { transform: rotate(-5deg); }
  30%           { transform: rotate(15deg); }
}
.onboarding-preview__bubble {
  background: var(--white);
  border: 1.5px solid #f5d08a;
  border-radius: 14px 14px 14px 3px;
  padding: .5rem .875rem;
  font-family: var(--font-head);
  font-size: .75rem;
  font-weight: 700;
  color: var(--saffron);
  box-shadow: var(--shadow-sm);
}
.onboarding-preview__progress {
  display: flex;
  gap: .4rem;
  width: 100%;
}
.onboarding-preview__step {
  flex: 1;
  padding: .3rem .2rem;
  text-align: center;
  border-radius: 6px;
  font-family: var(--font-head);
  font-size: .6rem;
  font-weight: 700;
  background: var(--white);
  border: 1.5px solid var(--border-mid);
  color: var(--text-subtle);
}
.onboarding-preview__step--done {
  background: var(--saffron);
  border-color: var(--saffron);
  color: #fff;
}
.onboarding-preview__step--active {
  border-color: var(--saffron);
  color: var(--saffron);
  background: var(--saffron-light);
}

/* ─── CUSTOMER SIM PREVIEW ────────────────────────────────── */
.sim-preview {
  width: 100%;
  max-width: 300px;
}
.sim-preview__label {
  font-family: var(--font-head);
  font-size: .65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--teal);
  margin-bottom: .6rem;
}
.sim-preview__customer {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  margin-bottom: .75rem;
}
.sim-preview__avatar {
  font-size: 1.5rem;
  flex-shrink: 0;
}
.sim-preview__speech {
  background: var(--white);
  border: 1px solid var(--border-mid);
  border-radius: 10px 10px 10px 2px;
  padding: .5rem .75rem;
  font-family: var(--font-head);
  font-size: .7rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  box-shadow: var(--shadow-sm);
}
.sim-preview__choices {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.sim-preview__btn {
  padding: .35rem .65rem;
  border-radius: 6px;
  font-family: var(--font-head);
  font-size: .65rem;
  font-weight: 600;
  background: var(--white);
  border: 1.5px solid var(--border);
  color: var(--text-muted);
}
.sim-preview__btn--selected {
  background: var(--teal-light);
  border-color: var(--teal);
  color: var(--teal);
}

/* ─── ASSESSMENT PREVIEW ──────────────────────────────────── */
.assessment-preview {
  width: 100%;
  max-width: 280px;
  background: var(--white);
  border: 1px solid var(--border-mid);
  border-radius: 10px;
  padding: 1rem;
  box-shadow: var(--shadow-sm);
}
.assessment-preview__label {
  font-family: var(--font-head);
  font-size: .65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--rose);
  margin-bottom: .75rem;
}
.assessment-preview__modules {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  margin-bottom: .75rem;
}
.assessment-preview__module {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--font-head);
  font-size: .68rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: .3rem .5rem;
  border-radius: 6px;
  border: 1px solid transparent;
}
.assessment-preview__module--done {
  color: var(--teal);
  background: var(--teal-light);
  border-color: #a8ddd7;
}
.assessment-preview__module--active {
  color: var(--rose);
  background: var(--rose-light);
  border-color: #f0b3bf;
}
.module-check { flex-shrink: 0; font-size: .6rem; }

.assessment-preview__score {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-head);
  font-size: .65rem;
  font-weight: 700;
  color: var(--text-muted);
  padding-top: .6rem;
  border-top: 1px solid var(--border);
}
.assessment-preview__pct {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--rose);
}

/* ── TOOLS GRID ───────────────────────────────────────────── */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.tool-category {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .25s var(--ease), border-color .25s;
}
.tool-category:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--blue-mid);
}

.tool-category__header {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1.5px solid var(--border);
}
.tool-category__icon {
  font-size: 1.25rem;
  width: 38px; height: 38px;
  background: var(--warm-50);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tool-category__title {
  font-family: var(--font-head);
  font-size: .9375rem;
  font-weight: 800;
  color: var(--text);
}

.tool-list { display: flex; flex-direction: column; gap: .875rem; }

.tool-item {
  display: flex;
  align-items: center;
  gap: .875rem;
}

.tool-item__badge {
  width: 36px; height: 36px;
  border-radius: 8px;
  font-family: var(--font-head);
  font-size: .7rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}
.tool-item__badge--blue    { background: var(--blue); }
.tool-item__badge--saffron { background: var(--saffron); }
.tool-item__badge--teal    { background: var(--teal); }
.tool-item__badge--rose    { background: var(--rose); }

.tool-item__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .15rem;
}
.tool-item__info strong {
  font-family: var(--font-head);
  font-size: .875rem;
  font-weight: 700;
  color: var(--text);
}
.tool-item__info span {
  font-family: var(--font-head);
  font-size: .75rem;
  color: var(--text-subtle);
  line-height: 1.4;
}

.tool-item__level {
  display: flex;
  gap: 3px;
  flex-shrink: 0;
}
.level-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--warm-200);
  border: 1.5px solid var(--border-mid);
}
.level-dot--filled {
  background: var(--blue);
  border-color: var(--blue);
}

/* ── CONTACT ──────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--warm-50);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  transition: border-color .2s, background .2s;
}
.contact-card:hover { border-color: var(--blue-mid); background: var(--blue-light); }

.contact-card__icon {
  font-size: 1.5rem;
  width: 44px; height: 44px;
  background: var(--white);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}
.contact-card__label {
  font-family: var(--font-head);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-subtle);
  margin-bottom: .15rem;
}
.contact-card__value {
  font-family: var(--font-head);
  font-size: .9375rem;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
}
.contact-card__value:not(a) { color: var(--text); }

.contact-avail {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-family: var(--font-head);
  font-size: .875rem;
  font-weight: 700;
  color: var(--teal);
  padding: .75rem 1rem;
  background: var(--teal-light);
  border: 1px solid #a8ddd7;
  border-radius: var(--radius);
}
.contact-avail__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
  animation: pulse-teal 2s ease-out infinite;
}
@keyframes pulse-teal {
  0%  { box-shadow: 0 0 0 0 rgba(26,140,122,.5); }
  70% { box-shadow: 0 0 0 10px rgba(26,140,122,0); }
  100%{ box-shadow: 0 0 0 0 rgba(26,140,122,0); }
}

.contact-form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}
.contact-form-card__title {
  font-family: var(--font-head);
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.contact-form { display: flex; flex-direction: column; gap: 1.1rem; }

.form-field { display: flex; flex-direction: column; gap: .4rem; }

.form-label {
  font-family: var(--font-head);
  font-size: .8125rem;
  font-weight: 700;
  color: var(--text);
}

.form-input {
  padding: .7rem 1rem;
  border: 1.5px solid var(--border-mid);
  border-radius: 9px;
  background: var(--warm-50);
  color: var(--text);
  font-size: .9375rem;
  font-family: var(--font-head);
  transition: border-color .2s, background .2s, box-shadow .2s;
  width: 100%;
}
.form-input::placeholder { color: var(--text-subtle); }
.form-input:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(29,111,164,.12);
}
.form-textarea {
  resize: vertical;
  min-height: 110px;
}

/* ── FOOTER ───────────────────────────────────────────────── */
.footer {
  background: var(--text);
  padding: 2.5rem var(--gutter);
}
.footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: .875rem;
}
.footer__initials {
  width: 40px; height: 40px;
  border-radius: 9px;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: .9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.footer__name {
  font-family: var(--font-head);
  font-size: .9375rem;
  font-weight: 800;
  color: #fff;
}
.footer__tagline {
  font-family: var(--font-head);
  font-size: .75rem;
  color: rgba(255,255,255,.5);
  margin-top: .1rem;
}

.footer__copy {
  font-family: var(--font-head);
  font-size: .8rem;
  color: rgba(255,255,255,.5);
  line-height: 1.6;
  text-align: center;
}

.footer__top {
  font-family: var(--font-head);
  font-size: .8125rem;
  font-weight: 700;
  color: rgba(255,255,255,.6);
  text-decoration: none;
  transition: color .2s;
}
.footer__top:hover { color: var(--saffron); }

/* ── SCROLL REVEAL ────────────────────────────────────────── */
@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
.reveal-d1 { transition-delay: .1s; }
.reveal-d2 { transition-delay: .2s; }
.reveal-d3 { transition-delay: .3s; }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero__inner { gap: 2.5rem; }

  .module-card--featured { grid-column: span 12; }
  .modules-grid .module-card:not(.module-card--featured) { grid-column: span 6; }
  .modules-grid .module-card:nth-child(3) { grid-column: span 6; }
  .modules-grid .module-card:nth-child(4) { grid-column: span 12; }
}

@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }

  .hero__inner {
    grid-template-columns: 1fr;
    padding-bottom: 3rem;
  }
  .hero__card { order: -1; }
  .profile-card { max-width: 100%; }

  .about-grid { grid-template-columns: 1fr; }

  .modules-grid { grid-template-columns: 1fr; }
  .module-card--featured,
  .modules-grid .module-card:not(.module-card--featured),
  .modules-grid .module-card:nth-child(3),
  .modules-grid .module-card:nth-child(4) {
    grid-column: span 1;
  }
  .module-card__banner { height: 180px; }

  .tools-grid { grid-template-columns: 1fr; }

  .contact-grid { grid-template-columns: 1fr; }

  .footer__inner { flex-direction: column; text-align: center; }
  .footer__brand { justify-content: center; }
}

@media (max-width: 560px) {
  .hero__name { font-size: 2rem; }
  .section__title { font-size: 1.625rem; }
  .hero__actions { flex-direction: column; }
  .btn { justify-content: center; }
  .profile-card__stats { grid-template-columns: repeat(3, 1fr); }
}

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