/* Bundled by Next.js from public/assets/page-shell.css — update both when editing shell styles. */
    :root {
      --bg: #f5f5f7;
      --bg-white: #ffffff;
      --text: #0a2540;
      /* WCAG AA on --bg / white (~4.5:1+); backgrounds unchanged */
      --text-muted: #3d4d5f;
      --text-soft: #475569;
      --text-subtle-heading: #455667;
      --text-section-lead-inline: #3a4a5e;
      /* HSL components (matches app globals) — use hsl(var(--border)) for border colors */
      --border: 214.3 31.8% 91.4%;
      --cta: #3f4654;
      --cta-hover: #323945;
      --link-hover: #1d4ed8;
      --form-error: #c85848;
      --form-error-ring: rgba(200, 88, 72, 0.4);
      --radius: 12px;
      --radius-lg: 20px;
      --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 24px rgba(10, 37, 64, 0.06);
      --max: 1080px;
      --nav-h: 72px;
    }

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

    html {
      scroll-behavior: smooth;
      scrollbar-gutter: stable;
    }

    body {
      margin: 0;
      font-family: "Plus Jakarta Sans", system-ui, sans-serif;
      font-size: 16px;
      line-height: 1.6;
      color: var(--text);
      background: var(--bg);
      -webkit-font-smoothing: antialiased;
    }

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

    .container {
      width: min(100% - 48px, var(--max));
      margin-inline: auto;
    }

    .nav {
      position: sticky;
      top: 0;
      z-index: 100;
      height: var(--nav-h);
      display: flex;
      align-items: center;
      background: rgba(245, 245, 247, 0.92);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid rgba(227, 232, 238, 0.8);
    }

    .nav-inner {
      width: min(100% - 40px, calc(var(--max) + 80px));
      margin-inline: auto;
      display: flex;
      align-items: center;
      gap: 24px;
    }

    .nav-start {
      display: flex;
      align-items: center;
      gap: 48px;
      min-width: 0;
    }

    @media (max-width: 900px) {
      .nav-start {
        gap: 12px;
      }
    }

    .logo {
      display: flex;
      align-items: center;
      flex-shrink: 0;
    }

    .logo-img {
      width: auto;
      display: block;
      height: calc(32px * 1.3);
    }

    .logo-img--mark {
      display: none;
      height: calc(32px * 1.3);
    }

    @media (max-width: 900px) {
      .logo-img--full {
        display: none;
      }

      .logo-img--mark {
        display: block;
      }
    }

    .nav-links {
      display: flex;
      align-items: center;
      gap: 18px;
      list-style: none;
      margin: 0;
      padding: 0;
    }

    .nav-links a {
      font-size: 0.9375rem;
      font-weight: 500;
      color: var(--text-muted);
      transition: color 0.15s ease;
    }

    .nav-links > li > a:hover {
      color: var(--link-hover);
    }

    .nav-dropdown {
      position: relative;
    }

    .nav-dropdown::after {
      content: "";
      position: absolute;
      left: -12px;
      right: -12px;
      top: 100%;
      height: 22px;
    }

    .nav-dropdown-trigger {
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }

    .nav-dropdown-trigger svg {
      width: 12px;
      height: 12px;
      flex-shrink: 0;
      opacity: 0.65;
      transition: transform 0.15s ease;
    }

    .nav-dropdown:hover .nav-dropdown-trigger svg,
    .nav-dropdown:focus-within .nav-dropdown-trigger svg {
      transform: rotate(180deg);
    }

    .nav-dropdown-panel {
      position: fixed;
      top: calc(var(--nav-h) + 2px);
      left: max(24px, calc((100vw - var(--max)) / 2));
      right: max(24px, calc((100vw - var(--max)) / 2));
      transform: translateY(4px);
      padding: 16px clamp(16px, 4vw, 56px);
      list-style: none;
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 10px;
      background: var(--bg-white);
      border: 1px solid hsl(var(--border));
      border-radius: 14px;
      box-shadow: 0 4px 12px rgba(10, 37, 64, 0.08), 0 12px 40px rgba(10, 37, 64, 0.08);
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
      z-index: 200;
    }

    .nav-dropdown:hover .nav-dropdown-panel,
    .nav-dropdown:focus-within .nav-dropdown-panel {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
    }

    .nav-dropdown-panel li {
      min-width: 0;
    }

    .nav-dropdown-panel a {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 8px;
      height: 100%;
      padding: 12px;
      border-radius: 10px;
      border: 1px solid transparent;
      font-size: 0.9375rem;
      color: var(--text-muted);
    }

    .nav-dropdown-panel a:hover {
      background: rgba(29, 78, 216, 0.06);
      border-color: rgba(29, 78, 216, 0.22);
    }

    .nav-dropdown-panel a:hover .nav-portal-title {
      color: var(--link-hover);
    }

    .nav-dropdown-panel a:hover .nav-portal-icon {
      color: var(--link-hover);
      border-color: rgba(29, 78, 216, 0.25);
    }

    .nav-portal-icon {
      width: 28px;
      height: 28px;
      border-radius: 8px;
      border: 1px solid hsl(var(--border));
      display: inline-flex;
      align-items: center;
      justify-content: center;
      color: var(--cta);
      background: var(--bg-white);
      flex-shrink: 0;
    }

    .nav-portal-icon svg {
      width: 16px;
      height: 16px;
      stroke-width: 1.8;
    }

    .nav-portal-title {
      font-size: 0.875rem;
      font-weight: 600;
      color: var(--text);
      line-height: 1.25;
    }

    .nav-portal-desc {
      font-size: 0.75rem;
      line-height: 1.35;
      color: var(--text-soft);
      white-space: normal;
    }

    @media (max-width: 1200px) {
      .nav-dropdown-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
    }

    @media (max-width: 680px) {
      .nav-dropdown-panel {
        grid-template-columns: 1fr;
      }
    }

    .nav-actions {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-left: auto;
    }

    .nav-user-profile {
      display: flex;
      flex-direction: row;
      flex-wrap: nowrap;
      align-items: center;
      gap: 10px;
    }

    .nav-user-name {
      font-weight: 600;
      font-size: 0.9375rem;
      color: var(--text);
      max-width: min(200px, 42vw);
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      flex-shrink: 1;
      line-height: 1.2;
    }

    .nav-user-menu-wrap {
      position: relative;
      flex-shrink: 0;
    }

    .nav-kebab-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 40px;
      height: 40px;
      border: 1px solid hsl(var(--border));
      border-radius: 10px;
      background: var(--bg-white);
      color: var(--text-muted);
      cursor: pointer;
      padding: 0;
      transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
    }

    .nav-kebab-btn:hover {
      color: var(--text);
      border-color: var(--text-soft);
    }

    .nav-kebab-btn[aria-expanded="true"] {
      color: var(--text);
      border-color: var(--text-soft);
      background: var(--bg);
    }

    .nav-user-dropdown {
      position: absolute;
      right: 0;
      top: calc(100% + 8px);
      min-width: 200px;
      padding: 6px;
      background: var(--bg-white);
      border: 1px solid hsl(var(--border));
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      z-index: 1220;
    }

    .nav-user-dropdown[hidden] {
      display: none !important;
    }

    .nav-user-dropdown-item {
      display: block;
      width: 100%;
      text-align: left;
      padding: 10px 12px;
      font-family: inherit;
      font-size: 0.9375rem;
      font-weight: 500;
      border: none;
      border-radius: 8px;
      background: none;
      cursor: pointer;
      color: var(--text);
      text-decoration: none;
      line-height: 1.35;
      box-sizing: border-box;
    }

    .nav-user-dropdown-item:hover {
      background: var(--bg);
    }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 10px 18px;
      font-family: inherit;
      font-size: 0.9375rem;
      font-weight: 600;
      border-radius: 999px;
      border: none;
      cursor: pointer;
      transition: background 0.15s ease, box-shadow 0.15s ease;
    }

    .btn-ghost {
      background: transparent;
      color: var(--text-muted);
    }

    .btn-ghost:hover {
      color: var(--text);
    }

    .btn-primary {
      background: var(--cta);
      color: #fff;
      box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
    }

    .btn-primary:hover {
      background: var(--cta-hover);
      box-shadow: 0 4px 12px rgba(88, 95, 113, 0.35);
    }

    .nav-toggle {
      display: none;
      width: 40px;
      height: 40px;
      border: 1px solid hsl(var(--border));
      border-radius: 10px;
      background: var(--bg-white);
      cursor: pointer;
      align-items: center;
      justify-content: center;
      flex-direction: column;
      gap: 5px;
    }

    .nav-toggle span {
      display: block;
      width: 18px;
      height: 2px;
      background: var(--text);
      border-radius: 1px;
      transition: transform 0.18s ease, opacity 0.18s ease;
    }

    @media (max-width: 900px) {
      .nav-links,
      .nav-actions .btn-ghost {
        display: none;
      }

      .nav-inner {
        position: relative;
        padding-right: 56px;
      }

      .nav-actions {
        display: none;
      }

      .nav-actions .btn-primary {
        display: none;
      }

      .nav-toggle {
        display: flex;
        position: fixed;
        top: calc((var(--nav-h) - 40px) / 2);
        right: 20px;
        z-index: 1210;
        margin-left: 0;
      }

      body.nav-menu-open {
        overflow: hidden;
      }

      .nav {
        z-index: 1200;
        backdrop-filter: none;
      }

      .nav.is-menu-open {
        background: var(--bg-white);
        backdrop-filter: none;
      }

      .nav.is-menu-open .nav-start nav {
        position: fixed;
        top: var(--nav-h);
        left: 0;
        right: 0;
        height: calc(100dvh - var(--nav-h));
        min-height: 640px;
        background: var(--bg);
        z-index: 1190;
        padding: 14px 24px 120px;
        overflow-y: auto;
        border-top: 1px solid hsl(var(--border));
      }

      .nav.is-menu-open .nav-links {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
      }

      .nav.is-menu-open .nav-links > li > a,
      .nav.is-menu-open .nav-dropdown-trigger {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 0;
        border-bottom: 1px solid hsl(var(--border));
      }

      .nav.is-menu-open .nav-actions {
        position: fixed;
        left: 24px;
        right: 24px;
        bottom: 24px;
        top: auto;
        z-index: 1195;
        display: flex;
        gap: 12px;
        margin-left: 0;
        background: var(--bg);
        padding-top: 8px;
      }

      .nav.is-menu-open .nav-actions .btn-ghost,
      .nav.is-menu-open .nav-actions .btn-primary {
        display: inline-flex;
        min-height: 44px;
        flex: 1;
      }

      .nav.is-menu-open .nav-actions .nav-user-profile {
        width: 100%;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
        min-height: 44px;
      }

      .nav.is-menu-open .nav-actions .nav-user-name {
        max-width: min(240px, 65vw);
      }

      .nav.is-menu-open .nav-actions .nav-user-dropdown {
        top: auto;
        bottom: calc(100% + 8px);
      }

      .nav-dropdown::after {
        display: none;
      }

      .nav-dropdown-panel {
        position: static;
        top: auto;
        left: auto;
        right: auto;
        transform: none;
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 10px 0 4px;
        border: none;
        box-shadow: none;
        border-radius: 0;
        background: transparent;
        grid-template-columns: 1fr;
        gap: 8px;
        opacity: 1;
        visibility: visible;
        display: none;
      }

      .nav-dropdown:hover .nav-dropdown-panel,
      .nav-dropdown:focus-within .nav-dropdown-panel {
        display: none;
      }

      .nav-dropdown.is-open .nav-dropdown-panel,
      .nav-dropdown.is-open:hover .nav-dropdown-panel,
      .nav-dropdown.is-open:focus-within .nav-dropdown-panel {
        display: grid;
      }

      .nav-dropdown-panel a {
        min-height: 44px;
        border-color: hsl(var(--border));
        background: var(--bg-white);
      }

      .nav-dropdown-trigger svg {
        transition: transform 0.15s ease;
      }

      .nav-dropdown.is-open .nav-dropdown-trigger svg {
        transform: rotate(180deg);
      }

      .nav.is-menu-open .nav-toggle span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
      }

      .nav.is-menu-open .nav-toggle span:nth-child(2) {
        opacity: 0;
      }

      .nav.is-menu-open .nav-toggle span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
      }
    }

    .breadcrumb-bar {
      background: var(--bg-white);
      border-bottom: 1px solid hsl(var(--border));
    }

    .breadcrumbs {
      padding: 12px 0;
      font-size: 0.8125rem;
      color: var(--text-soft);
    }

    .breadcrumbs ol {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 8px;
      list-style: none;
      margin: 0;
      padding: 0;
    }

    .breadcrumbs li {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .breadcrumbs li:not(:last-child)::after {
      content: "/";
      color: var(--text-muted);
      font-weight: 300;
      font-size: 0.875rem;
      line-height: 1;
      pointer-events: none;
    }

    .breadcrumbs a {
      color: var(--text-muted);
      font-weight: 500;
    }

    .breadcrumbs a:hover {
      color: var(--cta);
    }

    .breadcrumbs [aria-current="page"] {
      color: var(--text);
      font-weight: 600;
    }

    .page-hero {
      padding: 56px 0 64px;
      background: var(--bg-white);
      border-bottom: 1px solid hsl(var(--border));
    }

    .page-hero h1 {
      margin: 0 0 16px;
      font-size: clamp(2rem, 4vw, 2.75rem);
      font-weight: 700;
      letter-spacing: -0.03em;
      line-height: 1.15;
      color: var(--text);
      max-width: 20ch;
    }

    .page-hero-lead {
      margin: 0;
      max-width: 38rem;
      font-size: 1.125rem;
      color: var(--text-muted);
      line-height: 1.65;
    }

    .page-hero.page-hero--split .container {
      display: grid;
      grid-template-columns: minmax(220px, 1fr) minmax(320px, 1.35fr);
      gap: 32px;
      align-items: start;
    }

    .page-hero.page-hero--split h1 {
      margin: 0;
      max-width: 12ch;
    }

    .page-hero.page-hero--split .page-hero-lead {
      max-width: 48rem;
    }

    @media (max-width: 900px) {
      .page-hero.page-hero--split .container {
        grid-template-columns: 1fr;
        gap: 16px;
      }
    }

    .section {
      padding: 72px 0;
      color: rgba(10, 37, 64, 1);
    }

    .section-alt {
      background: var(--bg-white);
      border-top: 1px solid hsl(var(--border));
      border-bottom: 1px solid hsl(var(--border));
    }

    /* Student portal: practice (tighter vertical rhythm vs default section) */
    .section.student-practice-band {
      padding: 48px 0;
    }

    /* Student portal: safety (explicit white band between alternating rows) */
    .section.student-safety-band {
      background: var(--bg-white);
    }

    .section-head {
      margin-bottom: 40px;
      max-width: 40rem;
    }

    .section-head h2 {
      margin: 0 0 12px;
      font-size: clamp(1.35rem, 2.5vw, 1.625rem);
      font-weight: 700;
      letter-spacing: -0.02em;
      line-height: 1.35;
      color: var(--text);
    }

    .section-head h2:last-child {
      margin-bottom: 0;
    }

    .section-head-title {
      display: inline;
      font-weight: 700;
      color: var(--text);
    }

    .section-head-title::after {
      content: '. ';
    }

    .section-head-lead {
      display: inline;
      font-weight: 700;
      font-size: inherit;
      line-height: inherit;
      margin: 0;
      color: var(--text-section-lead-inline);
    }

    .section-head p {
      margin: 0;
      font-size: inherit;
      font-weight: 700;
      color: var(--text-section-lead-inline);
      line-height: inherit;
    }

    .section-head h2 + p {
      margin-top: 0;
    }

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

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

    .challenge-card {
      padding: 24px;
      border-radius: var(--radius-lg);
      border: 1px solid hsl(var(--border));
      background: var(--bg);
    }

    .challenge-card h3 {
      margin: 0 0 10px;
      font-size: 0.8125rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      color: var(--text-soft);
    }

    .challenge-card .pain {
      margin: 0 0 14px;
      font-size: 1rem;
      font-weight: 600;
      color: var(--text);
      line-height: 1.45;
    }

    .challenge-card .solve {
      margin: 0;
      font-size: 0.9375rem;
      color: var(--text-muted);
      line-height: 1.6;
    }

    .split {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 48px;
      align-items: start;
    }

    @media (max-width: 900px) {
      .split {
        grid-template-columns: 1fr;
        gap: 32px;
      }
    }

    /* Section heading left, bullet list right (no illustration) */
    .split.split--head-bullets {
      grid-template-columns: 1fr 1fr;
      gap: clamp(32px, 4vw, 48px);
      align-items: start;
    }

    .split.split--head-bullets .section-head {
      margin-bottom: 0;
      max-width: 42rem;
    }

    .split.split--head-bullets .feature-list {
      margin-top: 0;
    }

    .split.split--head-bullets .section-copy-lead {
      margin: 0;
      max-width: 42rem;
    }

    .split.split--head-bullets .section-trust-copy {
      display: flex;
      flex-direction: column;
      gap: 20px;
      min-width: 0;
      max-width: 42rem;
    }

    .split.split--head-bullets .section-copy-lead p {
      margin: 0;
      font-size: 1rem;
      color: var(--text-muted);
      line-height: 1.6;
    }

    @media (max-width: 900px) {
      .split.split--head-bullets {
        grid-template-columns: 1fr;
        gap: 24px;
      }

      .split.split--head-bullets .section-head {
        max-width: none;
      }

      .split.split--head-bullets .section-copy-lead {
        max-width: none;
      }

      .split.split--head-bullets .section-trust-copy {
        max-width: none;
      }
    }

    .split.split--head-bullets + .split.split--head-bullets {
      margin-top: 48px;
    }

    /* Equal inset on all sides (padding matches horizontal gutter) */
    .section.section--video-equal-pad {
      --video-section-pad: 24px;
      padding: var(--video-section-pad);
    }

    .section.section--video-equal-pad .container {
      width: min(100%, var(--max));
      margin-inline: auto;
    }

    /* Contained video block (same width inset as .container sections) */
    .section-video-frame {
      margin: 0;
      border-radius: var(--radius-lg);
      overflow: hidden;
      border: 1px solid hsl(var(--border));
      box-shadow: var(--shadow);
      background: var(--text);
    }

    .section-video-frame video {
      display: block;
      width: 100%;
      aspect-ratio: 16 / 9;
      max-height: min(56vh, 520px);
      object-fit: cover;
      object-position: center;
    }

    @media (max-width: 900px) {
      .section-video-frame video {
        max-height: 360px;
      }
    }

    /* Stacked topic: heading then bullets below (management enrolment + finance) */
    .section-topic-block .section-head {
      margin-bottom: 20px;
    }

    .section-topic-block .feature-list {
      max-width: none;
    }

    .section-topics-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: clamp(32px, 4vw, 56px);
      align-items: start;
    }

    .section-topics-row .section-topic-block {
      min-width: 0;
    }

    @media (max-width: 900px) {
      .section-topics-row {
        grid-template-columns: 1fr;
      }

      .section-topics-row .section-topic-block + .section-topic-block {
        margin-top: 48px;
        padding-top: 48px;
        border-top: 1px solid hsl(var(--border));
      }
    }

    /* Match image column height to text column (e.g. management overview) */
    .split.split--stretch-cols {
      align-items: stretch;
    }

    .split.split--stretch-cols > .split-body {
      min-width: 0;
    }

    .split.split--stretch-cols > .split-img {
      display: flex;
      flex-direction: column;
      min-height: 0;
      align-self: stretch;
    }

    .split.split--stretch-cols > .split-img img,
    .split.split--stretch-cols > .split-img video {
      flex: 1;
      width: 100%;
      min-height: 0;
      height: 100%;
      object-fit: cover;
      object-position: center;
    }

    .split.split--stretch-cols > .split-img video {
      display: block;
      background: var(--text);
    }

    @media (max-width: 900px) {
      .split.split--stretch-cols > .split-img img,
      .split.split--stretch-cols > .split-img video {
        min-height: 240px;
        max-height: 360px;
      }

      /* Image first in DOM for desktop left column; show copy first when stacked */
      .split.split--stretch-cols.split--media-left > .split-body {
        order: -1;
      }
    }

    .split-img {
      margin: 0;
      border-radius: var(--radius-lg);
      overflow: hidden;
      border: 1px solid hsl(var(--border));
      box-shadow: var(--shadow);
    }

    .split-img img {
      width: 100%;
      height: auto;
      display: block;
    }

    .split-img--art {
      display: flex;
      align-items: center;
      justify-content: center;
      min-height: 280px;
      padding: 36px;
      background: linear-gradient(165deg, rgba(88, 95, 113, 0.06) 0%, var(--bg-white) 50%);
    }

    .split-img--art svg {
      width: 100%;
      max-width: 400px;
      height: auto;
      color: var(--cta);
    }

    .section-body-text {
      margin: 0;
      max-width: 40rem;
      font-size: 1rem;
      color: var(--text-muted);
      line-height: 1.65;
    }

    .section-head + .section-body-text {
      margin-top: 20px;
    }

    .split.split--stretch-cols > .section-body-text.split-col--center-y {
      align-self: center;
    }

    /* Full-width copy block (e.g. student portal safety, no image) */
    .section-safety-copy .section-head {
      max-width: none;
    }

    .section-safety-copy .section-body-text {
      max-width: none;
    }

    .feature-list {
      margin: 0;
      padding: 0;
      list-style: none;
    }

    .feature-list li {
      position: relative;
      padding-left: 1.25rem;
      margin-bottom: 12px;
      font-size: 1rem;
      color: var(--text-muted);
      line-height: 1.55;
    }

    .feature-list li::before {
      content: "";
      position: absolute;
      left: 0;
      top: 0.55em;
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: var(--cta);
      opacity: 0.7;
    }

    .illustration {
      display: flex;
      align-items: center;
      justify-content: center;
      min-height: 220px;
      padding: 32px;
      border-radius: var(--radius-lg);
      border: 1px solid hsl(var(--border));
      background: linear-gradient(165deg, rgba(88, 95, 113, 0.06) 0%, var(--bg-white) 50%);
    }

    .illustration svg {
      width: 100%;
      max-width: 320px;
      height: auto;
      color: var(--cta);
    }

    .cta-inline {
      margin-top: 32px;
    }

    /* Portal pages — bottom CTA (home cta-band tone, per-portal tint + swirls) */
    .portal-cta {
      --portal-cta-glow: rgba(100, 130, 160, 0.22);
      --portal-cta-swirl: rgba(210, 220, 235, 0.14);
      padding: 80px 0;
      color: #fff;
      text-align: center;
      position: relative;
      overflow: hidden;
      border-top: 1px solid rgba(255, 255, 255, 0.06);
    }

    .portal-cta .container {
      position: relative;
      z-index: 1;
    }

    .portal-cta__swirls {
      position: absolute;
      inset: -25% -15% -20%;
      pointer-events: none;
      color: var(--portal-cta-swirl);
    }

    .portal-cta__swirls svg {
      width: 100%;
      height: 100%;
      display: block;
    }

    .portal-cta::before {
      content: "";
      position: absolute;
      inset: 0;
      background: radial-gradient(ellipse 85% 62% at 50% 0%, var(--portal-cta-glow), transparent 58%);
      pointer-events: none;
    }

    .portal-cta h2 {
      margin: 0 0 16px;
      font-size: clamp(1.75rem, 3vw, 2.25rem);
      font-weight: 700;
      letter-spacing: -0.02em;
      line-height: 1.2;
    }

    .portal-cta p {
      margin: 0 auto 28px;
      max-width: 520px;
      font-size: 1.0625rem;
      color: #e2e8f0;
      line-height: 1.65;
    }

    .portal-cta__actions {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      justify-content: center;
      align-items: center;
    }

    .portal-cta .btn-primary {
      background: var(--cta);
      color: #fff;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.22);
    }

    .portal-cta .btn-primary:hover {
      background: var(--cta-hover);
      color: #fff;
      box-shadow: 0 6px 26px rgba(0, 0, 0, 0.28);
    }

    .portal-cta .btn-ghost-light {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 10px 18px;
      font-family: inherit;
      font-size: 0.9375rem;
      font-weight: 600;
      border-radius: 999px;
      border: 1px solid rgba(255, 255, 255, 0.22);
      background: rgba(255, 255, 255, 0.06);
      color: rgba(255, 255, 255, 0.92);
      cursor: pointer;
      transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    }

    .portal-cta .btn-ghost-light:hover {
      background: rgba(255, 255, 255, 0.12);
      border-color: rgba(255, 255, 255, 0.32);
      color: #fff;
    }

    .portal-cta--management {
      background: linear-gradient(180deg, #0b2a42 0%, #0f3858 100%);
      --portal-cta-glow: rgba(95, 130, 168, 0.24);
      --portal-cta-swirl: rgba(200, 218, 242, 0.13);
    }

    .portal-cta--teacher {
      background: linear-gradient(180deg, #1a3038 0%, #243e48 100%);
      --portal-cta-glow: rgba(120, 175, 168, 0.2);
      --portal-cta-swirl: rgba(196, 228, 222, 0.11);
    }

    .portal-cta--student {
      background: linear-gradient(180deg, #1a2840 0%, #243556 100%);
      --portal-cta-glow: rgba(115, 145, 205, 0.22);
      --portal-cta-swirl: rgba(205, 215, 245, 0.12);
    }

    .portal-cta--parents {
      background: linear-gradient(180deg, #2a2834 0%, #363442 100%);
      --portal-cta-glow: rgba(165, 155, 185, 0.2);
      --portal-cta-swirl: rgba(225, 215, 235, 0.1);
    }

    .portal-cta--ai {
      background: linear-gradient(180deg, #1e2240 0%, #2a2f55 100%);
      --portal-cta-glow: rgba(130, 140, 220, 0.24);
      --portal-cta-swirl: rgba(200, 205, 245, 0.12);
    }

    .page-footer {
      padding: 48px 0 32px;
      background: var(--bg);
      border-top: 1px solid hsl(var(--border));
      font-size: 0.9375rem;
      color: var(--text-muted);
    }

    .page-footer a {
      color: var(--cta);
      font-weight: 600;
      text-decoration: underline;
      text-decoration-color: #c5cdd6;
      text-underline-offset: 0.2em;
    }

    .page-footer a:hover {
      color: var(--link-hover);
    }

    .page-footer-sep {
      margin: 0 0.5em;
      color: var(--text-soft);
      font-weight: 400;
      user-select: none;
    }

    /* Pricing */
    .pricing-hero {
      padding: 40px 0 24px;
    }

    .pricing-hero h1 {
      font-size: clamp(1.75rem, 3.5vw, 2.5rem);
      letter-spacing: -0.02em;
      margin: 0 0 12px;
      color: var(--text);
    }

    .pricing-hero .lead {
      font-size: 1.0625rem;
      color: var(--text-muted);
      max-width: 560px;
      margin: 0;
      line-height: 1.55;
    }

    .pricing-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 20px;
      padding: 24px 0 56px;
    }

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

    .price-card {
      background: var(--bg-white);
      border: 1px solid hsl(var(--border));
      border-radius: var(--radius-lg);
      padding: 28px 24px;
      box-shadow: var(--shadow);
      display: flex;
      flex-direction: column;
      position: relative;
    }

    .price-card.featured {
      border-color: var(--cta);
      box-shadow: 0 8px 32px rgba(88, 95, 113, 0.12);
    }

    .price-card .badge {
      position: absolute;
      top: 16px;
      right: 16px;
      font-size: 0.6875rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      color: var(--cta);
      background: rgba(88, 95, 113, 0.08);
      padding: 4px 10px;
      border-radius: 999px;
    }

    .price-card h2 {
      font-size: 1.25rem;
      margin: 0 0 8px;
      color: var(--text);
    }

    .price-card .amount {
      font-size: 2rem;
      font-weight: 700;
      color: var(--text);
      margin: 0 0 4px;
    }

    .price-card .amount span {
      font-size: 1rem;
      font-weight: 600;
      color: var(--text-muted);
    }

    .price-card .blurb {
      font-size: 0.9375rem;
      color: var(--text-muted);
      margin: 0 0 20px;
      line-height: 1.5;
    }

    .price-card ul {
      list-style: none;
      margin: 0 0 24px;
      padding: 0;
      flex: 1;
    }

    .price-card li {
      font-size: 0.9375rem;
      color: var(--text);
      padding: 8px 0;
      border-bottom: 1px solid hsl(var(--border));
      padding-left: 22px;
      position: relative;
    }

    .price-card li::before {
      content: "";
      position: absolute;
      left: 0;
      top: 14px;
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--cta);
      opacity: 0.5;
    }

    .price-card .btn {
      width: 100%;
      text-align: center;
    }

    .pricing-faq {
      padding: 0 0 64px;
    }

    .pricing-faq h2 {
      font-size: 1.25rem;
      margin: 0 0 20px;
    }

    .faq-item {
      border-bottom: 1px solid hsl(var(--border));
      padding: 16px 0;
    }

    .faq-item p {
      margin: 0;
      font-size: 0.9375rem;
      color: var(--text-muted);
      line-height: 1.55;
    }

    .faq-item strong {
      display: block;
      color: var(--text);
      margin-bottom: 8px;
    }

    /* Contact */
    .contact-hero {
      padding: clamp(40px, 6vw, 56px) 0 28px;
      background: linear-gradient(180deg, rgba(99, 91, 255, 0.06) 0%, var(--bg) 42%, var(--bg) 100%);
      border-bottom: 1px solid hsl(var(--border));
    }

    .contact-hero h1 {
      font-size: clamp(1.75rem, 3.5vw, 2.5rem);
      letter-spacing: -0.02em;
      margin: 0 0 12px;
      max-width: 40rem;
      color: var(--text);
    }

    .contact-hero__lead {
      margin: 0;
      max-width: 40rem;
      color: var(--text-muted);
      line-height: 1.55;
      font-size: 1.0625rem;
    }

    .contact-shell {
      padding: clamp(28px, 5vw, 48px) 0 72px;
    }

    .contact-card {
      display: grid;
      grid-template-columns: minmax(260px, 1fr) minmax(0, 1.15fr);
      align-items: stretch;
      max-width: 1080px;
      margin: 0 auto;
      background: var(--bg-white);
      border-radius: var(--radius-lg);
      overflow: hidden;
      border: 1px solid hsl(var(--border));
      box-shadow:
        0 2px 8px rgba(10, 37, 64, 0.06),
        0 20px 56px rgba(10, 37, 64, 0.1);
    }

    .contact-card__aside {
      position: relative;
      background: linear-gradient(165deg, #0d3354 0%, var(--text) 48%, #081a2e 100%);
      color: rgba(255, 255, 255, 0.92);
      padding: clamp(28px, 4vw, 44px);
      overflow: hidden;
    }

    .contact-card__aside::after {
      content: "";
      position: absolute;
      width: min(280px, 90vw);
      height: min(280px, 90vw);
      right: -18%;
      bottom: -22%;
      border-radius: 50%;
      background: radial-gradient(
        circle at 40% 40%,
        rgba(255, 255, 255, 0.14) 0%,
        rgba(255, 255, 255, 0.04) 42%,
        transparent 68%
      );
      pointer-events: none;
    }

    .contact-card__aside-inner {
      position: relative;
      z-index: 1;
      max-width: 22rem;
    }

    .contact-card__aside-title {
      margin: 0 0 12px;
      font-size: clamp(1.25rem, 2.2vw, 1.5rem);
      font-weight: 700;
      letter-spacing: -0.02em;
      color: #fff;
    }

    .contact-card__aside-lead {
      margin: 0 0 28px;
      font-size: 0.9375rem;
      line-height: 1.6;
      color: #e2e8f0;
    }

    .contact-aside-list {
      list-style: none;
      margin: 0;
      padding: 0;
    }

    .contact-aside-item {
      display: flex;
      gap: 14px;
      align-items: flex-start;
      margin-bottom: 22px;
    }

    .contact-aside-item:last-child {
      margin-bottom: 0;
    }

    .contact-aside-item__icon {
      flex-shrink: 0;
      width: 40px;
      height: 40px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 10px;
      background: rgba(255, 255, 255, 0.1);
      color: rgba(255, 255, 255, 0.95);
    }

    .contact-aside-item__icon svg {
      display: block;
    }

    .contact-aside-item__body {
      min-width: 0;
    }

    .contact-aside-item__label {
      display: block;
      font-size: 0.75rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      color: #cbd5e1;
      margin-bottom: 6px;
    }

    .contact-aside-item__link {
      color: #fff;
      font-weight: 600;
      font-size: 0.9375rem;
      text-decoration: underline;
      text-underline-offset: 3px;
      word-break: break-word;
    }

    .contact-aside-item__link:hover {
      color: rgba(255, 255, 255, 0.88);
    }

    .contact-aside-item__note {
      margin: 0;
      font-size: 0.875rem;
      line-height: 1.55;
      color: #e2e8f0;
    }

    .contact-card__form {
      padding: clamp(28px, 4vw, 44px) clamp(24px, 4vw, 40px);
      background: var(--bg-white);
    }

    @media (max-width: 900px) {
      .contact-card {
        grid-template-columns: 1fr;
      }

      .contact-card__aside-inner {
        max-width: none;
      }
    }

    .contact-form-card-title {
      margin: 0 0 8px;
      font-size: clamp(1.375rem, 2.5vw, 1.625rem);
      font-weight: 600;
      letter-spacing: -0.02em;
      color: var(--text);
    }

    .contact-form-card-lead {
      margin: 0 0 24px;
      font-size: 0.9375rem;
      line-height: 1.55;
      color: var(--text-muted);
      max-width: 36rem;
    }

    .contact-form-banner {
      padding: 12px 16px;
      border-radius: 8px;
      font-size: 0.875rem;
      line-height: 1.45;
      margin-bottom: 20px;
      scroll-margin-top: calc(var(--nav-h, 72px) + 12px);
      outline: none;
    }
    .contact-form-banner--success {
      background: #ecfdf5;
      color: #065f46;
      border: 1px solid #a7f3d0;
    }
    .contact-form-banner--error {
      background: #fef2f2;
      color: #991b1b;
      border: 1px solid #fecaca;
    }

    .contact-page .form-row--2col {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px 24px;
      margin-bottom: 22px;
    }

    .contact-page .form-row--2col > .form-row {
      margin-bottom: 0;
    }

    @media (max-width: 560px) {
      .contact-page .form-row--2col {
        grid-template-columns: 1fr;
      }
    }

    /* ===== Float-form: underline inputs + floating labels ===== */
    .float-form {
      /* One timing curve for label + padding so the “open” motion feels cohesive */
      --float-move-duration: 0.38s;
      --float-move-ease: cubic-bezier(0.22, 1, 0.32, 1);
    }

    .float-form .form-row--float {
      margin-bottom: 22px;
    }

    .float-field {
      position: relative;
      padding-top: 2px;
    }

    /* Labels: rest on the underline; float to top + scale when focused/filled (avoids overlap with value text). */
    .float-form .float-field:not(.float-field--textarea) > label {
      position: absolute;
      left: 0;
      top: auto;
      bottom: 10px;
      margin: 0;
      font-size: 1rem;
      font-weight: 500;
      color: var(--text-soft);
      line-height: 1.35;
      pointer-events: none;
      transform: none;
      transform-origin: left bottom;
      transition:
        transform var(--float-move-duration) var(--float-move-ease),
        top var(--float-move-duration) var(--float-move-ease),
        bottom var(--float-move-duration) var(--float-move-ease),
        color calc(var(--float-move-duration) * 0.85) var(--float-move-ease);
    }

    .float-form .float-field--textarea > label {
      position: absolute;
      left: 0;
      top: 30px;
      bottom: auto;
      margin: 0;
      font-size: 1rem;
      font-weight: 500;
      color: var(--text-soft);
      line-height: 1.35;
      pointer-events: none;
      transform: none;
      transform-origin: left top;
      transition:
        transform var(--float-move-duration) var(--float-move-ease),
        top var(--float-move-duration) var(--float-move-ease),
        color calc(var(--float-move-duration) * 0.85) var(--float-move-ease);
    }

    .float-form .float-field input,
    .float-form .float-field select,
    .float-form .float-field textarea {
      display: block;
      width: 100%;
      margin: 0;
      padding: 28px 0 8px;
      border: none;
      border-bottom: 1px solid hsl(var(--border));
      border-radius: 0;
      background: transparent;
      font: inherit;
      font-size: 1rem;
      color: var(--text);
      box-shadow: none;
      outline: none;
      transition:
        border-color calc(var(--float-move-duration) * 0.75) var(--float-move-ease),
        border-width var(--float-move-duration) var(--float-move-ease),
        padding-top var(--float-move-duration) var(--float-move-ease),
        padding-bottom var(--float-move-duration) var(--float-move-ease);
    }

    /* NBSP placeholder drives :placeholder-shown for labels; keep it invisible */
    .float-form .float-field input::placeholder,
    .float-form .float-field textarea::placeholder {
      color: transparent;
      opacity: 1;
    }

    .float-form .float-field textarea {
      padding-top: 30px;
      min-height: 120px;
      resize: vertical;
      line-height: 1.5;
    }

    .float-form .float-field select {
      padding-right: 22px;
      cursor: pointer;
      appearance: none;
      -webkit-appearance: none;
      -moz-appearance: none;
      color: var(--text);
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' stroke='%23425466' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 0 bottom 10px;
      background-size: 12px 12px;
    }

    .float-form .float-field--select select:invalid:not(:focus) {
      color: transparent;
    }

    /* Focus */
    .float-form .float-field input:focus,
    .float-form .float-field select:focus,
    .float-form .float-field textarea:focus {
      outline: none;
      border-bottom-width: 2px;
      padding-bottom: 3px;
    }

    .float-form .float-field input:focus:not(.field-error),
    .float-form .float-field select:focus:not(.field-error),
    .float-form .float-field textarea:focus:not(.field-error) {
      border-bottom-color: var(--text);
    }

    .contact-page .float-form .float-field input:focus:not(.field-error),
    .contact-page .float-form .float-field select:focus:not(.field-error),
    .contact-page .float-form .float-field textarea:focus:not(.field-error) {
      border-bottom-color: var(--link-hover);
    }

    /* Error: terracotta underline (override generic .form-row with full border shorthand) */
    .float-form .float-field input.field-error,
    .float-form .float-field select.field-error,
    .float-form .float-field textarea.field-error,
    .float-form .float-field input[aria-invalid="true"],
    .float-form .float-field select[aria-invalid="true"],
    .float-form .float-field textarea[aria-invalid="true"] {
      border: none;
      border-bottom: 1px solid var(--form-error);
      border-radius: 0;
      padding-bottom: 8px;
      outline: none;
    }

    .float-form .float-field input.field-error:focus,
    .float-form .float-field select.field-error:focus,
    .float-form .float-field textarea.field-error:focus {
      border: none;
      border-bottom: 1px solid var(--form-error);
      padding-bottom: 8px;
      outline: none;
    }

    /* Error + empty + blurred: compact row (label on the line like inactive); "Required" stays below */
    .float-form .float-field:not(.float-field--textarea) input.field-error:placeholder-shown:not(:focus),
    .float-form .float-field:not(.float-field--textarea) input[aria-invalid="true"]:placeholder-shown:not(:focus),
    .float-form .float-field:not(.float-field--textarea) select.field-error:invalid:not(:focus),
    .float-form .float-field:not(.float-field--textarea) select[aria-invalid="true"]:invalid:not(:focus) {
      padding-top: 12px;
    }

    /* Error + focused or has value: open vertical space for typing */
    .float-form .float-field:not(.float-field--textarea) input.field-error:focus,
    .float-form .float-field:not(.float-field--textarea) input.field-error:not(:placeholder-shown),
    .float-form .float-field:not(.float-field--textarea) input[aria-invalid="true"]:focus,
    .float-form .float-field:not(.float-field--textarea) input[aria-invalid="true"]:not(:placeholder-shown),
    .float-form .float-field:not(.float-field--textarea) select.field-error:focus,
    .float-form .float-field:not(.float-field--textarea) select.field-error:valid,
    .float-form .float-field:not(.float-field--textarea) select[aria-invalid="true"]:focus,
    .float-form .float-field:not(.float-field--textarea) select[aria-invalid="true"]:valid {
      padding-top: 28px;
    }

    /* Floated label: pin to top band so value text sits below in the padded area */
    .float-form .float-field:not(.float-field--textarea) input:focus + label,
    .float-form .float-field:not(.float-field--textarea) input:not(:placeholder-shown) + label,
    .float-form .float-field:not(.float-field--textarea) select:focus + label,
    .float-form .float-field:not(.float-field--textarea) select:valid + label {
      top: 2px;
      bottom: auto;
      transform: scale(0.8125);
      transform-origin: left top;
      font-weight: 600;
    }

    .float-form .float-field--textarea textarea:focus + label,
    .float-form .float-field--textarea textarea:not(:placeholder-shown) + label {
      top: 2px;
      transform: scale(0.8125);
      transform-origin: left top;
      font-weight: 600;
    }

    /* Label colour: focused = blue */
    .float-form .float-field input:focus:not(.field-error) + label,
    .float-form .float-field select:focus:not(.field-error) + label,
    .float-form .float-field--textarea textarea:focus:not(.field-error) + label {
      color: var(--link-hover);
    }

    /* Label colour: filled but unfocused = default */
    .float-form .float-field input:not(:placeholder-shown):not(:focus):not(.field-error) + label,
    .float-form .float-field select:valid:not(:focus):not(.field-error) + label,
    .float-form .float-field--textarea textarea:not(:placeholder-shown):not(:focus):not(.field-error) + label {
      color: var(--text-soft);
    }

    /* Label colour: error = terracotta (position follows default float rules: rest when empty/blur, float when focused/filled) */
    .float-form .float-field:not(.float-field--textarea) input.field-error + label,
    .float-form .float-field:not(.float-field--textarea) select.field-error + label,
    .float-form .float-field:not(.float-field--textarea) input[aria-invalid="true"] + label,
    .float-form .float-field:not(.float-field--textarea) select[aria-invalid="true"] + label {
      color: var(--form-error);
      font-weight: 600;
    }

    .float-form .float-field--textarea textarea.field-error + label,
    .float-form .float-field--textarea textarea[aria-invalid="true"] + label {
      color: var(--form-error);
      font-weight: 600;
    }

    .float-form .float-field:not(.float-field--textarea) input:-webkit-autofill + label,
    .float-form .float-field:not(.float-field--textarea) select:-webkit-autofill + label {
      top: 2px;
      bottom: auto;
      transform: scale(0.8125);
      transform-origin: left top;
      font-weight: 600;
    }

    .float-form .float-field--textarea textarea:-webkit-autofill + label {
      top: 2px;
      transform: scale(0.8125);
      transform-origin: left top;
      font-weight: 600;
    }

    .float-form .float-field:not(.float-field--textarea) input.field-error:-webkit-autofill + label {
      color: var(--form-error);
      top: 2px;
      bottom: auto;
      transform: scale(0.8125);
      transform-origin: left top;
      font-weight: 600;
    }

    .float-form .float-field--textarea textarea.field-error:-webkit-autofill + label {
      color: var(--form-error);
      top: 2px;
      transform: scale(0.8125);
      transform-origin: left top;
      font-weight: 600;
    }

    .float-form .float-field input:-webkit-autofill,
    .float-form .float-field textarea:-webkit-autofill {
      border-bottom-color: hsl(var(--border));
      -webkit-text-fill-color: var(--text);
      transition: background-color 9999s ease-out;
    }

    .float-field-hint {
      margin: 6px 0 0;
      font-size: 0.8125rem;
      color: var(--text-soft);
      line-height: 1.45;
    }

    .float-form .float-field select.field-error {
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' stroke='%23c85848' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    }

    .float-form .form-row--float .field-error-text {
      color: var(--form-error);
      font-size: 0.8125rem;
      font-weight: 500;
    }

    /* +8px under floated label “title” so it does not crowd the value/placeholder line */
    .float-form.float-form--label-gap-8 .float-field:not(.float-field--textarea) input,
    .float-form.float-form--label-gap-8 .float-field:not(.float-field--textarea) select {
      padding-top: 36px;
    }

    .float-form.float-form--label-gap-8
      .float-field:not(.float-field--textarea)
      input.field-error:focus,
    .float-form.float-form--label-gap-8
      .float-field:not(.float-field--textarea)
      input.field-error:not(:placeholder-shown),
    .float-form.float-form--label-gap-8
      .float-field:not(.float-field--textarea)
      input[aria-invalid="true"]:focus,
    .float-form.float-form--label-gap-8
      .float-field:not(.float-field--textarea)
      input[aria-invalid="true"]:not(:placeholder-shown),
    .float-form.float-form--label-gap-8
      .float-field:not(.float-field--textarea)
      select.field-error:focus,
    .float-form.float-form--label-gap-8
      .float-field:not(.float-field--textarea)
      select.field-error:valid,
    .float-form.float-form--label-gap-8
      .float-field:not(.float-field--textarea)
      select[aria-invalid="true"]:focus,
    .float-form.float-form--label-gap-8
      .float-field:not(.float-field--textarea)
      select[aria-invalid="true"]:valid {
      padding-top: 36px;
    }

    /* +32px under floated label “title” so it does not crowd the value/placeholder line */
    .float-form.float-form--label-gap-32 .float-field:not(.float-field--textarea) input,
    .float-form.float-form--label-gap-32 .float-field:not(.float-field--textarea) select {
      padding-top: 60px;
    }

    .float-form.float-form--label-gap-32
      .float-field:not(.float-field--textarea)
      input.field-error:focus,
    .float-form.float-form--label-gap-32
      .float-field:not(.float-field--textarea)
      input.field-error:not(:placeholder-shown),
    .float-form.float-form--label-gap-32
      .float-field:not(.float-field--textarea)
      input[aria-invalid="true"]:focus,
    .float-form.float-form--label-gap-32
      .float-field:not(.float-field--textarea)
      input[aria-invalid="true"]:not(:placeholder-shown),
    .float-form.float-form--label-gap-32
      .float-field:not(.float-field--textarea)
      select.field-error:focus,
    .float-form.float-form--label-gap-32
      .float-field:not(.float-field--textarea)
      select.field-error:valid,
    .float-form.float-form--label-gap-32
      .float-field:not(.float-field--textarea)
      select[aria-invalid="true"]:focus,
    .float-form.float-form--label-gap-32
      .float-field:not(.float-field--textarea)
      select[aria-invalid="true"]:valid {
      padding-top: 60px;
    }

    /* Change password: new password field — tighter top padding (auth card) */
    .float-form.float-form--label-gap-32
      .float-field:not(.float-field--textarea)
      input#cp-new {
      padding-top: 32px;
    }

    .float-form .form-actions {
      margin-top: 28px;
    }

    .float-form .form-actions .btn-primary {
      width: 100%;
      border-radius: 8px;
      padding-top: 12px;
      padding-bottom: 12px;
      transition:
        background 0.2s ease,
        box-shadow 0.22s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .float-form .form-actions .btn-primary:hover {
      transform: translateY(-2px);
      box-shadow: 0 10px 28px rgba(88, 95, 113, 0.28);
    }

    .float-form .form-actions .btn-primary:active {
      transform: translateY(0);
      box-shadow: 0 4px 14px rgba(88, 95, 113, 0.2);
    }

    .contact-page .float-form .form-actions .btn-primary {
      border-radius: 45px;
    }

    @media (prefers-reduced-motion: reduce) {
      .float-form .float-field > label,
      .float-form .float-field input,
      .float-form .float-field select,
      .float-form .float-field textarea,
      .float-form .form-actions .btn-primary {
        transition: none;
      }

      .float-form .form-actions .btn-primary:hover,
      .float-form .form-actions .btn-primary:active {
        transform: none;
      }
    }

    .form-row {
      margin-bottom: 18px;
    }

    .form-row label {
      display: block;
      font-size: 0.8125rem;
      font-weight: 600;
      color: var(--text);
      margin-bottom: 6px;
    }

    .form-row input,
    .form-row select,
    .form-row textarea {
      width: 100%;
      padding: 10px 12px;
      border: 1px solid hsl(var(--border));
      border-radius: 10px;
      font: inherit;
      color: var(--text);
      background: var(--bg-white);
    }

    .form-row textarea {
      min-height: 120px;
      resize: vertical;
    }

    .form-row select {
      appearance: none;
      -webkit-appearance: none;
      -moz-appearance: none;
      padding: 10px 36px 10px 12px;
      cursor: pointer;
      color-scheme: light;
      background-color: var(--bg-white);
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' stroke='%23425466' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 16px center;
      background-size: 12px 12px;
    }

    .form-row select::-ms-expand {
      display: none;
    }

    .form-row select option {
      background-color: var(--bg-white);
      color: var(--text);
      padding: 10px 12px;
      line-height: 20px;
      min-height: 40px;
    }

    .form-row input:focus,
    .form-row select:focus,
    .form-row textarea:focus {
      outline: 2px solid rgba(88, 95, 113, 0.25);
      outline-offset: 1px;
    }

    .form-row input.field-error,
    .form-row select.field-error,
    .form-row textarea.field-error {
      border: 2px solid var(--form-error);
    }

    .form-row input[aria-invalid="true"],
    .form-row select[aria-invalid="true"],
    .form-row textarea[aria-invalid="true"] {
      border: 2px solid var(--form-error);
    }

    .form-row input.field-error:focus,
    .form-row select.field-error:focus,
    .form-row textarea.field-error:focus {
      outline: 2px solid var(--form-error-ring);
      outline-offset: 1px;
    }

    label.auth-check.field-error {
      outline: 2px solid var(--form-error);
      outline-offset: 2px;
      border-radius: 10px;
    }

    .form-error-message {
      display: none;
      margin: 0 0 14px;
      font-size: 0.875rem;
      font-weight: 600;
      color: var(--form-error);
      line-height: 1.4;
    }

    .form-error-message.is-visible {
      display: block;
    }

    .field-error-text {
      margin: 6px 0 0;
      font-size: 0.8125rem;
      color: var(--form-error);
      font-weight: 500;
      line-height: 1.35;
    }

    .form-actions {
      margin-top: 8px;
    }

    /* Sign in / Sign up */
    .auth-main {
      padding: 24px 0 64px;
    }

    .auth-card {
      width: min(100% - 48px, 420px);
      margin: 48px auto 0;
      background: var(--bg-white);
      border: 1px solid hsl(var(--border));
      border-radius: var(--radius-lg);
      padding: 32px 28px;
      box-shadow: var(--shadow);
    }

    .auth-feedback {
      margin: 0 0 1rem;
      padding: 0.75rem 1rem;
      border-radius: var(--radius);
      font-size: 0.9375rem;
      line-height: 1.45;
      border: 1px solid hsl(var(--border));
      background: var(--bg-white);
    }

    .auth-feedback[hidden] {
      display: none !important;
    }

    .auth-feedback--error {
      border-color: #d14343;
      color: #5e0b0b;
      background: #fff4f4;
    }

    .auth-feedback--success {
      border-color: #2f9e5b;
      color: #0f3d22;
      background: #f1fbf4;
    }

    .auth-field-hint {
      font-size: 0.8125rem;
      color: var(--text-soft);
      margin: -0.35rem 0 0.85rem;
      line-height: 1.4;
    }

    .auth-card > h1.auth-card-title {
      margin: 0 0 10px;
      font-size: 32px;
      font-weight: 700;
      color: var(--text);
      line-height: 1.25;
      letter-spacing: -0.02em;
    }

    .auth-card > .lead {
      margin: 0 0 24px;
      font-size: 0.9375rem;
      color: var(--text-muted);
      line-height: 1.55;
    }

    .auth-wrap {
      position: relative;
    }

    .auth-state {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border: 0;
    }

    .auth-segmented {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 4px;
      padding: 4px;
      margin-bottom: 28px;
      background: var(--bg);
      border-radius: 12px;
      border: 1px solid hsl(var(--border));
    }

    .auth-seg-item {
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 10px 16px;
      font-size: 0.9375rem;
      font-weight: 600;
      color: var(--text-muted);
      border-radius: 10px;
      border: 1px solid transparent; /* keep layout stable; active tab overrides */
      box-sizing: border-box;
      cursor: pointer;
      text-align: center;
      transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
    }

    .auth-seg-item:hover {
      color: var(--text);
    }

    #auth-sign-in:checked ~ .auth-segmented label[for="auth-sign-in"],
    #auth-sign-up:checked ~ .auth-segmented label[for="auth-sign-up"] {
      background: var(--bg-white);
      color: var(--text);
      box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
      border: 1px solid hsl(var(--border));
    }

    .auth-panel--sign-up {
      display: none;
    }

    #auth-sign-up:checked ~ .auth-panel--sign-in {
      display: none;
    }

    #auth-sign-up:checked ~ .auth-panel--sign-up {
      display: block;
    }

    .auth-forgot {
      font-size: 0.8125rem;
      font-weight: 600;
      color: var(--cta);
      text-decoration: none;
    }

    .auth-forgot:hover,
    .auth-forgot:focus-visible {
      color: var(--cta-hover);
      text-decoration: underline;
    }

    .auth-row-between {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 12px;
      margin-bottom: 18px;
      flex-wrap: wrap;
    }

    .auth-row-between .auth-check {
      margin-bottom: 0;
      flex: 1;
      min-width: 0;
    }

    .auth-check {
      display: flex;
      align-items: center;
      justify-content: flex-start;
      text-align: left;
      gap: 10px;
      margin-bottom: 20px;
      font-size: 0.875rem;
      color: var(--text-muted);
      line-height: 1.45;
    }

    .auth-check input {
      width: 18px;
      height: 18px;
      margin: 0;
      flex-shrink: 0;
    }

    .auth-check a {
      color: var(--cta);
      font-weight: 600;
    }

    .auth-check--compact {
      margin-top: -8px;
      margin-bottom: 14px;
      font-size: 0.8125rem;
      line-height: 1.35;
    }

    .auth-check--compact input {
      margin-top: 0;
    }

    .auth-foot {
      margin-top: 24px;
      padding-top: 20px;
      border-top: 1px solid hsl(var(--border));
      font-size: 0.875rem;
      color: var(--text-muted);
      text-align: left;
      line-height: 1.5;
    }

    .auth-foot a {
      color: var(--cta);
      font-weight: 600;
      text-decoration: none;
    }

    .auth-foot a:hover,
    .auth-foot a:focus-visible {
      text-decoration: underline;
    }

    /* ===== Feature page hero with aurora gradient ===== */
    .page-hero--animated {
      position: relative;
      overflow: hidden;
    }
    .page-hero--animated::before {
      content: "";
      position: absolute;
      inset: -50% -30%;
      background: linear-gradient(
        135deg,
        rgba(99, 91, 255, 0.06) 0%,
        rgba(0, 140, 255, 0.04) 25%,
        rgba(255, 99, 132, 0.03) 50%,
        rgba(99, 91, 255, 0.05) 75%,
        rgba(0, 140, 255, 0.06) 100%
      );
      background-size: 400% 400%;
      animation: aurora-drift 16s ease-in-out infinite;
      pointer-events: none;
      z-index: 0;
    }
    .page-hero--animated > .container {
      position: relative;
      z-index: 1;
    }
    @keyframes aurora-drift {
      0%   { background-position: 0% 50%; }
      50%  { background-position: 100% 50%; }
      100% { background-position: 0% 50%; }
    }

    /* ===== Feature highlight cards ===== */
    .feature-highlights {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 20px;
    }
    @media (max-width: 768px) {
      .feature-highlights {
        grid-template-columns: 1fr;
      }
    }
    .feature-highlight-card {
      padding: 24px;
      border-radius: 16px;
      background: rgba(255, 255, 255, 0.65);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      border: 1px solid rgba(227, 232, 238, 0.7);
      box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 24px rgba(10, 37, 64, 0.06);
      transition: transform 0.45s cubic-bezier(0.33, 1, 0.68, 1),
                  box-shadow 0.45s cubic-bezier(0.33, 1, 0.68, 1),
                  border-color 0.45s ease;
    }
    .feature-highlight-card:hover {
      transform: translateY(-3px);
      box-shadow: 0 8px 32px rgba(10, 37, 64, 0.10), 0 20px 56px rgba(10, 37, 64, 0.08);
      border-color: rgba(99, 91, 255, 0.18);
    }
    .feature-highlight-card h3 {
      margin: 0 0 8px;
      font-size: 1rem;
      font-weight: 700;
      color: var(--text);
    }
    .feature-highlight-card p {
      margin: 0;
      font-size: 0.9375rem;
      color: var(--text-muted);
      line-height: 1.55;
    }
    .feature-highlight-card .fh-icon {
      width: 40px;
      height: 40px;
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: linear-gradient(135deg, rgba(88, 95, 113, 0.08), rgba(88, 95, 113, 0.02));
      border: 1px solid rgba(88, 95, 113, 0.2);
      color: var(--cta);
      margin-bottom: 12px;
    }
    .feature-highlight-card .fh-icon svg {
      width: 20px;
      height: 20px;
    }

    /* ===== CTA band aurora variant for feature pages ===== */
    .portal-cta--aurora::before {
      background: linear-gradient(
        135deg,
        rgba(99, 91, 255, 0.15) 0%,
        rgba(0, 140, 255, 0.12) 25%,
        rgba(232, 193, 92, 0.06) 50%,
        rgba(99, 91, 255, 0.12) 75%,
        rgba(0, 140, 255, 0.15) 100%
      );
      background-size: 400% 400%;
      animation: aurora-drift 14s ease-in-out infinite;
    }

    /* ===== Gold button for feature pages ===== */
    .btn-gold {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 14px 26px;
      font-family: inherit;
      font-size: 1rem;
      font-weight: 700;
      border-radius: 999px;
      border: none;
      cursor: pointer;
      background: linear-gradient(180deg, #e8c15c 0%, #c9a227 100%);
      color: #0a2540;
      box-shadow: 0 4px 20px rgba(201, 162, 39, 0.3);
      transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
    }
    .btn-gold:hover {
      background: linear-gradient(180deg, #f0cd6e 0%, #d4ae32 100%);
      box-shadow: 0 8px 32px rgba(201, 162, 39, 0.4);
      transform: translateY(-2px);
    }

    /* ===== Emotion photo banner for feature pages ===== */
    .emotion-banner {
      padding: 64px 0;
      overflow: hidden;
    }
    .emotion-banner__inner {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 40px;
      align-items: center;
    }
    .emotion-banner__photo {
      border-radius: 20px;
      overflow: hidden;
      box-shadow: 0 8px 40px rgba(10, 37, 64, 0.10), 0 24px 64px rgba(10, 37, 64, 0.06);
    }
    .emotion-banner__photo img {
      display: block;
      width: 100%;
      height: auto;
      object-fit: cover;
      border-radius: 20px;
    }
    .emotion-banner__text h3 {
      margin: 0 0 12px;
      font-size: clamp(1.25rem, 2.5vw, 1.625rem);
      font-weight: 700;
      letter-spacing: -0.015em;
      line-height: 1.3;
      color: var(--text);
    }
    .emotion-banner__text p {
      margin: 0;
      font-size: 1.0625rem;
      line-height: 1.65;
      color: var(--text-muted);
    }
    .emotion-banner--reverse .emotion-banner__inner {
      direction: rtl;
    }
    .emotion-banner--reverse .emotion-banner__inner > * {
      direction: ltr;
    }
    @media (max-width: 768px) {
      .emotion-banner__inner {
        grid-template-columns: 1fr;
        gap: 24px;
      }
      .emotion-banner--reverse .emotion-banner__inner {
        direction: ltr;
      }
    }

    @media (prefers-reduced-motion: reduce) {
      .page-hero--animated::before {
        animation: none;
      }
      .portal-cta--aurora::before {
        animation: none;
      }
      .btn-gold:hover {
        transform: none;
      }
    }
