/* =============================================
   Omfinitive360 Website Styles
   Brand Colors:
   - Infinity Blue: #007BFF
   - Vision Purple: #6F42C1
   - Modular Navy:  #001F3F
   Fonts: Montserrat (headings), Open Sans (body)
   ============================================= */

/* Reset & Base */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --blue: #007BFF;
  --purple: #6F42C1;
  --navy: #001F3F;
  --navy-light: #002a57;
  --white: #FFFFFF;
  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1E293B;
  --gray-900: #0F172A;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 20px 40px -12px rgba(0,0,0,0.12);
  --shadow-xl: 0 25px 50px -12px rgba(0,0,0,0.15);
  --radius: 12px;
  --radius-lg: 20px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--gray-700);
  line-height: 1.7;
  background: var(--white);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, var(--blue) 0%, var(--purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* =============================================
   Buttons
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 24px;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
  border-radius: 8px;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1rem;
  border-radius: 12px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue) 0%, var(--purple) 100%);
  color: var(--white);
  border-color: transparent;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 123, 255, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.8);
  transform: translateY(-2px);
}

.btn-white {
  background: var(--white);
  color: var(--navy);
}
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255,255,255,0.3);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--blue);
  padding: 8px 0;
  border: none;
  font-weight: 600;
}
.btn-ghost:hover {
  color: var(--purple);
}

.btn-full {
  width: 100%;
}

/* =============================================
   Navigation
   ============================================= */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all var(--transition);
}

.nav.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  padding: 10px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 40px;
  transition: filter var(--transition);
}

.nav:not(.scrolled) .nav-logo img {
  filter: brightness(0) invert(1);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--white);
}

.nav.scrolled .nav-links a {
  color: var(--gray-600);
}

.nav.scrolled .nav-links a:hover {
  color: var(--blue);
}

.nav.scrolled .nav-links .btn-primary {
  color: var(--white);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

.nav.scrolled .nav-toggle span {
  background: var(--gray-700);
}

/* =============================================
   Hero Section
   ============================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 120px 0 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--navy) 0%, #001233 30%, #001845 60%, var(--navy-light) 100%);
}

.hero-gradient::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 80%;
  height: 100%;
  background: radial-gradient(ellipse, rgba(0, 123, 255, 0.15) 0%, transparent 70%);
}

.hero-gradient::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -20%;
  width: 60%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(111, 66, 193, 0.12) 0%, transparent 70%);
}

.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 100px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.5px;
  margin-bottom: 32px;
  backdrop-filter: blur(10px);
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #4DA8FF 0%, #A78BFA 50%, #C084FC 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.6);
  max-width: 620px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 64px;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.15);
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.hero-scroll a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.5);
  transition: all var(--transition);
  animation: bounce 2s infinite;
}

.hero-scroll a:hover {
  border-color: rgba(255,255,255,0.3);
  color: var(--white);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-8px); }
  60% { transform: translateY(-4px); }
}

/* =============================================
   Sections
   ============================================= */
.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.section-badge {
  display: inline-block;
  padding: 6px 16px;
  background: linear-gradient(135deg, rgba(0,123,255,0.08), rgba(111,66,193,0.08));
  border-radius: 100px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--gray-500);
  line-height: 1.7;
}

/* =============================================
   Solutions Section
   ============================================= */
.solutions {
  background: var(--gray-50);
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.solution-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.solution-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--purple));
  opacity: 0;
  transition: opacity var(--transition);
}

.solution-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.solution-card:hover::before {
  opacity: 1;
}

.solution-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
}

.solution-name {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.solution-desc {
  font-size: 0.95rem;
  color: var(--gray-500);
  margin-bottom: 24px;
  line-height: 1.7;
}

.solution-features {
  list-style: none;
  margin-bottom: 24px;
}

.solution-features li {
  font-size: 0.9rem;
  color: var(--gray-600);
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  gap: 10px;
}

.solution-features li:last-child {
  border-bottom: none;
}

.solution-features li::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  flex-shrink: 0;
}

.solution-cta {
  padding-top: 8px;
}

/* =============================================
   About Section
   ============================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-content .section-badge {
  display: inline-block;
  margin-bottom: 16px;
}

.about-content .section-title {
  text-align: left;
  margin-bottom: 24px;
}

.about-text {
  font-size: 1rem;
  color: var(--gray-500);
  margin-bottom: 16px;
  line-height: 1.8;
}

.about-values {
  margin-top: 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.value {
  display: flex;
  gap: 14px;
}

.value-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(0,123,255,0.08), rgba(111,66,193,0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--blue);
}

.value h3,
.value h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.value p {
  font-size: 0.85rem;
  color: var(--gray-500);
  line-height: 1.5;
}

/* Infinity visual */
.about-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.infinity-visual {
  position: relative;
  width: 320px;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.infinity-logo {
  width: 160px;
  height: 160px;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 4px 20px rgba(0, 123, 255, 0.15));
}

.infinity-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid;
  animation: pulse-ring 4s ease-in-out infinite;
}

.infinity-ring-1 {
  width: 200px;
  height: 200px;
  border-color: rgba(0, 123, 255, 0.15);
  animation-delay: 0s;
}

.infinity-ring-2 {
  width: 260px;
  height: 260px;
  border-color: rgba(111, 66, 193, 0.1);
  animation-delay: 1.3s;
}

.infinity-ring-3 {
  width: 320px;
  height: 320px;
  border-color: rgba(0, 31, 63, 0.08);
  animation-delay: 2.6s;
}

@keyframes pulse-ring {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.06); opacity: 0.6; }
}

/* =============================================
   Features Section
   ============================================= */
.features {
  background: var(--gray-50);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0,123,255,0.08), rgba(111,66,193,0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--blue);
}

.feature-card h3,
.feature-card h4 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* What's included (8 capabilities) */
.included {
  margin-top: 64px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.included-title {
  font-size: 1.4rem;
  margin-bottom: 6px;
  text-align: center;
}

.included-subtitle {
  text-align: center;
  color: var(--gray-500);
  font-size: 0.95rem;
  margin-bottom: 28px;
}

.included-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px 24px;
}

.included-list li {
  position: relative;
  padding-left: 30px;
  font-size: 0.875rem;
  line-height: 1.5;
}

.included-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-1.2 14.2-4-4 1.4-1.4 2.6 2.6 5.6-5.6 1.4 1.4z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-1.2 14.2-4-4 1.4-1.4 2.6 2.6 5.6-5.6 1.4 1.4z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.included-list strong {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--gray-900);
  font-size: 0.95rem;
}

.included-list span {
  color: var(--gray-500);
}

/* =============================================
   Pricing Section
   ============================================= */
.pricing {
  background: var(--white);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all var(--transition);
}

.plan-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.plan-card.is-recommended {
  background: linear-gradient(160deg, var(--navy) 0%, #1a2f6b 60%, var(--purple) 140%);
  border-color: transparent;
  color: rgba(255,255,255,0.85);
  box-shadow: var(--shadow-xl);
}

.plan-badge {
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: 100px;
  background: rgba(255,255,255,0.18);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.plan-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0,123,255,0.08), rgba(111,66,193,0.08));
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.is-recommended .plan-icon {
  background: rgba(255,255,255,0.15);
  color: var(--white);
}

.plan-name {
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.is-recommended .plan-name { color: var(--white); }

.plan-desc {
  font-size: 0.9rem;
  color: var(--gray-500);
  margin-bottom: 20px;
}

.is-recommended .plan-desc { color: rgba(255,255,255,0.75); }

.plan-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 4px;
  color: var(--gray-500);
  font-size: 0.875rem;
}

.plan-price strong {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.is-recommended .plan-price { color: rgba(255,255,255,0.75); }
.is-recommended .plan-price strong { color: var(--white); }

.plan-base {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-bottom: 24px;
}

.is-recommended .plan-base { color: rgba(255,255,255,0.7); }

.plan-features {
  list-style: none;
  flex: 1;
  margin-bottom: 28px;
}

.plan-features li {
  position: relative;
  padding: 6px 0 6px 28px;
  font-size: 0.875rem;
  color: var(--gray-600);
}

.plan-features li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 12px;
  width: 14px;
  height: 8px;
  border-left: 2px solid #16a34a;
  border-bottom: 2px solid #16a34a;
  transform: rotate(-45deg);
}

.is-recommended .plan-features li { color: rgba(255,255,255,0.9); }
.is-recommended .plan-features li::before { border-color: #93c5fd; }

.plan-card .btn {
  width: 100%;
}

.btn-dark {
  background: var(--navy);
  color: var(--white);
}
.btn-dark:hover {
  background: var(--navy-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 31, 63, 0.25);
}

.pricing-note {
  margin-top: 40px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--gray-500);
}

.pricing-note a,
.pricing-noscript a {
  color: var(--blue);
  font-weight: 600;
}
.pricing-note a:hover { color: var(--purple); }

.pricing-noscript {
  grid-column: 1 / -1;
  text-align: center;
}

/* Nav: secondary "Sign In" button */
.nav-links a.btn-nav-outline {
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
  background: transparent;
}
.nav-links a.btn-nav-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.1);
}
.nav.scrolled .nav-links a.btn-nav-outline {
  color: var(--navy);
  border-color: var(--gray-300);
}
.nav.scrolled .nav-links a.btn-nav-outline:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: transparent;
}

/* Visible keyboard focus everywhere */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}
.plan-card.is-recommended a:focus-visible,
.cta a:focus-visible,
.ofsted-intro a:focus-visible,
.hero a:focus-visible {
  outline-color: #93c5fd;
}

/* =============================================
   Platform: three core areas, six sectors
   ============================================= */
.area-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.area-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all var(--transition);
}

.area-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.area-card h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.area-card p {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.6;
}

.area-card .area-lead {
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.area-link {
  margin-top: auto;
  padding-top: 16px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  display: inline-flex;
  gap: 6px;
  align-self: flex-start;
}

.sectors {
  margin-top: 48px;
  text-align: center;
}

.sectors-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 16px;
}

.sector-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.sector-list li {
  padding: 8px 16px;
  border-radius: 100px;
  border: 1px solid var(--gray-200);
  background: var(--gray-50);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
}

/* =============================================
   Registration pathways (CQC vs Ofsted) + platform flow
   ============================================= */
.pathways {
  background: var(--gray-50);
}

.pathway-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 920px;
  margin: 0 auto;
}

.pathway-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.pathway-card-accent {
  border-color: rgba(111, 66, 193, 0.35);
  box-shadow: var(--shadow-lg);
}

.pathway-tag {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--purple);
  margin-bottom: 10px;
}

.pathway-card h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.pathway-card p {
  color: var(--gray-500);
  font-size: 0.95rem;
  margin-bottom: 24px;
  flex: 1;
}

.flow {
  margin-top: 56px;
  text-align: center;
}

.flow-title {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.flow-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.flow-list li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 8px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 100px;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-800);
}

.flow-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
}

/* =============================================
   Children's Homes & Ofsted Registration
   ============================================= */
.ofsted-intro {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, #0d1b3e 45%, #2d1854 100%);
  border-radius: var(--radius-lg);
  padding: 56px;
  color: rgba(255,255,255,0.75);
}

.ofsted-intro::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -15%;
  width: 55%;
  height: 120%;
  background: radial-gradient(ellipse, rgba(0, 123, 255, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.ofsted-intro > * {
  position: relative;
  max-width: 760px;
}

.ofsted-eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #93c5fd;
  margin-bottom: 12px;
}

.ofsted-title {
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.ofsted-intro p {
  font-size: 1.02rem;
  line-height: 1.75;
  margin-bottom: 14px;
}

.ptr-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 28px 0 32px;
  max-width: none;
}

.ptr-list li {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 16px 18px;
  font-size: 0.9rem;
  line-height: 1.55;
}

.ptr-list strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--white);
  margin-bottom: 4px;
}

.ofsted-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.ofsted-block {
  margin-top: 88px;
}

.ofsted-block .section-header {
  margin-bottom: 40px;
}

.section-title-sm {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}

.workspace-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
}

.workspace-list li {
  position: relative;
  padding: 20px 22px 20px 58px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  font-size: 0.9rem;
  line-height: 1.55;
}

.workspace-list li::before {
  content: '';
  position: absolute;
  left: 22px;
  top: 22px;
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-1.2 14.2-4-4 1.4-1.4 2.6 2.6 5.6-5.6 1.4 1.4z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-1.2 14.2-4-4 1.4-1.4 2.6 2.6 5.6-5.6 1.4 1.4z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.workspace-list strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.workspace-list span {
  color: var(--gray-500);
}

/* SC1 / SC2 journeys */
.journey-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.journey-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
}

.journey-head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.journey-code {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
}

.journey-head h4 {
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.journey-head p {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.5;
}

.journey-intro {
  font-size: 0.92rem;
  color: var(--gray-600);
  margin-bottom: 20px;
}

.journey-sub {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--gray-500);
  margin: 4px 0 14px;
}

.step-list {
  list-style: none;
  counter-reset: step;
}

.step-list li {
  counter-increment: step;
  position: relative;
  padding: 0 0 22px 52px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.step-list li:last-child {
  padding-bottom: 0;
}

.step-list li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 2px solid var(--blue);
  color: var(--blue);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
}

/* thin connecting rule between step circles (no arrows) */
.step-list li:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 16px;
  top: 36px;
  bottom: 2px;
  width: 2px;
  background: var(--gray-200);
}

.step-list strong {
  display: block;
  font-family: var(--font-heading);
  color: var(--gray-900);
  font-size: 0.98rem;
  padding-top: 5px;
}

.step-list span {
  color: var(--gray-500);
}

.people-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.people-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 12px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--gray-50);
}

.people-list strong {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  color: var(--gray-900);
}

.people-meta {
  grid-column: 1 / -1;
  font-size: 0.82rem;
  color: var(--gray-500);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

.status::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.status-ready {
  background: #ECFDF5;
  color: #047857;
}

.status-progress {
  background: #FFFBEB;
  color: #B45309;
}

.people-fields {
  display: grid;
  gap: 8px;
  font-size: 0.86rem;
}

.people-fields div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--gray-100);
}

.people-fields div:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.people-fields dt {
  font-weight: 600;
  color: var(--gray-700);
}

.people-fields dd {
  color: var(--gray-500);
}

.help-note {
  display: flex;
  gap: 14px;
  margin-top: 24px;
  padding: 20px 22px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(0,123,255,0.06), rgba(111,66,193,0.06));
  border: 1px solid rgba(0,123,255,0.15);
  color: var(--blue);
}

.help-note svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.help-note h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.help-note p {
  font-size: 0.88rem;
  color: var(--gray-600);
  line-height: 1.6;
}

.ofsted-cta {
  margin-top: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  background: var(--gray-50);
}

.ofsted-cta h3 {
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.ofsted-cta p {
  color: var(--gray-500);
  font-size: 0.95rem;
  max-width: 560px;
}

.ofsted-cta-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.btn-nav-light {
  background: var(--white);
  color: var(--navy);
  border-color: var(--gray-300);
}
.btn-nav-light:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-2px);
}

.ofsted-disclaimer {
  margin-top: 20px;
  font-size: 0.8rem;
  color: var(--gray-500);
  line-height: 1.6;
  text-align: center;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

/* Pricing sits on a tint now that the Ofsted section above it is white */
.pricing {
  background: var(--gray-50);
}

/* =============================================
   FAQ
   ============================================= */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  scroll-margin-top: 90px;
}

.faq-item[open] {
  border-color: rgba(0,123,255,0.3);
  box-shadow: var(--shadow);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--gray-900);
  border-radius: var(--radius);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '';
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: rotate(45deg) translate(-3px, -3px);
  transition: transform var(--transition);
}

.faq-item[open] summary::after {
  transform: rotate(-135deg) translate(-3px, -3px);
}

.faq-item summary:hover {
  color: var(--blue);
}

.faq-item summary:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

.faq-answer {
  padding: 0 22px 20px;
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.7;
}

.faq-answer ul {
  margin: 8px 0 0 20px;
}

.faq-answer li {
  padding: 2px 0;
}

.faq-cta {
  margin-top: 40px;
  text-align: center;
}

.cta-subtitle-sm {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.5);
}

.cta-trial {
  margin-top: 24px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
}

.cta-trial a {
  color: var(--white);
  text-decoration: underline;
}

/* =============================================
   CTA Section
   ============================================= */
.cta {
  position: relative;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
}

.cta-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--navy) 0%, #0d1b3e 40%, #1a1040 70%, #2d1854 100%);
}

.cta-gradient::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 120%;
  background: radial-gradient(ellipse, rgba(0, 123, 255, 0.12) 0%, transparent 70%);
}

.cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.cta-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--white);
  margin-bottom: 16px;
}

.cta-subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 36px;
  line-height: 1.7;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

/* =============================================
   Contact Section
   ============================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 16px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0,123,255,0.08), rgba(111,66,193,0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--blue);
}

.contact-item h3,
.contact-item h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.contact-item p,
.contact-item a {
  font-size: 0.9rem;
  color: var(--gray-500);
}

.contact-item a:hover {
  color: var(--blue);
}

/* Form */
.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--gray-800);
  background: var(--gray-50);
  transition: all var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray-400);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2394A3B8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

/* Form status messages */
.form-status {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 16px;
}

.form-status-success {
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.form-status-error {
  background: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

/* Turnstile widget */
.cf-turnstile {
  margin-bottom: 4px;
}

/* =============================================
   Footer
   ============================================= */
.footer {
  background: var(--gray-900);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand img {
  height: 36px;
  filter: brightness(0) invert(1);
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--gray-400);
  max-width: 280px;
}

.footer-links h5 {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.footer-links a {
  display: block;
  font-size: 0.9rem;
  color: var(--gray-400);
  padding: 6px 0;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  padding-top: 28px;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--gray-500);
}

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 1024px) {
  .solutions-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }

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

  .about-visual {
    order: -1;
  }

  .about-content .section-title {
    text-align: center;
  }

  .about-content .section-badge {
    text-align: center;
    display: block;
  }

  .about-text {
    text-align: center;
  }

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

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .included-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .area-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin: 0 auto;
  }

  .journey-grid {
    grid-template-columns: 1fr;
    max-width: 640px;
    margin: 0 auto;
  }

  .ofsted-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    gap: 20px;
  }

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

  .contact-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--white);
    padding: 20px 24px;
    gap: 16px;
    box-shadow: var(--shadow-lg);
    border-radius: 0 0 16px 16px;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    color: var(--gray-700) !important;
    padding: 8px 0;
  }

  .nav-links .btn-primary {
    color: var(--white) !important;
    text-align: center;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .hero-stats {
    flex-direction: column;
    gap: 24px;
  }

  .stat-divider {
    width: 40px;
    height: 1px;
  }

  .section {
    padding: 72px 0;
  }

  .features-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .included {
    padding: 28px 20px;
    margin-top: 48px;
  }

  .included-list {
    grid-template-columns: 1fr;
  }

  .pathway-grid,
  .workspace-list,
  .ptr-list {
    grid-template-columns: 1fr;
  }

  .ofsted-intro {
    padding: 36px 24px;
  }

  .ofsted-block {
    margin-top: 64px;
  }

  .journey-card,
  .pathway-card {
    padding: 24px 20px;
  }

  .people-fields div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .ofsted-cta {
    padding: 24px 20px;
  }

  .ofsted-cta-actions,
  .ofsted-actions {
    flex-direction: column;
    align-self: stretch;
  }

  .ofsted-cta-actions .btn,
  .ofsted-actions .btn {
    width: 100%;
  }

  .flow-list {
    flex-direction: column;
    align-items: stretch;
    max-width: 320px;
    margin: 0 auto;
  }

  .faq-item summary {
    padding: 16px 18px;
  }

  .faq-answer {
    padding: 0 18px 18px;
  }

  .nav-links a.btn {
    padding: 10px 18px;
  }

  .nav-links a.btn-nav-outline {
    color: var(--navy) !important;
    border-color: var(--gray-300);
  }

  .cta-actions {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

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

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

  .infinity-visual {
    width: 240px;
    height: 240px;
  }

  .infinity-logo {
    width: 120px;
    height: 120px;
  }

  .infinity-ring-1 {
    width: 150px;
    height: 150px;
  }

  .infinity-ring-2 {
    width: 195px;
    height: 195px;
  }

  .infinity-ring-3 {
    width: 240px;
    height: 240px;
  }
}

/* Nav collapses to the menu button below 900px (six links + two buttons
   no longer fit beside the logo). Mirrors the 768px nav rules above. */
.nav-logo { flex-shrink: 0; }
.nav-links a { white-space: nowrap; }

@media (max-width: 900px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--white);
    padding: 20px 24px;
    gap: 16px;
    box-shadow: var(--shadow-lg);
    border-radius: 0 0 16px 16px;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    color: var(--gray-700) !important;
    padding: 8px 0;
  }

  .nav-links .btn-primary {
    color: var(--white) !important;
    text-align: center;
  }

  .nav-links a.btn {
    padding: 10px 18px;
  }

  .nav-links a.btn-nav-outline {
    color: var(--navy) !important;
    border-color: var(--gray-300);
  }

  .nav-toggle {
    display: flex;
  }
}

/* Phones: 16px side gutters */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .ofsted-intro {
    padding: 32px 20px;
  }

  .workspace-list li {
    padding: 18px 16px 18px 50px;
  }

  .workspace-list li::before {
    left: 16px;
    top: 20px;
  }

  .btn-lg {
    padding: 14px 24px;
  }
}

/* =============================================
   Animations
   ============================================= */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

/* Particle styles */
.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(255,255,255,0.3);
  border-radius: 50%;
  animation: float linear infinite;
}

@keyframes float {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) scale(1);
    opacity: 0;
  }
}

/* Analytics cookie consent */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  padding: 16px;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner-inner {
  max-width: 720px;
  margin: 0 auto;
  background: var(--white);
  color: var(--gray-700);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 31, 63, 0.18);
  padding: 20px;
  display: flex;
  gap: 20px;
  align-items: center;
}
.cookie-banner-inner strong { color: var(--navy); }
.cookie-banner-inner p { margin: 4px 0 0; font-size: 0.9rem; color: var(--gray-600); }
.cookie-banner-actions { display: flex; gap: 8px; flex-shrink: 0; }
.cookie-banner-actions .btn { min-height: 44px; }
@media (max-width: 600px) {
  .cookie-banner-inner { flex-direction: column; align-items: stretch; }
  .cookie-banner-actions .btn { flex: 1; }
}
.cookie-reject {
  background: var(--white);
  color: var(--gray-700);
  border-color: var(--gray-300);
}
.cookie-reject:hover { background: var(--gray-50); border-color: var(--gray-400); }
.footer-bottom a { color: var(--gray-400); text-decoration: underline; }
.footer-bottom a:hover { color: var(--white); }

/* =============================================
   updates/22: CQC Registration section + demo account page
   ============================================= */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.footer-company { margin: 6px 0; }

/* CQC Registration (index.html #cqc-registration) */
.cqc {
  border-bottom: 1px solid var(--gray-200);
}
.cqc-intro {
  background: linear-gradient(135deg, var(--navy) 0%, #0b2a4a 50%, #0d3b66 100%);
}
.cqc-services {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 28px;
}
.cqc-services li {
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.08);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
}

/* Demo page */
.demo-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 72px;
  color: rgba(255,255,255,0.75);
}
.demo-hero .hero-bg { z-index: 0; }
.demo-strip {
  position: relative;
  z-index: 1;
  background: #FBBF24;
  color: #3b2a00;
  font-size: 0.85rem;
  padding: 8px 0;
  text-align: center;
}
.demo-strip strong {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.3px;
  margin-right: 8px;
}
.demo-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: center;
  padding-top: 64px;
}
.demo-eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #93c5fd;
  margin-bottom: 20px;
}
.demo-title {
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.demo-title .gradient-text {
  background: linear-gradient(135deg, #4DA8FF 0%, #A78BFA 60%, #C084FC 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
.demo-lead {
  font-size: 1.08rem;
  line-height: 1.75;
  margin-bottom: 28px;
  max-width: 560px;
}
.demo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.demo-note {
  margin-top: 14px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
}
.demo-preview {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 20px;
  color: var(--gray-700);
}
.demo-preview-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 16px;
}
.demo-dots { display: inline-flex; gap: 5px; }
.demo-dots i {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gray-300);
}
.demo-tag-example {
  margin-left: auto;
  padding: 3px 10px;
  border-radius: 100px;
  background: #FEF3C7;
  color: #92400E;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  white-space: nowrap;
}
.demo-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.demo-kpis div {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  padding: 12px;
  min-width: 0;
}
.demo-kpis strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.1;
}
.demo-kpis strong.kpi-good { color: #047857; }
.demo-kpis span {
  font-size: 0.75rem;
  color: var(--gray-500);
}
.demo-policy-rows {
  list-style: none;
  display: grid;
  gap: 8px;
}
.demo-policy-rows li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gray-800);
}
.pill {
  padding: 2px 10px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}
.pill-current { background: #D1FAE5; color: #065F46; }
.pill-due { background: #FEF3C7; color: #92400E; }
.pill-overdue { background: #FEE2E2; color: #991B1B; }
.demo-preview figcaption {
  margin-top: 12px;
  font-size: 0.75rem;
  color: var(--gray-500);
}

.demo-section { padding: 88px 0; }
.demo-section-tint { background: var(--gray-50); }
.demo-head {
  max-width: 720px;
  margin-bottom: 36px;
}
.demo-head .section-title { margin-bottom: 10px; }

.persona-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  align-items: stretch;
}
.persona-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.persona-card {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: all var(--transition);
}
.persona-card:hover { border-color: var(--blue); box-shadow: var(--shadow); }
.persona-card:focus-visible { outline: 3px solid rgba(0,123,255,0.45); outline-offset: 2px; }
.persona-card.is-active {
  border: 2px solid var(--blue);
  padding: 17px;
  background: rgba(0,123,255,0.05);
}
.persona-card strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.98rem;
  color: var(--gray-900);
}
.persona-card small {
  display: block;
  font-size: 0.82rem;
  color: var(--gray-500);
  line-height: 1.4;
}
.persona-avatar {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(0,123,255,0.1);
  color: var(--blue);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
}
.persona-card.is-active .persona-avatar {
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: var(--white);
}
.persona-panels {
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, var(--navy) 0%, #0d1b3e 60%, #2d1854 100%);
  border-radius: var(--radius-lg);
  padding: 28px;
  color: rgba(255,255,255,0.8);
}
.persona-panel[hidden] { display: none; }
.persona-panel-label {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #93c5fd;
}
.persona-panel h3 {
  color: var(--white);
  font-size: 1.4rem;
  margin: 6px 0 4px;
}
.persona-role { font-size: 0.9rem; margin-bottom: 16px; }
.persona-panel ul {
  list-style: none;
  display: grid;
  gap: 8px;
  margin-bottom: 22px;
}
.persona-panel li {
  position: relative;
  padding-left: 16px;
  font-size: 0.92rem;
  line-height: 1.5;
}
.persona-panel li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.6em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #93c5fd;
}
.persona-hint {
  margin-top: auto;
  padding-top: 18px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
}
.persona-hint strong { color: var(--white); }

.tour-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.tour-list li {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 20px;
}
.tour-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 12px;
}
.tour-list h3 { font-size: 1rem; margin-bottom: 6px; }
.tour-list p { font-size: 0.88rem; color: var(--gray-500); line-height: 1.55; }

.demo-two-col {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: start;
}
.demo-two-col .section-subtitle { margin-bottom: 20px; }
.demo-sector-list { justify-content: flex-start; }
.good-to-know {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.good-to-know h3 { font-size: 1.15rem; margin-bottom: 12px; }
.good-to-know ul {
  padding-left: 18px;
  margin-bottom: 20px;
  display: grid;
  gap: 6px;
  font-size: 0.92rem;
}

.guide-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
}
.guide-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.guide-table th,
.guide-table td {
  text-align: left;
  vertical-align: top;
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-200);
}
.guide-table tbody tr:last-child th,
.guide-table tbody tr:last-child td { border-bottom: none; }
.guide-table thead th {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray-500);
  background: var(--gray-50);
}
.guide-table tbody th {
  font-family: var(--font-heading);
  color: var(--gray-900);
  white-space: nowrap;
}
.guide-table td:nth-child(2) { white-space: nowrap; color: var(--gray-600); }
.guide-steps {
  margin: 28px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
}
.demo-small {
  margin-top: 20px;
  font-size: 0.82rem;
  color: var(--gray-500);
  max-width: 860px;
}

.demo-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 40px 44px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--blue) 0%, var(--purple) 100%);
  color: rgba(255,255,255,0.9);
}
.demo-cta h2 {
  color: var(--white);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin-bottom: 6px;
}

.nav-links a[aria-current="page"] { color: var(--white); font-weight: 700; }
.nav.scrolled .nav-links a[aria-current="page"] { color: var(--blue); }

@media (max-width: 1024px) {
  .demo-hero-grid,
  .persona-layout,
  .demo-two-col { grid-template-columns: 1fr; gap: 32px; }
  .tour-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .cqc-services { margin-bottom: 20px; }
  .demo-section { padding: 64px 0; }
  .demo-hero-grid { padding-top: 40px; }
  .persona-grid { grid-template-columns: 1fr; }
  .tour-list { grid-template-columns: 1fr; }
  .demo-cta { flex-direction: column; align-items: stretch; padding: 28px 20px; }
  .demo-actions .btn { flex: 1 1 100%; }
  .guide-table td:nth-child(2),
  .guide-table tbody th { white-space: normal; }
}
@media (max-width: 480px) {
  .demo-strip { font-size: 0.78rem; }
  .demo-strip strong { display: block; margin-right: 0; }
  .demo-kpis { gap: 6px; }
  .demo-kpis div { padding: 10px 8px; }
  .demo-kpis strong { font-size: 1.2rem; }
  .demo-preview { padding: 14px; }
  .persona-panels, .good-to-know { padding: 22px 18px; }
  .guide-table th, .guide-table td { padding: 10px 12px; }
}
@media (max-width: 600px) {
  .guide-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .guide-table, .guide-table tbody, .guide-table tr, .guide-table th, .guide-table td { display: block; width: 100%; }
  .guide-table tbody tr { padding: 12px 14px; border-bottom: 1px solid var(--gray-200); }
  .guide-table tbody tr:last-child { border-bottom: none; }
  .guide-table th, .guide-table td { padding: 0 !important; border: none !important; }
  .guide-table tbody th { font-size: 0.95rem; }
  .guide-table td:nth-child(2) { font-size: 0.82rem; margin-bottom: 4px; }
}

/* =============================================
   Data Import & Migration (updates/23)
   ============================================= */
.migration {
  background: var(--gray-50);
}

.migration-header {
  max-width: 820px;
  margin-bottom: 48px;
}

.migration-eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}

.migration-title {
  font-size: clamp(1.9rem, 4.4vw, 3.2rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.migration-lead {
  font-size: 1.1rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 28px;
}

.migration-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.migration-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 26px 24px 30px;
  transition: all var(--transition);
}

.migration-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.migration-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(0,123,255,0.09);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.migration-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.migration-card p {
  font-size: 0.92rem;
  color: var(--gray-600);
  line-height: 1.6;
}

.migration-banner {
  background: linear-gradient(135deg, var(--navy) 0%, #0b2a5e 100%);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  color: var(--white);
}

.migration-banner h3 {
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: 6px;
}

.migration-banner p {
  color: rgba(255,255,255,0.85);
  font-size: 0.98rem;
  margin-bottom: 16px;
  max-width: 760px;
}

.migration-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
}

.migration-chips li {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--white);
}

.migration-note {
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--gray-500);
}

@media (max-width: 1024px) {
  .migration-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .migration-grid {
    grid-template-columns: 1fr;
  }

  .migration-banner {
    padding: 24px 20px;
  }

  .migration-header .btn {
    width: 100%;
    justify-content: center;
    white-space: normal;
    text-align: center;
  }
}

/* Interested In: several choices (checkboxes, grouped) */
.interest-group { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
.interest-group legend {
  font-family: var(--font-heading); font-size: 0.85rem; font-weight: 600; color: var(--gray-700);
  margin-bottom: 8px; padding: 0;
}
.interest-hint { font-weight: 400; color: var(--gray-400); }
.interest-options {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px 20px;
  padding: 14px 16px; border: 1px solid var(--gray-200); border-radius: 10px; background: var(--gray-50);
}
.interest-heading {
  font-family: var(--font-heading); font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--gray-500, #64748b); margin: 0 0 6px;
}
.form-group label.interest-option {
  display: flex; align-items: flex-start; gap: 8px; font-family: var(--font-body); font-weight: 400;
  font-size: 0.875rem; color: var(--gray-800); margin: 0 0 6px; cursor: pointer;
}
.form-group .interest-option input[type="checkbox"] {
  width: 16px; height: 16px; padding: 0; margin: 2px 0 0; flex: none; accent-color: var(--blue); box-shadow: none;
}

/* Interested In: searchable multi-select dropdown (enhances the checkbox list) */
.interest-group.ms-enhanced { position: relative; }
.ms-enhanced .ms-control {
  display: flex; align-items: center; gap: 6px; min-height: 46px; padding: 6px 10px 6px 12px;
  border: 1px solid var(--gray-200); border-radius: 10px; background: var(--gray-50); cursor: text;
  transition: all var(--transition);
}
.ms-enhanced.ms-open .ms-control, .ms-enhanced .ms-control:focus-within {
  border-color: var(--blue); background: var(--white); box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}
.ms-chips { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; min-width: 0; align-items: center; }
.ms-chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 4px 3px 10px; border-radius: 999px;
  background: rgba(0, 123, 255, 0.1); color: var(--blue); font-size: 0.8rem; font-weight: 600; line-height: 1.3;
}
.ms-chip-remove {
  border: 0; background: transparent; color: inherit; font-size: 1rem; line-height: 1; cursor: pointer;
  width: 20px; height: 20px; border-radius: 50%; padding: 0;
}
.ms-chip-remove:hover, .ms-chip-remove:focus-visible { background: rgba(0, 123, 255, 0.18); outline: none; }
.form-group input.ms-search {
  flex: 1; min-width: 120px; width: auto; border: 0; background: transparent; padding: 6px 2px; box-shadow: none;
}
.form-group input.ms-search:focus { border: 0; box-shadow: none; background: transparent; }
.ms-toggle {
  flex: none; width: 28px; height: 28px; border: 0; background: transparent; cursor: pointer; padding: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2394A3B8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; transition: transform var(--transition);
}
.ms-open .ms-toggle { transform: rotate(180deg); }
.ms-enhanced .interest-options {
  position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px);
  max-height: 320px; overflow-y: auto; background: var(--white);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
}
.ms-enhanced .interest-options[hidden] { display: none; }
.ms-empty { margin: 0; font-size: 0.875rem; color: var(--gray-400); grid-column: 1 / -1; }
.interest-col[hidden], .interest-option[hidden] { display: none !important; }
.form-group .interest-option input[type="checkbox"]:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* App entry buttons while sign-in is closed (APP_SIGNIN_OPEN=false) */
a.is-blocked,
a.is-blocked:hover,
a.is-blocked:focus {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: auto;
  transform: none;
  box-shadow: none;
  text-decoration: none;
  filter: grayscale(0.6);
}
