h1 {
    font-family: var(--font-ui);
    font-size: 64px;
    font-weight: bolder;
    color: black
}
h2 {
    font-family: var(--font-ui);
    font-size: 4rem;
    color: rgb(25, 76, 142);
    text-align: center;
}
h3{
    font-family: var(--font-ui);
    font-size: 1.5rem;
    color: rgb(25, 76, 142);
}
h4{
    font-family: var(--font-ui);
    font-size: 3rem;
    color: white;
    padding-left: 100px;
}
h5{
    margin-left: 700px;
    font-family: var(--font-ui);
    font-size: 1.5rem;
    color: rgb(0, 45, 68);
    justify-content: center;
}
h6 {
        font-family: var(--font-ui);
    font-size: 64px;
    font-weight: 400;
    color: white;
}
h7{
    font-family: var(--font-ui);
    font-size: 2rem;
    color: rgb(25, 76, 142);
    text-align: center;
    font-weight: 400;
}
p {
    font-family: var(--font-ui);
    color: rgb(0, 45, 68);
    font-weight: bolder;
}
.button {
    display: block;
    transform: none;
    font-size: 2rem;
    margin: auto;
    background: linear-gradient(90deg, #0f6bdc, #5aa5ff);
    width: 400px;
    padding: 1rem;
    border-radius: 999px;
    border: none;
    color: white;
    margin-bottom: 1rem;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.18);
    cursor: pointer;
}
.button:hover {
    background: linear-gradient(90deg, #0e5fc7, #4a95e8);
    box-shadow: 0 10px 25px rgba(15, 107, 220, 0.25);
}
.button:active {
    background: white;
    color: rgb(25, 76, 142);
    box-shadow: 0 10px 25px rgba(15, 107, 220, 0.25);
}
.popupButton {
    display: block;
    font-size: 1.5rem;
    margin: auto;
    background: linear-gradient(90deg, #0f6bdc, #5aa5ff);
    width: 200px;
    padding: 0.5rem;
    border-radius: 999px;
    border: none;
    color: white;
    margin-top: 1rem;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.18);
}
.popupButton:hover {
    background: linear-gradient(90deg, #0e5fc7, #4a95e8);
    box-shadow: 0 10px 25px rgba(15, 107, 220, 0.25);
}
.popupButton:active {
    background: white;
    color: rgb(25, 76, 142);
    box-shadow: 0 10px 25px rgba(15, 107, 220, 0.25);
}
.clock {
    font-family: var(--font-ui);
    font-size: 10rem;
    font-weight: bolder;
    color: black;
    text-align: center;
    padding-top: 8rem;
}
.container {
    display: flex;
    align-items: center;
    justify-content: center;
    vertical-align: auto;
}

@keyframes digit-code-shake-invalid {
    0%,
    100% {
        transform: translateX(0);
    }
    8% {
        transform: translateX(-0.55rem);
    }
    16% {
        transform: translateX(0.55rem);
    }
    24% {
        transform: translateX(-0.48rem);
    }
    32% {
        transform: translateX(0.48rem);
    }
    40% {
        transform: translateX(-0.38rem);
    }
    48% {
        transform: translateX(0.38rem);
    }
    56% {
        transform: translateX(-0.28rem);
    }
    64% {
        transform: translateX(0.28rem);
    }
    72% {
        transform: translateX(-0.18rem);
    }
    80% {
        transform: translateX(0.18rem);
    }
    88% {
        transform: translateX(-0.08rem);
    }
    96% {
        transform: translateX(0.08rem);
    }
}

/* Invalid submit — whole digit row shakes in unison (children’s own transform is unchanged) */
.container.digit-row--shake-invalid {
    animation: digit-code-shake-invalid 1s ease-in-out;
}

/* Invalid administrator login — username + password shell shakes like the code digits */
#adminSection .front-page-admin-inputs-wrap.admin-inputs-wrap--shake-invalid {
    animation: digit-code-shake-invalid 1s ease-in-out;
}

@keyframes digit-code-jump-success {
    0%,
    100% {
        top: 0;
    }
    45% {
        top: -0.72rem;
    }
}

/* Valid submit — digits jump one after another (top only; keeps each .digit transform: scale) */
.container.digit-row--jump-success > .digit:nth-child(1) {
    animation-name: digit-code-jump-success;
    animation-duration: 220ms;
    animation-timing-function: ease-out;
    animation-fill-mode: both;
}

.container.digit-row--jump-success > .digit:nth-child(2) {
    animation-name: digit-code-jump-success;
    animation-duration: 220ms;
    animation-timing-function: ease-out;
    animation-delay: 70ms;
    animation-fill-mode: both;
}

.container.digit-row--jump-success > .digit:nth-child(3) {
    animation-name: digit-code-jump-success;
    animation-duration: 220ms;
    animation-timing-function: ease-out;
    animation-delay: 140ms;
    animation-fill-mode: both;
}

.container.digit-row--jump-success > .digit:nth-child(4) {
    animation-name: digit-code-jump-success;
    animation-duration: 220ms;
    animation-timing-function: ease-out;
    animation-delay: 210ms;
    animation-fill-mode: both;
}

.container.digit-row--jump-success > .digit:nth-child(5) {
    animation-name: digit-code-jump-success;
    animation-duration: 220ms;
    animation-timing-function: ease-out;
    animation-delay: 280ms;
    animation-fill-mode: both;
}

/*
 * Session code row: flex gap 0. Collapsed↔expanded: 1.5rem margin-left + margin-right on the *opened* digit
 * (so both sides of an opened pill get the wide inset). Opened↔opened: --digit-expanded-pair-gap.
 */
.container:has(> .digit) {
    --digit-wide-pair-extra: 1.5rem;
    /* Opened↔opened: 50% more than the old 0.35rem row gap (0.35 × 1.5) */
    --digit-expanded-pair-gap: calc(0.35rem * 1.5);
    gap: 0;
    box-sizing: border-box;
}

/* Inside fixed-width shell only — Code Input page keeps shrink-wrapped .container */
#invigilatorSection .front-page-code-form-wrap .container:has(> .digit) {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

/* Opened digit immediately after a collapsed slot — wide space on the opened side (left) */
.container:has(> .digit):has(.digit:placeholder-shown)
    .digit:placeholder-shown:not(:focus) + .digit:is(:focus, :not(:placeholder-shown)) {
    margin-left: var(--digit-wide-pair-extra);
}

/* Opened digit immediately before a collapsed (empty, unfocused) one — wide space on the opened side (right) */
.container:has(> .digit):has(.digit:placeholder-shown)
    .digit:is(:focus, :not(:placeholder-shown)):has(+ .digit:placeholder-shown:not(:focus)) {
    margin-right: var(--digit-wide-pair-extra);
}

/* Opened digit immediately before another opened (filled and/or focused) */
.digit:is(:focus, :not(:placeholder-shown)):has(+ .digit:is(:focus, :not(:placeholder-shown))) {
    margin-right: var(--digit-expanded-pair-gap);
}

.digit {
    --digit-shadow-ambient: 0 14px 32px rgba(0, 0, 0, 0.2);
    --digit-shadow-accent: 0 4px 12px rgba(15, 107, 220, 0.32);
    color: #ffffff;
    outline: none;
    background: linear-gradient(90deg, #0f6bdc, #5aa5ff);
    width: 150px;
    height: 150px;
    text-align: center;
    padding: 0;
    margin: 0;
    font-size: 5.25rem;
    border-radius: 50%;
    /* Same border width in all states so layout box never changes when scaling or filling */
    border: 4.5px solid transparent;
    box-sizing: border-box;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition:
        transform 0.3s ease,
        margin 0.3s ease,
        background-color 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease,
        border-width 0.3s ease,
        box-shadow 0.3s ease;
    font-family: 'Reef' !important;
    /* Empty / unopened slots — 30% smaller than previous scale(0.32) */
    transform: scale(0.224);
    transform-origin: center;
    box-shadow: var(--digit-shadow-ambient), var(--digit-shadow-accent);
    flex: 0 0 150px;
    min-width: 150px;
    min-height: 150px;
    font-weight: 400;
}

/* Collapsed only: pull columns together (gap is already 0; layout box was still 150px wide each) */
.digit:placeholder-shown:not(:focus):not(:first-child) {
    margin-left: -2.35rem;
}

.digit:placeholder-shown:not(:focus):not(:last-child) {
    margin-right: -2.35rem;
}

.digit::after {
    content: '';
    position: absolute;
    bottom: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 2px;
    background-color: #0f6bdc;
    transition: background-color 0.3s ease;
}

/* Open (filled / focused): thicker ring */
.digit:not(:placeholder-shown):not(:focus) {
    border-width: 7px;
    border-color: var(--front-code-digit-open-ring);
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(90deg, #0f6bdc, #5aa5ff);
    transform: scale(1);
    transform-origin: center;
    box-shadow: var(--digit-shadow-ambient), var(--digit-shadow-accent);
}

.digit:not(:placeholder-shown):not(:focus)::after {
    background-color: rgba(15, 107, 220, 0.4);
}

.digit:focus {
    border-width: 7px;
    border-color: var(--front-code-digit-open-ring);
    border-radius: 50%;
    background: linear-gradient(90deg, #0f6bdc, #5aa5ff);
    color: #ffffff;
    caret-color: #ffffff;
    transform: scale(1);
    transform-origin: center;
    box-shadow: var(--digit-shadow-ambient), var(--digit-shadow-accent);
}

.digit:focus::after {
    background-color: rgba(15, 107, 220, 0.4);
}
.code {
    color: black;
    font-family: var(--font-ui);
    font-weight: bolder;
    letter-spacing: 2rem;
    padding-left: 24rem;
    padding-bottom: 6rem;
    width: 200px;
    text-align: center;
    outline: none;
    font-size: 12rem;
}
.studentName {
        font-family: var(--font-ui);
        width: 10rem;
        font-weight: bolder;
}
.space {
    width: 3rem;
}
.loginContainer {
    position: absolute;
    border-radius: .5rem;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    display: flex;
    flex-direction: column;
    width: 600px;
    height: 650px;
    align-items: center;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.loginContainer h2 {
    margin-bottom: 2rem;
}

.loginContainer .input-wrapper {
    width: 100%;
    max-width: 450px;
}

.input-wrapper {
    position: relative;
    width: 100%;
    max-width: 450px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 1rem;
    width: 20px;
    height: 20px;
    color: rgb(25, 76, 142);
    z-index: 1;
    pointer-events: none;
}

.textInput {
    width: 100%;
    color: #333;
    background-color: white;
    outline: none;
    border: 1px solid rgba(0, 96, 143, 0.2);
    padding: 1rem 1rem 1rem 3.5rem;
    border-radius: 999px;
    font-size: 1rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.textInput::placeholder {
    color: #999;
    font-size: 1rem;
}

.textInput:focus {
    border-color: rgb(0, 96, 143);
    box-shadow: 0 2px 12px rgba(0, 96, 143, 0.15);
    outline: none;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    transition: color 0.2s ease;
    z-index: 1;
}

.password-toggle:hover {
    color: rgb(25, 76, 142);
}

.password-toggle svg {
    width: 20px;
    height: 20px;
}
  .bar {
    display: none;
  }
a {
    text-decoration: none;
}
.invalidContainer,
.errorContainer,
.popupContainer {
    font-family: var(--font-ui);
}

.invalidContainer {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
}
.invalidContainer.active {
    display: flex;
    flex-direction: column;
    width: 400px;
    height: 200px;
    align-items: center;
    font-size: 1rem;
    padding: .5rem 2rem;
    border-radius: 1rem;
    background-color: white;
    border-color: rgb(0, 45, 68);
    border-width: .2rem;
    text-align: center;
    border-style: solid;
}
.errorContainer {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
}
.errorContainer.active {
    display: flex;
    flex-direction: column;
    width: 400px;
    height: 250px;
    align-items: center;
    font-size: 1rem;
    padding: .5rem 2rem;
    border-radius: 1rem;
    background-color: white;
    border-color: rgb(0, 45, 68);
    border-width: .2rem;
    text-align: center;
    border-style: solid;
}
.popupContainer {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
}
.popupContainer.active {
    display: flex;
    flex-direction: column;
    width: 400px;
    height: 200px;
    align-items: center;
    font-size: 1rem;
    padding: .5rem 2rem;
    border-radius: 1rem;
    background-color: white;
    border-color: rgb(0, 45, 68);
    border-width: .2rem;
    text-align: center;
    border-style: solid;
}
.errorContainer.active button,
.popupContainer.active button,
.invalidContainer.active button {
    display: block;
    transform: scale();
    font-size: 2rem;
    margin: auto;
    background: linear-gradient(90deg, #0f6bdc, #5aa5ff);
    width: 100px;
    height: 50px;
    padding: 1rem;
    border-radius: 999px;
    border: none;
    color: white;
    margin-bottom: 1rem;
    text-align: center; 
    padding-bottom: 3rem;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.18);
    cursor: pointer;
}
.errorContainer.active button:hover,
.popupContainer.active button:hover,
.invalidContainer.active button:hover {
    background: linear-gradient(90deg, #0e5fc7, #4a95e8);
    box-shadow: 0 10px 25px rgba(15, 107, 220, 0.25);
}
.errorContainer.active button:active,
.popupContainer.active button:active,
.invalidContainer.active button:active {
    background: white;
    color: rgb(25, 76, 142);
    box-shadow: 0 10px 25px rgba(15, 107, 220, 0.25);
}
.openPopupButton,
.closePopupButton {
    position: absolute;
    background-color: rgb(0, 96, 143);
    width: 1px;
    height: 1px;
    bottom: 0;
    left: 0;
    font-size: 0.1px;
}
.openPopupButton.active,
.closePopupButton.active{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4.5rem;
    font-weight: bolder;
    background-color: rgb(0, 45, 68);
    border: none;
    color: white;
    width: 350px;
    height: 350px;
    border-radius: 50%;
}
.openPopupButton.active:hover,
.closePopupButton.active:hover{
    background-color: white;
    color: rgb(0, 45, 68);
}
.examinee {
    border-radius: 2rem;
    width: 90%;
    margin-left: 50px;
    margin-bottom: 20px;
    height: 2rem;
    padding: .5rem 1rem;
    outline: none;
    align-items: center;
    border-style: solid;
    border-width: .2rem;
    border-color: rgb(0, 96, 143);
    color: rgb(25, 76, 142);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.examineeContainer {
    height: 350px;
    margin-left: 50px;
    display: flex;
    flex-direction: column;
    overflow-y:auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
}
.timer {
    font-family: var(--font-ui);
    font-size: 10rem;
    font-weight: bolder;
    color: black;
    margin-left: 100px;
    padding-top: 2rem;
}
.timeRemaining, .finishTime {
    font-family: var(--font-ui);
    font-size: 1rem;
    font-weight:bold;
    color: black;
}
.breakButton{
    background-color: rgb(0, 96, 143);
    border-radius: 1rem;
    font-weight: bolder;
    color: white;
    outline: none;
    border: none;
    padding: 0.5rem;
}
.breakButton:hover {
    background-color: rgb(0, 45, 68);
}
.breaks {
    background-color: rgb(0, 96, 143);
    width: 5rem;
    height: 2rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
}
.break1, .break2, .break3 {
    height: 1rem;
    padding: 0.1rem;
    width: 1rem;
    font-family: var(--font-ui);
    background-color:white;
    border-radius: 1rem;
    margin: 0.2rem;
    text-align: center;
}
.break1.active, .break2.active, .break3.active {
    background-color: rgb(0, 45, 68);
    color: rgb(0, 45, 68);
}

.backFog {
    position: absolute;
    width: 1px;
    height: 1px;
    bottom: 0;
    left: 0;
}
.backFog.active {
background-color: rgb(0, 96, 143);
opacity: 100%;
top: 0%;
left: 0%;
width: 100%;
height: 100%;
}
.grouping {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}
.spacer {
    margin: 0 10px;
}
.banner {
    background-color: rgb(0, 96, 143);
    margin-bottom: -2rem;
    margin-top: -9rem;
}
.sideClock {
    color: white;
    font-size: 2.5rem;
    font-family: var(--font-ui);
    font-weight: bolder;
    justify-content: center;
}
.preTestClock {
    position: absolute;
    font-size: 0.1rem;
    font-family: var(--font-ui);
    font-weight: bolder;
    justify-content: center;
}
.preTestClock.active {
    font-size: 2.5rem;
    color: white;
    margin-top: -18rem;
    margin-left: 32rem;
    font-size: 6rem;
}
.clockFace {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    border-style: solid;
    border-width: 0.5rem;
    background-color: white;
    border-color: rgb(0, 45, 68);
    position: relative;
}
.centre {
 position: absolute;   
 width: 12px;
 height: 12px;
 border-radius: 50%;
 background-color: rgb(0, 45, 68);
 top: 50%;
 left: 50%;
 transform: translate(-50%, -50%);
}
.hand {
    position: absolute;   
    top: 50%;
    left: 50%;
    transform-origin: bottom;
    border-radius: 3px;
}
.hour {
    width: 5px;
    height: 60px;
    margin-left: -2.5px;
    background-color: rgb(0, 45, 68);
}
.minute {
    width: 3px;
    height: 100px;
    margin-left: -1.5px;
    background-color: rgb(0, 45, 68);
}
.second {
    width: 1px;
    height: 110px;
    margin-left: -0.5px;
    background-color: rgb(0, 96, 143);
}
  .header {
    background-color: rgb(0, 96, 143);
    top: 0;
    left: 0;
    padding: .5rem;
    height: 100px;
    width: 100vw;
    position: fixed;
    display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  }
  .timeNotice {
    border-radius: 2rem;
    height: 2rem;
    width: 20rem;
    color: white;
    font-weight: bolder;
    font-family: var(--font-ui);
    align-content: center;
    justify-content: center;
    align-items: center;
    justify-items: center;
    align-self: center;
    justify-self: center;
    text-align: center;
  }
  .timeNotice.active {
    color: rgb(0, 45, 68);
    border-style: solid;
    border-width: 0.2rem;
    border-color: rgb(0, 45, 68);
  }

/*
 * Front marketing pages: vertical scroll must live on `html`, not `body`.
 * `overflow-x: hidden` on body forces overflow-y to compute to `auto` (CSS pairing),
 * so the scrollbar stays on body and ignores `scrollbar-gutter` on html — header chrome then sits under the track.
 * Clip horizontal overflow on `html` instead; body stays overflow-visible so root scrolling matches Session Review.
 */
html:has(.front-page-body) {
    scrollbar-gutter: stable;
    overflow-x: hidden;
}

/* Front page specific styling */
.front-page-body {
    margin: 0;
    /* Same scroll model as `.edit-session-page` / Session Review: viewport scroll, not a nested body scroller */
    min-height: 100vh;
    position: relative;
    font-family: var(--font-ui);
    background-color: var(--app-bg-blue-color, #c4dafb);
    background-image: var(
        --app-bg-blue-image,
        radial-gradient(circle at 0% 0%, #a8c9f8 0, transparent 55%),
        radial-gradient(circle at 0% 50%, #94bbf5 0, transparent 55%),
        radial-gradient(circle at 0% 100%, #94bbf5 0, transparent 55%),
        radial-gradient(circle at 100% 0%, #b0d2fb 0, transparent 55%),
        radial-gradient(circle at 100% 50%, #9ec5f8 0, transparent 55%),
        radial-gradient(circle at 100% 100%, #94bbf5 0, transparent 55%)
    );
    background-size: auto, auto, auto, auto, auto, auto;
    background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat;
    transition: background-color 0.55s ease;
}

/* Standard site wash fades in over blue when Administrator role is selected (scrolls with page, not viewport-fixed) */
.front-page-bg-standard-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-color: var(--app-bg-standard-color, #f5f8ff);
    background-image: var(
        --app-bg-standard-image,
        radial-gradient(circle at 0% 0%, #e0edff 0, transparent 55%),
        radial-gradient(circle at 0% 50%, #d0e2ff 0, transparent 55%),
        radial-gradient(circle at 0% 100%, #d0e2ff 0, transparent 55%),
        radial-gradient(circle at 100% 0%, #e6f0ff 0, transparent 55%),
        radial-gradient(circle at 100% 50%, #d8e5ff 0, transparent 55%),
        radial-gradient(circle at 100% 100%, #d0e2ff 0, transparent 55%)
    );
    background-size: auto, auto, auto, auto, auto, auto;
    background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat;
    opacity: 0;
    transition: opacity 0.55s ease;
}

.front-page-body.front-page-body--role-admin .front-page-bg-standard-overlay {
    opacity: 1;
}

/* Enlarged polka preview (3× dots, 4rem radius); mask position set from FrontJava.js */
.front-page-polka-magnify {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image: var(--app-front-polka-magnify-layer);
    background-size: 2rem 2rem;
    background-repeat: repeat;
    mask-image: radial-gradient(
        circle 4rem at var(--polka-cursor-x, -9999px) var(--polka-cursor-y, -9999px),
        #000 98%,
        transparent 100%
    );
    -webkit-mask-image: radial-gradient(
        circle 4rem at var(--polka-cursor-x, -9999px) var(--polka-cursor-y, -9999px),
        #000 98%,
        transparent 100%
    );
}

/* #sessionPaperAddLimitHint / dialogs: must stay viewport-fixed, not in flow at end of body */
.front-page-body > *:not(.front-page-bg-standard-overlay):not(.site-logo):not(.front-page-mode-indicator):not(#sessionPaperAddLimitHint):not(#forgotPasswordDialogBackdrop):not(#mobileDesktopRequiredBackdrop):not(.our-product-lightbox-backdrop) {
    position: relative;
    z-index: 1;
}

/* Top-right role badge — text swaps with the Invigilator / Administrator toggle */
.front-page-body .front-page-mode-indicator {
    position: absolute;
    top: 7.75rem;
    right: 3.25rem;
    z-index: 20;
    /* Match `.front-page-beta-tagline` (Invigilation Assistant), just smaller */
    font-family: var(--font-ui);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.32em;
    color: rgba(25, 76, 142, 0.55);
    line-height: 1.15;
    pointer-events: none;
    white-space: nowrap;
    transition: opacity 0.18s ease;
}

/* Fade point during a role switch — JS swaps the label while invisible */
.front-page-body .front-page-mode-indicator.front-page-mode-indicator--switching {
    opacity: 0;
}

/* Front page: absolute so the logo scrolls with the page (other pages use fixed in LogoFormat) */
.front-page-body .site-logo {
    position: absolute !important;
    top: 3.25rem;
    left: 3.25rem;
    z-index: 20;
    transform: translateY(-50%);
}

.front-page-body .site-logo:hover,
.front-page-body .site-logo:active {
    transform: translateY(-50%) scale(1.1);
}

.front-page-body .site-logo img {
    border-radius: 0.5rem;
    box-shadow: 0 4px 14px rgba(43, 76, 126, 0.15);
}

/*
 * Front header: same technique as Session Review / Edit Session — outer + inner shells are ::before/::after.
 * Nested absolutely positioned layers made the right-hand outer band easy to lose next to the scrollbar;
 * decorative pseudos match symmetric inset on both sides (see `.session-review-page .edit-session-header`).
 */
.front-page-header {
    position: relative;
    min-height: 6.5rem;
    display: flex;
    align-items: center;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
    background: transparent;
    overflow-x: clip;
    /* Was inner padding (inset 1.1rem + text indent): aligns with `.edit-session-header` layout */
    padding: 0.35rem 1.25rem 0.35rem calc(1.1rem + 6rem);
}

.front-page-header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.25) 0%, rgba(230, 240, 255, 0.5) 100%);
    box-shadow: 0 10px 36px rgba(0, 96, 143, 0.08), 0 4px 14px rgba(0, 0, 0, 0.06);
    border-radius: 0;
    outline: none;
    pointer-events: none;
}

.front-page-header::after {
    content: "";
    position: absolute;
    inset: 1.1rem;
    z-index: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(236, 245, 255, 0.92) 100%);
    border-radius: 1.25rem;
    pointer-events: none;
}

.front-page-header-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-width: 0;
}

/* Invigilator exam header still uses nested shells (rounded card margin); keep markup there */
.invigilator-header .front-page-header-layer-outer {
    position: absolute;
    inset: 0;
    width: auto;
    max-width: none;
    margin: 0;
    box-sizing: border-box;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.25) 0%, rgba(230, 240, 255, 0.5) 100%);
    box-shadow: 0 10px 36px rgba(0, 96, 143, 0.08), 0 4px 14px rgba(0, 0, 0, 0.06);
    border-radius: var(--invigilator-exam-node-radius, 0.75rem);
    outline: none;
    padding: 0;
}

.invigilator-header .front-page-header-layer-inner {
    --front-header-inset: 1.1rem;
    position: absolute;
    inset: var(--front-header-inset);
    z-index: 1;
    width: auto;
    max-width: none;
    margin: 0;
    box-sizing: border-box;
    min-height: calc(5.75rem - (2 * var(--front-header-inset)));
    display: flex;
    align-items: center;
    padding-left: calc(3.25rem - 1rem - var(--front-header-inset));
    padding-right: 1.5rem;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
    border-radius: var(--invigilator-exam-node-radius, 0.75rem);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(236, 245, 255, 0.92) 100%);
}

.front-page-header-about {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    /* Equal-width nav buttons (sized to the longest label) */
    min-width: 7rem;
    font-family: var(--font-ui);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.25;
    color: rgb(25, 76, 142);
    text-decoration: none;
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    border: 1px solid transparent;
    outline: none;
    background-color: #ffffff;
    background-image: none;
    box-shadow: 0 2px 10px rgba(0, 96, 143, 0.1);
    cursor: pointer;
    white-space: nowrap;
    transform-origin: center center;
    transition:
        box-shadow 0.22s ease,
        transform 0.2s ease,
        border-color 0.22s ease,
        background-color 0.22s ease,
        color 0.22s ease;
}

/* Match Exam Days `.exam-days-edit-period-link` / Administrator Settings */
.front-page-header-about:hover,
.front-page-header-about:visited:hover,
.front-page-header-about:active {
    background-color: rgb(0, 96, 143);
    background-image: none;
    border-color: rgba(0, 96, 143, 0.55);
    box-shadow:
        0 0 0 3px rgba(0, 96, 143, 0.12),
        0 18px 44px rgba(0, 96, 143, 0.22);
    transform: scale(1.01);
    color: #ffffff;
    text-decoration: none;
}

.front-page-header-about:focus-visible {
    outline: 2px solid rgb(0, 96, 143);
    outline-offset: 3px;
}

.front-page-header-about:visited:not(:hover):not(:active) {
    color: rgb(25, 76, 142);
}

.front-page-header-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.65rem;
    flex-shrink: 0;
    /* Room for lift shadow on hover */
    padding-block: 0.35rem;
    /* Match `.session-review-page .edit-session-header-actions` — keeps right cluster inset like Session Review */
    margin-right: 0.75rem;
}

/* Mobile menu toggle — hidden on desktop; shown only ≤768px */
.front-page-header-menu-toggle {
    display: none;
}

.front-page-header-text {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
}

.front-page-header-title {
    font-family: var(--font-ui);
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 700;
    color: rgb(25, 76, 142);
    letter-spacing: 0.02em;
}

.front-page-header-tagline {
    font-family: var(--font-ui);
    font-size: clamp(1rem, 2.35vw, 1.2rem);
    font-weight: 600;
    color: rgba(25, 76, 142, 0.55);
}

.front-page-header-divider {
    flex-shrink: 0;
    width: 1px;
    height: 1.25em;
    background: rgba(0, 96, 143, 0.22);
}

.front-page-background {
    /* Slightly under 100vh avoids subpixel / scrollbar gutter causing a 1-2px page scroll on the hero */
    min-height: calc(100vh - 12px);
    min-height: calc(100dvh - 12px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: clamp(1.2rem, 3vh, 2.35rem);
    box-sizing: border-box;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.front-page-container {
    text-align: center;
    padding: 7rem 2rem 2.5rem;
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 56rem;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Front hero — layered card around beta title, clock, subtitle, toggle, version */
.front-page-hero-layer-outer {
    width: 100%;
    max-width: 100%;
    margin: -6rem auto 0;
    padding-top: 7.15rem;
    padding-bottom: 2.2rem;
    overflow: visible;
}

.front-page-hero-layer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: visible;
    padding-top: clamp(2.5rem, 5vw, 3.5rem);
    padding-bottom: clamp(1.75rem, 3.5vw, 2.5rem);
}

.front-page-hero-content {
    transform: translateY(2rem);
}

.front-page-clock-wrap {
    position: relative;
    display: inline-block;
    max-width: 100%;
    margin-top: 2rem;
}

.front-page-beta-title {
    position: absolute;
    left: 50%;
    bottom: 100%;
    transform: translateX(-50%) translateY(2.5rem);
    margin-bottom: 0.45rem;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    font-family: var(--font-ui);
    font-size: clamp(2.35rem, 5.5vw, 3rem);
    font-weight: 700;
    white-space: nowrap;
    line-height: 1;
    pointer-events: none;
}

.front-page-beta-title-row {
    display: inline-flex;
    align-items: flex-end;
    justify-content: center;
    gap: 0.28em;
}

.front-page-beta-letters {
    display: inline-flex;
    align-items: flex-end;
    justify-content: center;
    gap: 0.28em;
}

.front-page-beta-wordmark {
    display: inline-block;
    font-family: 'Reef', var(--font-ui);
    font-size: clamp(2.95rem, 7vw, 3.85rem);
    font-weight: 700;
    letter-spacing: 0.06em;
    /* Same ink as `.front-page-header-title` / `.feedback-lead-wordmark` */
    color: rgb(25, 76, 142);
    background-image: none;
    -webkit-text-fill-color: unset;
}

.front-page-beta-letter {
    display: inline-block;
    font-size: clamp(2.35rem, 5.5vw, 3rem);
    /* Match Submit button background: linear-gradient(90deg, #0f6bdc, #5aa5ff) */
    background-image: linear-gradient(90deg, #0f6bdc, #5aa5ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.front-page-beta-tagline {
    display: block;
    margin-top: 1rem;
    font-family: var(--font-ui);
    font-size: clamp(1.4rem, 3.4vw, 1.85rem);
    font-weight: 600;
    letter-spacing: 0.32em;
    /* Match `.front-page-header-tagline` */
    color: rgba(25, 76, 142, 0.55);
    line-height: 1.15;
}

/* First paint — letters jump into place one after another (same stagger as code digits) */
@keyframes front-page-beta-letter-jump-in {
    0% {
        opacity: 0;
        transform: translateY(0.85rem) scale(0.82);
    }
    45% {
        opacity: 1;
        transform: translateY(-0.55rem) scale(1.06);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.front-page-beta-title--load-in .front-page-beta-wordmark,
.front-page-beta-title--load-in .front-page-beta-letter,
.front-page-beta-title--load-in .front-page-beta-tagline {
    animation: front-page-beta-letter-jump-in 0.44s cubic-bezier(0.34, 1.35, 0.56, 1) both;
}

.front-page-beta-title--load-in .front-page-beta-wordmark {
    animation-delay: 0ms;
}

.front-page-beta-title--load-in .front-page-beta-letter:nth-child(1) {
    animation-delay: 70ms;
}

.front-page-beta-title--load-in .front-page-beta-letter:nth-child(2) {
    animation-delay: 140ms;
}

.front-page-beta-title--load-in .front-page-beta-letter:nth-child(3) {
    animation-delay: 210ms;
}

.front-page-beta-title--load-in .front-page-beta-letter:nth-child(4) {
    animation-delay: 280ms;
}

.front-page-beta-title--load-in .front-page-beta-tagline {
    animation-delay: 350ms;
}

@media (prefers-reduced-motion: reduce) {
    .front-page-beta-title--load-in .front-page-beta-wordmark,
    .front-page-beta-title--load-in .front-page-beta-letter,
    .front-page-beta-title--load-in .front-page-beta-tagline {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

.front-page-clock {
    display: flex;
    flex-wrap: nowrap;
    align-items: baseline;
    justify-content: center;
    font-family: 'Reef' !important;
    font-weight: 900;
    font-size: clamp(5.75rem, 15vw, 9rem);
    padding-top: 0;
    transform: translateY(1rem);
    white-space: nowrap;
    /* Reef may not expose OpenType tnum; fixed `ch` slots below prevent jitter */
    font-variant-numeric: tabular-nums lining-nums;
    font-feature-settings: "tnum" 1, "lnum" 1;
}

/* Hide until JS paints the first real time (avoids a 00:00:00 flash). */
.front-page-clock:not(.front-page-clock--ready) {
    visibility: hidden;
}

/* Override global span/div font rule so clock glyphs actually use Reef */
.front-page-clock,
.front-page-clock span:not(.clock-timezone),
.front-page-clock #hrs,
.front-page-clock #min,
.front-page-clock #sec,
.front-page-clock #secSub {
    font-family: 'Reef' !important;
    font-weight: 900;
}

/* Fixed-width groups keep hours, minutes, and seconds from moving each other. */
.front-page-clock #hrs,
.front-page-clock #min,
.front-page-clock #sec {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: baseline;
    justify-content: center;
    width: 2ch;
    white-space: nowrap;
    text-align: center;
}

.front-page-clock #secSub {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: baseline;
    justify-content: center;
    width: 0.8ch;
    white-space: nowrap;
    text-align: center;
}

/* First paint — clock reveals one character at a time. */
@keyframes front-page-clock-char-in {
    0% {
        opacity: 0;
        transform: translateY(0.4em) scale(0.72);
    }
    60% {
        opacity: 1;
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.front-page-clock .clock-char,
.front-page-clock .clock-char--intro {
    display: inline-block;
    flex-shrink: 0;
    white-space: nowrap;
}

.front-page-clock .clock-char--intro {
    animation: front-page-clock-char-in 0.42s cubic-bezier(0.34, 1.35, 0.56, 1) both;
}

/* Each live digit keeps a permanent half-group slot. This prevents Reef's
   proportional glyph widths and kerning from moving a digit when its neighbour changes. */
.front-page-clock .clock-digit-slot {
    display: block;
    flex: 0 0 50%;
    width: 50%;
    min-width: 0;
    text-align: center;
    font-kerning: none;
}

.front-page-clock #secSub > .clock-digit-slot {
    flex-basis: 100%;
    width: 100%;
}

@media (prefers-reduced-motion: reduce) {
    .front-page-clock .clock-char--intro {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* Match Invigilator header clock (InvigilatorFormat.css .invigilator-clock-wrap) */
.front-page-clock .clock-sep {
    margin: 0 0.05em;
}

.front-page-clock .clock-sub {
    font-size: 0.35em;
    font-weight: normal;
    color: #888;
    margin-left: 0.1em;
    vertical-align: baseline;
}

.front-page-clock .clock-timezone {
    font-family: var(--font-ui) !important;
    font-size: 0.24em;
    font-weight: 700;
    color: rgb(25, 76, 142);
    margin-left: 0.28em;
    white-space: nowrap;
    align-self: baseline;
    position: relative;
    top: 0.6rem;
}

.front-page-subtitle {
    margin-top: 0.35rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-ui);
    font-size: clamp(1.95rem, 4.2vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: rgb(25, 76, 142);
}


.front-page-role-toggle {
    margin-top: 1.35rem;
    display: inline-flex;
    background: linear-gradient(90deg, #0f6bdc, #5aa5ff);
    border-radius: 999px;
    padding: 0.3rem;
    border: none;
    outline: none;
    box-shadow: 0 2px 8px rgba(0, 96, 143, 0.08);
    position: relative;
    isolation: isolate;
    transform-origin: center;
    box-sizing: border-box;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.front-page-role-toggle::before {
    content: "";
    position: absolute;
    top: 0.3rem;
    left: 0.3rem;
    width: 11rem;
    height: calc(100% - 0.6rem);
    border-radius: 999px;
    background: white;
    box-shadow: 0 10px 25px rgba(15, 107, 220, 0.25);
    transform: translateX(0);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 0;
}

.front-page-body.front-page-body--role-admin .front-page-role-toggle::before {
    transform: translateX(11rem);
}

.role-toggle-button {
    width: 11rem;
    padding: 0.9rem 1rem;
    border-radius: 999px;
    border: none;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: color 0.22s ease;
    background: transparent;
    cursor: pointer;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

.role-toggle-left {
    border-top-right-radius: 999px;
    border-bottom-right-radius: 999px;
}

.role-toggle-right {
    border-top-left-radius: 999px;
    border-bottom-left-radius: 999px;
}

.role-toggle-button.active {
    color: rgb(25, 76, 142);
}

.role-toggle-button:not(.active) {
    background: transparent;
    color: white;
}

.role-toggle-button:not(.active):hover {
    color: rgba(255, 255, 255, 0.88);
}

.role-toggle-button:focus-visible {
    outline: 2px solid rgb(0, 96, 143);
    outline-offset: 2px;
}

.front-page-role-toggle:hover,
.front-page-role-toggle:has(.role-toggle-button:focus-visible) {
    box-shadow: 0 4px 14px rgba(0, 96, 143, 0.14);
    transform: scale(1.05);
}

.front-page-version {
    margin: 0.75rem 0 0;
    /* Match `.front-page-mode-indicator`, just bolder */
    font-family: var(--font-ui);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.32em;
    color: rgba(25, 76, 142, 0.55);
    line-height: 1.15;
    text-align: center;
}

/* Front page decorative shapes (smooth, non-wobbly) */
.front-page-shape {
    position: absolute;
    pointer-events: none;
    z-index: 0;
    transition: opacity 0.55s ease;
}

/* Left vertical pill block */
.front-page-shape-left-pill {
    width: 320px;
    height: 640px;
    background: linear-gradient(180deg, #0c68d8, #043d7a);
    border-radius: 160px;
    left: -120px;
    top: -60px;
}

/* Left lower circle */
.front-page-shape-left-circle {
    width: 260px;
    height: 260px;
    background: radial-gradient(circle at 35% 35%, #4a92f0, #1a62c4);
    border-radius: 50%;
    left: -40px;
    bottom: 20px;
}

/* Right upper circle */
.front-page-shape-right-top-circle {
    width: 380px;
    height: 380px;
    background: radial-gradient(circle at 30% 30%, #dceaff, #8eb4ef);
    border-radius: 50%;
    right: -120px;
    top: -120px;
}

/* Right lower pill block */
.front-page-shape-right-bottom-pill {
    width: 420px;
    height: 260px;
    background: linear-gradient(180deg, #94bbf5, #bdd8fc);
    border-radius: 180px;
    right: -140px;
    bottom: -80px;
}

/* Second Section Styles */
.front-page-second-section {
    min-height: 0;
    padding: 1.35rem 2rem 1.15rem;
    position: relative;
    background: transparent;
}

.front-page-second-section > .content-section {
    padding-top: 0;
    padding-left: 2rem;
    padding-right: 2rem;
    padding-bottom: 1rem;
}

.front-page-second-section #invigilatorSection {
    padding-top: 0;
}

/* Card reveal when switching role (Invigilator <-> Administrator) */
@keyframes front-page-role-switch-in {
    from {
        opacity: 0;
        transform: translateY(0.9rem) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.front-page-second-section .content-section.front-page-role-switch-in .loginContainer {
    animation: front-page-role-switch-in 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@media (prefers-reduced-motion: reduce) {
    .front-page-second-section .content-section.front-page-role-switch-in .loginContainer {
        animation: none;
    }
}

/* Invigilator / admin cards: outer = footer gradient, inner = lighter band, white form panels */
.front-page-second-section #invigilatorSection .loginContainer.invigilator-login-container,
.front-page-second-section #adminSection .loginContainer {
    margin: -4rem auto 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.25) 0%, rgba(230, 240, 255, 0.5) 100%);
    border: none;
    box-shadow: 0 10px 36px rgba(0, 96, 143, 0.08), 0 4px 14px rgba(0, 0, 0, 0.06);
    border-radius: var(--fp-layer-outer-radius, 2rem);
    padding: 1.1rem;
    box-sizing: border-box;
    transition:
        transform 0.28s ease,
        box-shadow 0.28s ease,
        background-color 0.22s ease;
}

.front-page-second-section #invigilatorSection .loginContainer.invigilator-login-container:hover,
.front-page-second-section #invigilatorSection .loginContainer.invigilator-login-container:active,
.front-page-second-section #adminSection .loginContainer:hover,
.front-page-second-section #adminSection .loginContainer:active {
    transform: translateY(-3px);
    box-shadow:
        0 20px 48px rgba(0, 96, 143, 0.14),
        0 6px 18px rgba(0, 0, 0, 0.06);
}

.front-page-second-section .front-page-role-card-inner {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    padding: 1.2rem 1.35rem 1.05rem;
    border-radius: var(--fp-layer-inner-radius, 2rem);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(236, 245, 255, 0.92) 100%);
    border: none;
}

.front-page-second-section #invigilatorSection .loginContainer.invigilator-login-container h2,
.front-page-second-section #adminSection .loginContainer h2 {
    white-space: nowrap;
    font-size: clamp(1.45rem, 4.2vw, 2.65rem);
}

.front-page-second-section #invigilatorSection .loginContainer.invigilator-login-container h2 {
    margin-bottom: 0.65rem;
    font-weight: bolder;
}

.front-page-second-section #adminSection .loginContainer h2 {
    font-weight: bolder;
    margin-bottom: 1rem;
}

.front-page-second-section #invigilatorSection .front-page-code-submit {
    margin-top: 0.5rem;
}

/*
 * Floating hint card — mirrors EditSessionFormat `.new-session-add-limit-hint`.
 * Front + Code Input pages load MenuFormat only; sessionPaperLimits appends this to `document.body`.
 */
.new-session-add-limit-hint {
    position: fixed !important;
    z-index: 20000;
    box-sizing: border-box;
    max-width: min(14.5rem, calc(100vw - 1.25rem));
    padding: 0.5rem 0.75rem;
    font-family: var(--font-ui);
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.35;
    color: rgb(25, 76, 142);
    background: #ffffff;
    border: 1px solid rgba(0, 96, 143, 0.25);
    border-radius: 0.65rem;
    box-shadow:
        0 4px 14px rgba(0, 96, 143, 0.15),
        0 8px 28px rgba(43, 76, 126, 0.12);
    pointer-events: none;
}

.new-session-add-limit-hint::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -5px;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #ffffff;
    filter: drop-shadow(0 1px 0 rgba(0, 96, 143, 0.18));
}

.new-session-add-limit-hint.new-session-add-limit-hint--rest-break-gate {
    max-width: min(22rem, calc(100vw - 1.25rem));
}

.front-page-second-section #adminSection {
    min-height: 0;
    align-items: flex-start;
}

.front-page-footer {
    padding: 1.65rem 1.5rem 1.35rem;
    text-align: center;
    border-top: 1px solid rgba(0, 96, 143, 0.12);
    /* Same solid wash as `.front-page-body` (not a separate footer tint) */
    background-color: var(--app-bg-blue-color, #c4dafb);
    background-image: none;
    transition: background-color 0.55s ease;
}



.front-page-body.front-page-body--role-admin .front-page-footer {
    background-color: var(--app-bg-standard-color, #f5f8ff);
}

.front-page-footer-social {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 1.1rem;
    max-width: min(60rem, calc(100vw - 2rem));
    margin: 0 auto 1.35rem;
    padding: 0;
}

.front-page-footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    flex-shrink: 0;
    border-radius: 50%;
    border: none;
    /* Solid page background — matches `.front-page-body` / admin overlay, not footer tint */
    background-color: var(--app-bg-blue-color, #c4dafb);
    background-image: none;
    box-shadow: none;
    transition:
        box-shadow 0.22s ease,
        translate 0.2s ease,
        background-color 0.55s ease;
}

/* Administrator mode — same fill / shadow / hover as `#adminSection #loginBtn` */
.front-page-body.front-page-body--role-admin .front-page-footer-social-link {
    background-color: transparent;
    background-image: linear-gradient(90deg, #0f6bdc, #5aa5ff);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.18);
    transition:
        box-shadow 0.22s ease,
        translate 0.2s ease,
        transform 0.2s ease,
        background 0.22s ease,
        background-color 0.22s ease,
        background-image 0.22s ease;
}

.front-page-footer-social-link:hover {
    box-shadow: 0 0 0 2px rgba(0, 96, 143, 0.14);
    translate: 0 -2px;
}

.front-page-body.front-page-body--role-admin .front-page-footer-social-link:hover,
.front-page-body.front-page-body--role-admin .front-page-footer-social-link:active {
    background-color: transparent;
    background-image:
        linear-gradient(rgba(0, 96, 143, 0.12), rgba(0, 96, 143, 0.12)),
        linear-gradient(90deg, #0e5fc7, #4a95e8);
    box-shadow: 0 18px 44px rgba(0, 96, 143, 0.22);
    translate: 0 -2px;
    transform: scale(1.01);
}

.front-page-footer-social-link:focus-visible {
    outline: 2px solid rgb(0, 96, 143);
    outline-offset: 3px;
}

.front-page-footer-social-link img {
    display: block;
    width: 2.35rem;
    height: 2.35rem;
    object-fit: contain;
}

.front-page-footer-legal {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.55rem 0.65rem;
    max-width: min(60rem, calc(100vw - 2rem));
    margin: 0 auto;
    padding: 0;
}

.front-page-footer-legal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0.35rem 0.85rem;
    font-family: var(--font-ui);
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.25;
    color: rgb(25, 76, 142);
    background: rgba(255, 255, 255, 0.55);
    border: none;
    outline: none;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(0, 96, 143, 0.08);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease,
        translate 0.2s ease;
}

.front-page-footer-legal-btn:hover {
    color: rgb(0, 96, 143);
    background-color: rgba(255, 255, 255, 0.85);
    box-shadow: 0 4px 14px rgba(0, 96, 143, 0.12);
    translate: 0 -1px;
}

.front-page-footer-legal-btn:active {
    color: rgb(0, 45, 68);
    background-color: #fff;
    translate: 0;
}

.front-page-footer-legal-btn:focus,
.front-page-footer-legal-btn:focus-visible {
    outline: none;
}

.contact-optional-label {
    font-weight: 500;
    color: rgba(25, 76, 142, 0.55);
}

.legal-document-meta {
    margin: 0.75rem 0 0;
    font-family: var(--font-ui);
    font-size: 0.88rem;
    font-weight: 600;
    color: rgba(25, 76, 142, 0.58);
}

.legal-document-heading {
    margin: 1.35rem 0 0.55rem;
    font-family: var(--font-ui);
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.3;
    color: rgb(25, 76, 142);
}

.legal-document-heading:first-child {
    margin-top: 0;
}

.legal-document-list {
    margin: 0.35rem 0 0.85rem;
    padding-left: 1.25rem;
    font-family: var(--font-ui);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.65;
    color: rgba(25, 76, 142, 0.75);
}

.legal-document-list li + li {
    margin-top: 0.35rem;
}

.legal-document-link {
    color: rgb(15, 107, 220);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 0.12em;
}

.legal-document-link:hover {
    color: rgb(25, 76, 142);
}

a.front-page-footer-legal-btn {
    text-decoration: none;
}

.about-us-page {
    min-height: 100vh;
    min-height: 100dvh;
}

.our-product-page-bg,
.about-us-page-bg,
.front-utility-page-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-color: #f5f8ff;
    background-image:
        radial-gradient(circle at 12% 8%, rgba(126, 200, 255, 0.28) 0, transparent 42%),
        radial-gradient(circle at 88% 14%, rgba(90, 165, 255, 0.22) 0, transparent 38%),
        radial-gradient(circle at 50% 100%, rgba(15, 107, 220, 0.1) 0, transparent 48%);
}

.our-product-page,
.about-us-marketing-page,
.front-utility-page {
    position: relative;
}

.our-product-page .front-page-header,
.our-product-page .our-product-main,
.about-us-marketing-page .front-page-header,
.about-us-marketing-page .about-us-marketing-main,
.front-utility-page .front-page-header,
.front-utility-page .front-utility-main {
    position: relative;
    z-index: 1;
}

.about-us-main {
    max-width: min(60rem, calc(100vw - 2rem));
    margin: 0 auto;
    padding: 2rem 1rem 3.5rem;
    box-sizing: border-box;
    overflow: visible;
}

.our-product-main,
.about-us-marketing-main {
    max-width: min(68rem, calc(100vw - 2rem));
    margin: 0 auto;
    padding: 1.35rem 1rem 4rem;
    box-sizing: border-box;
    overflow: visible;
}

.about-us-main.front-utility-main {
    padding-top: 1.35rem;
    padding-bottom: 3.75rem;
}

.front-utility-back-link {
    position: absolute;
    top: 7.65rem;
    left: clamp(0.85rem, 2.5vw, 2.5rem);
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.35rem;
    padding: 0.45rem 0.9rem;
    border: none;
    border-radius: 999px;
    color: #fff;
    background: rgb(15, 107, 220);
    box-shadow: 0 4px 16px rgba(15, 107, 220, 0.28);
    font-family: var(--font-ui);
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

.front-utility-back-link:hover,
.front-utility-back-link:active {
    transform: translateY(-2px);
    background: rgb(0, 96, 143);
    box-shadow: 0 10px 28px rgba(0, 96, 143, 0.22);
}

.front-utility-back-link:focus-visible {
    outline: 2px solid rgb(0, 96, 143);
    outline-offset: 3px;
}

.front-utility-page:has(> .front-utility-back-link) .front-utility-main {
    padding-top: 4.35rem;
}

/* Footer pages (Data & Privacy, Acceptable Use, Contact Us, Devlog): raised toward header */
.privacy-page.front-utility-page:has(> .front-utility-back-link) .front-utility-main,
.acceptable-use-page.front-utility-page:has(> .front-utility-back-link) .front-utility-main,
.contact-page.front-utility-page:has(> .front-utility-back-link) .front-utility-main,
.devlog-page.front-utility-page:has(> .front-utility-back-link) .front-utility-main {
    padding-top: 0.35rem;
    margin-top: -2rem;
}

.privacy-page .front-utility-back-link,
.acceptable-use-page .front-utility-back-link,
.contact-page .front-utility-back-link,
.devlog-page .front-utility-back-link {
    /* Match content shift: 4rem + 2rem */
    top: calc(7.65rem - 6rem);
}

.about-us-title {
    margin: 0 0 1rem;
    font-family: var(--font-ui);
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    color: rgb(25, 76, 142);
}

.about-us-lead {
    margin: 0 0 1.25rem;
    font-family: var(--font-ui);
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(25, 76, 142, 0.88);
    line-height: 1.5;
}

/* Reef wordmark inline — same face as `.front-page-header-title` / FontFormat */
.feedback-lead-wordmark {
    font-family: 'Reef', var(--font-ui);
    font-size: calc(100% + 2px);
    font-weight: 700;
    letter-spacing: 0.02em;
    color: rgb(25, 76, 142);
}

.feedback-lead-beta {
    font-weight: 700;
}

.about-us-body {
    margin: 0;
    font-family: var(--font-ui);
    font-size: 1rem;
    font-weight: 500;
    color: rgba(25, 76, 142, 0.75);
    line-height: 1.65;
}

.resources-downloads {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.our-product-hero-layer-outer,
.our-product-feature-layer-outer,
.our-product-cta-layer-outer,
.about-us-hero-layer-outer,
.about-us-story-card-outer,
.about-us-values-layer-outer,
.about-us-cta-layer-outer,
.front-utility-intro-layer-outer,
.front-page-hero-layer-outer,
.resources-download-card,
.feedback-field-layer {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.34) 0%, rgba(230, 240, 255, 0.58) 100%);
    border: none;
    border-radius: var(--fp-layer-outer-radius, 2rem);
    padding: 1.15rem;
    box-shadow:
        0 14px 40px rgba(0, 96, 143, 0.1),
        0 4px 14px rgba(0, 0, 0, 0.05);
    transition:
        transform 0.28s ease,
        box-shadow 0.28s ease;
}

.our-product-hero-layer-outer:hover,
.our-product-hero-layer-outer:active,
.our-product-feature-layer-outer:hover,
.our-product-feature-layer-outer:active,
.our-product-cta-layer-outer:hover,
.our-product-cta-layer-outer:active,
.about-us-hero-layer-outer:hover,
.about-us-hero-layer-outer:active,
.about-us-story-card-outer:hover,
.about-us-story-card-outer:active,
.about-us-cta-layer-outer:hover,
.about-us-cta-layer-outer:active,
.front-utility-intro-layer-outer:hover,
.front-utility-intro-layer-outer:active,
.front-page-hero-layer-outer:hover,
.front-page-hero-layer-outer:active,
.resources-download-card:hover,
.resources-download-card:active,
.feedback-field-layer:hover,
.feedback-field-layer:active {
    transform: translateY(-3px);
    box-shadow:
        0 20px 48px rgba(0, 96, 143, 0.14),
        0 6px 18px rgba(0, 0, 0, 0.06);
}

.our-product-hero-layer-inner,
.our-product-feature-layer-inner,
.our-product-cta-layer-inner,
.about-us-hero-layer-inner,
.about-us-story-card-inner,
.about-us-values-layer-inner,
.about-us-cta-layer-inner,
.front-utility-intro-layer-inner,
.front-page-hero-layer-inner,
.resources-download-card-inner,
.feedback-field-layer-inner {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: clamp(1.35rem, 3vw, 2rem) clamp(1.25rem, 3vw, 1.85rem);
    /* Match `#invigilatorSection .front-page-code-form-wrap` (session digit shell) */
    border-radius: var(--fp-layer-inner-radius, 2rem);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.84) 0%, rgba(236, 245, 255, 0.96) 100%);
    border: none;
}

.our-product-hero-layer-inner,
.about-us-hero-layer-inner {
    text-align: center;
}

.our-product-eyebrow,
.marketing-eyebrow {
    margin: 0 0 0.55rem;
    font-family: var(--font-ui);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(25, 76, 142, 0.62);
}

.our-product-hero-title {
    margin: 0 0 0.85rem;
    font-family: var(--font-ui);
    font-size: clamp(2rem, 5.5vw, 3.15rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: rgb(25, 76, 142);
}

.our-product-hero-lead {
    margin: 0 auto 1.15rem;
    max-width: 40rem;
    font-family: var(--font-ui);
    font-size: clamp(1.02rem, 2.2vw, 1.18rem);
    font-weight: 500;
    line-height: 1.62;
    color: rgba(25, 76, 142, 0.82);
}

.our-product-pill-row,
.marketing-pill-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.55rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.our-product-pill,
.marketing-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-family: var(--font-ui);
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.25;
    color: rgb(25, 76, 142);
    background: rgba(255, 255, 255, 0.55);
    border: none;
    box-shadow: 0 2px 8px rgba(0, 96, 143, 0.08);
    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease,
        translate 0.2s ease;
}

.our-product-pill:hover,
.marketing-pill:hover {
    color: rgb(0, 96, 143);
    background-color: rgba(255, 255, 255, 0.85);
    box-shadow: 0 4px 14px rgba(0, 96, 143, 0.12);
    translate: 0 -1px;
}

.our-product-section-intro,
.marketing-section-intro {
    margin: 2.35rem 0 1.35rem;
    text-align: center;
}

.our-product-section-kicker,
.marketing-section-kicker {
    margin: 0 0 0.4rem;
    font-family: var(--font-ui);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(25, 76, 142, 0.55);
}

.our-product-section-title,
.marketing-section-title {
    margin: 0 0 0.65rem;
    font-family: var(--font-ui);
    font-size: clamp(1.45rem, 3.5vw, 2rem);
    font-weight: 800;
    line-height: 1.15;
    color: rgb(25, 76, 142);
}

.our-product-section-lead,
.marketing-section-lead {
    margin: 0 auto;
    max-width: 34rem;
    font-family: var(--font-ui);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.6;
    color: rgba(25, 76, 142, 0.72);
}

.our-product-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 0;
}

.our-product-feature-or {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    color: rgb(25, 76, 142);
    font-family: var(--font-ui);
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-align: center;
}

.our-product-feature-or::before,
.our-product-feature-or::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: rgba(25, 76, 142, 0.25);
}

.our-product-feature-layer-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.65fr) minmax(0, 1.6fr);
    gap: clamp(1rem, 2.5vw, 1.75rem);
    align-items: center;
    /* Room for the absolute step number in the top-left of every card */
    padding-top: calc(clamp(1.35rem, 3vw, 2rem) + 1.35rem);
}

.our-product-feature-layer-inner--reverse .our-product-feature-copy {
    order: 2;
}

.our-product-feature-layer-inner--reverse .our-product-feature-media {
    order: 1;
}

.our-product-feature-step {
    position: absolute;
    top: clamp(1.1rem, 2.4vw, 1.5rem);
    left: clamp(1.25rem, 3vw, 1.85rem);
    z-index: 2;
    margin: 0;
    font-family: var(--font-ui);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    color: rgba(15, 107, 220, 0.55);
}

.our-product-feature-title {
    margin: 0 0 0.7rem;
    font-family: var(--font-ui);
    font-size: clamp(1.2rem, 2.4vw, 1.45rem);
    font-weight: 800;
    line-height: 1.2;
    color: rgb(25, 76, 142);
}

.our-product-feature-text {
    margin: 0 0 0.95rem;
    font-family: var(--font-ui);
    font-size: 0.98rem;
    font-weight: 500;
    line-height: 1.65;
    color: rgba(25, 76, 142, 0.78);
}

.our-product-feature-points {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.our-product-feature-points li {
    position: relative;
    padding-left: 1.15rem;
    font-family: var(--font-ui);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.45;
    color: rgba(25, 76, 142, 0.88);
}

.our-product-feature-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #0f6bdc, #5aa5ff);
    box-shadow: 0 0 0 3px rgba(90, 165, 255, 0.18);
}

.our-product-feature-media {
    margin: 0;
    min-width: 0;
}

.our-product-feature-media img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--fp-layer-inner-radius, 2rem);
    border: 1px solid rgba(0, 96, 143, 0.14);
    box-shadow:
        0 16px 36px rgba(0, 96, 143, 0.14),
        0 4px 12px rgba(0, 0, 0, 0.06);
}

.our-product-feature-media img.our-product-feature-media__img--expandable {
    cursor: zoom-in;
    transition:
        transform 0.28s ease,
        box-shadow 0.28s ease,
        border-color 0.22s ease;
}

.our-product-feature-media img.our-product-feature-media__img--expandable:hover,
.our-product-feature-media img.our-product-feature-media__img--expandable:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(0, 96, 143, 0.28);
    box-shadow:
        0 22px 44px rgba(0, 96, 143, 0.18),
        0 6px 16px rgba(0, 0, 0, 0.08);
}

.our-product-feature-media img.our-product-feature-media__img--expandable:focus-visible {
    outline: 2px solid rgba(15, 107, 220, 0.55);
    outline-offset: 3px;
}

body.our-product-lightbox-open {
    overflow: hidden;
}

.our-product-lightbox-backdrop {
    position: fixed;
    inset: 0;
    z-index: 22000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    box-sizing: border-box;
    background: rgba(0, 45, 68, 0.55);
    cursor: zoom-out;
}

.our-product-lightbox-frame {
    position: relative;
    max-width: min(96vw, 72rem);
    max-height: calc(100dvh - 2.5rem);
    cursor: default;
}

.our-product-lightbox-image {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: calc(100dvh - 2.5rem);
    border-radius: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow:
        0 28px 64px rgba(0, 0, 0, 0.35),
        0 8px 24px rgba(0, 0, 0, 0.18);
    background: #fff;
}

.our-product-lightbox-close {
    position: absolute;
    top: 0.55rem;
    right: 0.55rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 999px;
    color: rgb(25, 76, 142);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.our-product-lightbox-close svg {
    width: 1.1rem;
    height: 1.1rem;
}

.our-product-lightbox-close:hover,
.our-product-lightbox-close:active {
    background: #fff;
    transform: scale(1.06);
}

.our-product-lightbox-close:focus-visible {
    outline: 2px solid rgba(15, 107, 220, 0.55);
    outline-offset: 2px;
}

.our-product-cta-layer-outer {
    margin-top: 2.25rem;
}

.our-product-cta-layer-inner,
.about-us-cta-layer-inner {
    text-align: center;
}

.our-product-cta-title,
.marketing-cta-title {
    margin: 0 0 0.65rem;
    font-family: var(--font-ui);
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 800;
    color: rgb(25, 76, 142);
}

.our-product-cta-text,
.marketing-cta-text {
    margin: 0 auto 1.15rem;
    max-width: 32rem;
    font-family: var(--font-ui);
    font-size: 0.98rem;
    font-weight: 500;
    line-height: 1.6;
    color: rgba(25, 76, 142, 0.76);
}

.our-product-cta-btn,
.marketing-cta-btn {
    display: inline-block;
    min-width: min(100%, 14rem);
    padding: 0.82rem 1.5rem;
    border-radius: 999px;
    border: none;
    background: linear-gradient(90deg, #0f6bdc, #5aa5ff);
    color: #fff;
    font-family: var(--font-ui);
    font-size: 1.02rem;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 14px 32px rgba(15, 107, 220, 0.28);
    transition:
        transform 0.2s ease,
        box-shadow 0.22s ease,
        background 0.22s ease,
        color 0.22s ease,
        border-color 0.22s ease;
}

.our-product-cta-btn:hover,
.marketing-cta-btn:hover,
.our-product-cta-btn:active,
.marketing-cta-btn:active {
    transform: scale(1.01);
    background-color: rgb(0, 96, 143);
    background-image: none;
    box-shadow:
        0 0 0 3px rgba(0, 96, 143, 0.12),
        0 18px 44px rgba(0, 96, 143, 0.22);
    color: #fff;
}

.our-product-cta-btn:focus-visible,
.marketing-cta-btn:focus-visible {
    outline: 2px solid rgba(15, 107, 220, 0.45);
    outline-offset: 3px;
}

@keyframes our-product-reveal-in {
    from {
        opacity: 0;
        translate: 0 1.1rem;
    }
    to {
        opacity: 1;
        translate: 0 0;
    }
}

.our-product-reveal,
.marketing-reveal,
.utility-reveal {
    animation: our-product-reveal-in 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.our-product-reveal--delay-1,
.marketing-reveal--delay-1,
.utility-reveal--delay-1 {
    animation-delay: 0.08s;
}

.our-product-reveal--delay-2,
.marketing-reveal--delay-2,
.utility-reveal--delay-2 {
    animation-delay: 0.16s;
}

.our-product-reveal--delay-3,
.marketing-reveal--delay-3,
.utility-reveal--delay-3 {
    animation-delay: 0.24s;
}

.utility-reveal--delay-4 {
    animation-delay: 0.32s;
}

.front-utility-intro-layer-outer {
    margin-bottom: 1.25rem;
}

.pricing-contact-layer-inner {
    text-align: center;
}

.front-utility-intro-title {
    margin: 0 0 0.65rem;
    font-family: var(--font-ui);
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 800;
    line-height: 1.15;
    color: rgb(25, 76, 142);
}

.front-utility-intro-lead {
    margin: 0;
    font-family: var(--font-ui);
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.6;
    color: rgba(25, 76, 142, 0.82);
}

.about-us-hero-layer-outer {
    margin-bottom: 0.25rem;
}

.about-us-hero-title {
    margin: 0 0 0.85rem;
    font-family: var(--font-ui);
    font-size: clamp(2rem, 5.5vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: rgb(25, 76, 142);
}

.about-us-hero-lead {
    margin: 0 auto 1.15rem;
    max-width: 42rem;
    font-family: var(--font-ui);
    font-size: clamp(1.02rem, 2.2vw, 1.12rem);
    font-weight: 500;
    line-height: 1.65;
    color: rgba(25, 76, 142, 0.82);
}

.about-us-story-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.15rem;
    margin-bottom: 1.5rem;
}

.about-us-story-card-outer {
    height: 100%;
}

.about-us-story-card-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.about-us-story-label {
    margin: 0;
    font-family: var(--font-ui);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(15, 107, 220, 0.55);
}

.about-us-story-title {
    margin: 0;
    font-family: var(--font-ui);
    font-size: 1.12rem;
    font-weight: 800;
    line-height: 1.25;
    color: rgb(25, 76, 142);
}

.about-us-story-text {
    margin: 0;
    font-family: var(--font-ui);
    font-size: 0.94rem;
    font-weight: 500;
    line-height: 1.62;
    color: rgba(25, 76, 142, 0.78);
}

.about-us-values-layer-outer {
    margin-bottom: 1.5rem;
}

.our-product-page .about-us-values-layer-outer {
    margin-top: 1.5rem;
}

.our-product-orgs-lead {
    margin: 0 auto;
    max-width: 44rem;
    font-family: var(--font-ui);
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.55;
    text-align: center;
    color: rgba(25, 76, 142, 0.78);
}

.about-us-values-title {
    margin: 0 0 1rem;
    font-family: var(--font-ui);
    font-size: clamp(1.25rem, 2.8vw, 1.55rem);
    font-weight: 800;
    color: rgb(25, 76, 142);
    text-align: center;
}

.about-us-values-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.about-us-values-list li {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.85rem 0.95rem;
    border-radius: var(--fp-layer-inner-radius, 2rem);
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(0, 96, 143, 0.1);
    box-shadow: 0 4px 14px rgba(0, 96, 143, 0.06);
    transition:
        transform 0.28s ease,
        box-shadow 0.28s ease,
        background-color 0.22s ease,
        border-color 0.22s ease;
}

.about-us-values-list li:hover,
.about-us-values-list li:active {
    background: #fff;
    border-color: rgba(0, 96, 143, 0.18);
    transform: translateY(-3px);
    box-shadow:
        0 20px 48px rgba(0, 96, 143, 0.14),
        0 6px 18px rgba(0, 0, 0, 0.06);
}

.our-product-page .about-us-values-list li {
    align-items: center;
    gap: 0.45rem;
    text-align: center;
}

.about-us-values-icon {
    display: none;
}

.our-product-page .about-us-values-icon,
.about-us-page .about-us-values-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    margin-bottom: 0.15rem;
    color: rgb(0, 96, 143);
}

.our-product-page .about-us-values-icon svg,
.about-us-page .about-us-values-icon svg {
    width: 100%;
    height: 100%;
}

.about-us-page .about-us-values-icon {
    width: 2.85rem;
    height: 2.85rem;
    margin-bottom: 0.25rem;
    border-radius: 999px;
    background: rgba(15, 107, 220, 0.08);
    box-shadow: inset 0 0 0 1px rgba(0, 96, 143, 0.1);
}

.about-us-page .about-us-values-icon svg {
    width: 1.45rem;
    height: 1.45rem;
}

.about-us-page .about-us-values-list li {
    align-items: center;
    text-align: center;
    gap: 0.45rem;
}

.about-us-values-list strong {
    font-family: var(--font-ui);
    font-size: 0.95rem;
    font-weight: 800;
    color: rgb(25, 76, 142);
}

.our-product-page .about-us-values-list strong {
    text-align: center;
}

.about-us-values-list span:not(.about-us-values-icon) {
    font-family: var(--font-ui);
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.5;
    color: rgba(25, 76, 142, 0.76);
}

.about-us-cta-layer-outer {
    margin-top: 0.25rem;
}

.about-us-cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem;
}

.marketing-cta-btn--secondary {
    background: rgba(255, 255, 255, 0.92);
    color: rgb(25, 76, 142);
    border: 1px solid rgba(0, 96, 143, 0.2);
    box-shadow: 0 8px 22px rgba(0, 96, 143, 0.1);
}

.marketing-cta-btn--secondary:hover {
    background-color: rgb(0, 96, 143);
    background-image: none;
    color: #fff;
    border-color: transparent;
    box-shadow:
        0 0 0 3px rgba(0, 96, 143, 0.12),
        0 18px 44px rgba(0, 96, 143, 0.22);
}

.marketing-cta-btn--secondary:active {
    background-color: rgb(0, 45, 68);
    background-image: none;
    color: #fff;
    border-color: transparent;
    box-shadow:
        0 0 0 3px rgba(0, 96, 143, 0.1),
        0 10px 28px rgba(0, 96, 143, 0.18);
}

@media (max-width: 820px) {
    .our-product-feature-layer-inner,
    .our-product-feature-layer-inner--reverse {
        grid-template-columns: 1fr;
    }

    .our-product-feature-layer-inner--reverse .our-product-feature-copy,
    .our-product-feature-layer-inner--reverse .our-product-feature-media {
        order: unset;
    }
}

@media (max-width: 900px) {
    .about-us-story-grid,
    .about-us-values-list {
        grid-template-columns: 1fr;
    }
}

/*
 * Public / marketing pages only (body.front-page-body).
 * Does not target administrator or invigilator app pages.
 */
@media (max-width: 768px) {
    .front-page-body {
        overflow-x: hidden;
    }

    /*
     * Header chrome: logo + hamburger sit inside the white card with equal inset
     * on all sides (previously top-heavy padding left both flush to the card bottom).
     */
    .front-page-body {
        --fp-m-header-inset: 0.5rem;
        --fp-m-header-pad: 0.55rem;
        --fp-m-header-chrome: 2.25rem;
        --fp-m-header-gap: 0.5rem;
        /* Even ring between outer shell and inner card on every layered container */
        --fp-m-layer-frame: 0.85rem;
    }

    .front-page-body .site-logo {
        top: calc(
            var(--fp-m-header-inset) + var(--fp-m-header-pad) + (var(--fp-m-header-chrome) / 2)
        ) !important;
        left: calc(var(--fp-m-header-inset) + var(--fp-m-header-pad)) !important;
        width: var(--fp-m-header-chrome);
        height: var(--fp-m-header-chrome);
        transform: translateY(-50%) !important;
    }

    .front-page-body .site-logo:hover,
    .front-page-body .site-logo:active {
        transform: translateY(-50%) scale(1.08) !important;
    }

    .front-page-body .site-logo img {
        width: 100%;
        height: 100%;
    }

    .front-page-body .front-page-mode-indicator {
        top: auto;
        bottom: 0.85rem;
        right: 1rem;
        left: 1rem;
        font-size: 0.72rem;
        letter-spacing: 0.18em;
        text-align: center;
        white-space: normal;
    }

    .front-page-header {
        min-height: 0;
        padding:
            calc(var(--fp-m-header-inset) + var(--fp-m-header-pad))
            calc(var(--fp-m-header-inset) + var(--fp-m-header-pad))
            calc(var(--fp-m-header-inset) + var(--fp-m-header-pad))
            calc(
                var(--fp-m-header-inset) + var(--fp-m-header-pad) + var(--fp-m-header-chrome) +
                    var(--fp-m-header-gap)
            );
        align-items: flex-start;
    }

    .front-page-header::after {
        inset: var(--fp-m-header-inset);
        border-radius: 0.85rem;
    }

    .front-page-header-inner {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.45rem 0.65rem;
        min-height: var(--fp-m-header-chrome);
    }

    .front-page-header-text {
        flex: 1 1 auto;
        min-width: 0;
        height: var(--fp-m-header-chrome);
        gap: 0.28rem 0.4rem;
        align-items: center;
        flex-wrap: nowrap;
        box-sizing: border-box;
    }

    .front-page-header-title {
        display: flex;
        align-items: center;
        font-size: 1.05rem;
        line-height: 1;
        flex-shrink: 0;
    }

    .front-page-header-divider {
        display: block;
        align-self: center;
        height: 0.85em;
        flex-shrink: 0;
    }

    .front-page-header-tagline {
        display: flex;
        align-items: center;
        font-size: clamp(0.68rem, 3.1vw, 0.82rem);
        line-height: 1;
        font-weight: 600;
        white-space: nowrap;
    }

    .front-page-header-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
        align-self: center;
        box-sizing: border-box;
        width: var(--fp-m-header-chrome);
        height: var(--fp-m-header-chrome);
        margin: 0;
        padding: 0;
        border: 1px solid rgba(0, 96, 143, 0.18);
        border-radius: 0.65rem;
        background: rgba(255, 255, 255, 0.85);
        color: rgb(25, 76, 142);
        box-shadow: 0 4px 12px rgba(0, 96, 143, 0.08);
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        transition:
            transform 0.22s cubic-bezier(0.34, 1.45, 0.64, 1),
            background-color 0.22s ease,
            border-color 0.22s ease,
            box-shadow 0.22s ease;
    }

    .front-page-header-menu-toggle:active {
        transform: scale(0.92);
    }

    .front-page-header--nav-open .front-page-header-menu-toggle {
        background: rgb(0, 96, 143);
        border-color: rgba(0, 96, 143, 0.55);
        color: #ffffff;
        box-shadow:
            0 0 0 3px rgba(0, 96, 143, 0.12),
            0 10px 22px rgba(0, 96, 143, 0.2);
    }

    .front-page-header-menu-toggle:focus-visible {
        outline: 2px solid rgba(15, 107, 220, 0.55);
        outline-offset: 2px;
    }

    .front-page-header-menu-toggle__bars {
        position: relative;
        display: block;
        width: 1.05rem;
        height: 0.72rem;
    }

    .front-page-header-menu-toggle__bars span {
        position: absolute;
        left: 0;
        display: block;
        height: 2px;
        width: 100%;
        border-radius: 999px;
        background: currentColor;
        transform-origin: center;
        transition:
            top 0.28s cubic-bezier(0.34, 1.2, 0.64, 1),
            bottom 0.28s cubic-bezier(0.34, 1.2, 0.64, 1),
            transform 0.28s cubic-bezier(0.34, 1.2, 0.64, 1),
            opacity 0.18s ease;
    }

    .front-page-header-menu-toggle__bars span:nth-child(1) {
        top: 0;
    }

    .front-page-header-menu-toggle__bars span:nth-child(2) {
        top: 50%;
        transform: translateY(-50%);
    }

    .front-page-header-menu-toggle__bars span:nth-child(3) {
        bottom: 0;
    }

    /* Open: both arms meet at the vertical center for a clean X */
    .front-page-header--nav-open .front-page-header-menu-toggle__bars span:nth-child(1) {
        top: 50%;
        transform: translateY(-50%) rotate(45deg);
    }

    .front-page-header--nav-open .front-page-header-menu-toggle__bars span:nth-child(2) {
        opacity: 0;
        transform: translateY(-50%) scaleX(0.35);
    }

    .front-page-header--nav-open .front-page-header-menu-toggle__bars span:nth-child(3) {
        top: 50%;
        bottom: auto;
        transform: translateY(-50%) rotate(-45deg);
    }

    .front-page-header-nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        flex: 1 0 100%;
        width: 100%;
        gap: 0.35rem;
        margin: 0;
        padding: 0;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-0.45rem);
        transition:
            max-height 0.34s cubic-bezier(0.22, 1, 0.36, 1),
            opacity 0.24s ease,
            transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
            margin 0.28s ease,
            padding 0.28s ease,
            visibility 0s linear 0.3s;
    }

    .front-page-header--nav-open .front-page-header-nav {
        max-height: 22rem;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
        margin: 0.15rem 0 0;
        padding: 0.35rem 0 0.15rem;
        transition:
            max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1),
            opacity 0.28s ease,
            transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
            margin 0.28s ease,
            padding 0.28s ease,
            visibility 0s linear 0s;
    }

    .front-page-header-about {
        width: 100%;
        box-sizing: border-box;
        justify-content: center;
        text-align: center;
        font-size: 0.9rem;
        padding: 0.65rem 0.85rem;
        border-radius: 0.7rem;
        opacity: 0;
        transform: translateY(-0.4rem) scale(0.98);
        transition:
            opacity 0.24s ease,
            transform 0.3s cubic-bezier(0.34, 1.35, 0.56, 1),
            background-color 0.22s ease,
            box-shadow 0.22s ease,
            color 0.22s ease,
            border-color 0.22s ease;
    }

    .front-page-header--nav-open .front-page-header-about {
        opacity: 1;
        transform: none;
    }

    .front-page-header--nav-open .front-page-header-about:nth-child(1) {
        transition-delay: 0.05s;
    }

    .front-page-header--nav-open .front-page-header-about:nth-child(2) {
        transition-delay: 0.09s;
    }

    .front-page-header--nav-open .front-page-header-about:nth-child(3) {
        transition-delay: 0.13s;
    }

    .front-page-header--nav-open .front-page-header-about:nth-child(4) {
        transition-delay: 0.17s;
    }

    .front-page-header--nav-open .front-page-header-about:nth-child(5) {
        transition-delay: 0.21s;
    }

    .front-page-background {
        min-height: auto;
        padding-top: 0.75rem;
        overflow: hidden;
    }

    .front-page-shape {
        opacity: 0.35;
        transform: scale(0.72);
        transform-origin: center;
    }

    .front-page-shape-left-pill,
    .front-page-shape-left-circle {
        transform-origin: left center;
    }

    .front-page-shape-right-top-circle,
    .front-page-shape-right-bottom-pill {
        transform-origin: right center;
    }

    .front-page-container {
        padding: 4.5rem 0.85rem 1.25rem;
    }

    .front-page-hero-layer-outer {
        /* Keep the upward pull into container padding; frame matches other mobile cards */
        margin-top: -3.5rem;
        padding: var(--fp-m-layer-frame);
    }

    .front-page-hero-layer-inner {
        /* Tighter inset so “Invigila BETA” can sit on one row */
        padding: 0.75rem 0.5rem;
    }

    .front-page-hero-content {
        transform: none;
        width: 100%;
    }

    .front-page-clock-wrap {
        margin-top: 0;
        max-width: 100%;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .front-page-beta-title {
        position: static;
        left: auto;
        bottom: auto;
        transform: none;
        margin: 0 0 0.4rem;
        font-size: clamp(1.35rem, 6.2vw, 1.85rem);
        white-space: nowrap;
        pointer-events: auto;
        max-width: 100%;
    }

    .front-page-beta-title-row {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: flex-end;
        justify-content: center;
        gap: 0.22em;
        max-width: 100%;
    }

    .front-page-beta-letters {
        gap: 0.18em;
    }

    .front-page-beta-wordmark {
        font-size: clamp(1.7rem, 8.5vw, 2.55rem);
        letter-spacing: 0.04em;
    }

    .front-page-beta-letter {
        font-size: clamp(1.45rem, 6.8vw, 2rem);
    }

    .front-page-clock {
        /* Grow to nearly the full hero content width */
        font-size: clamp(2.25rem, 16.5vw, 4.25rem);
        letter-spacing: 0.02em;
        max-width: 100%;
        justify-content: center;
    }

    .front-page-subtitle {
        margin-top: 0.65rem;
        margin-bottom: 0.65rem;
        font-size: clamp(1.05rem, 4.8vw, 1.45rem);
        padding-inline: 0.15rem;
    }


    .front-page-role-toggle {
        width: min(100%, 22rem);
        max-width: 100%;
        margin-top: 1rem;
    }

    .front-page-role-toggle::before {
        width: calc(50% - 0.3rem);
    }

    .front-page-body.front-page-body--role-admin .front-page-role-toggle::before {
        transform: translateX(100%);
    }

    .role-toggle-button {
        width: auto;
        flex: 1 1 0;
        min-width: 0;
        padding: 0.75rem 0.55rem;
        font-size: 0.92rem;
    }

    .front-page-version {
        margin-top: 0.55rem;
        font-size: 0.8rem;
        letter-spacing: 0.22em;
    }

    .front-page-second-section {
        padding: 0.75rem 0.85rem 1.5rem;
    }

    .front-page-second-section > .content-section {
        padding-left: 0;
        padding-right: 0;
        padding-bottom: 0.5rem;
    }

    .front-page-second-section #invigilatorSection .loginContainer.invigilator-login-container,
    .front-page-second-section #adminSection .loginContainer {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        height: auto;
        margin-top: -1.5rem;
        padding: var(--fp-m-layer-frame);
        border-radius: var(--fp-layer-outer-radius, 1.15rem);
        box-sizing: border-box;
        overflow: hidden;
    }

    .front-page-second-section .front-page-role-card-inner {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding: 1.15rem;
        border-radius: var(--fp-layer-inner-radius, 1.15rem);
        box-sizing: border-box;
        align-items: stretch;
    }

    .front-page-second-section #invigilatorSection .loginContainer.invigilator-login-container h2,
    .front-page-second-section #adminSection .loginContainer h2 {
        white-space: normal;
        font-size: clamp(1.15rem, 5.2vw, 1.55rem);
        text-align: center;
        max-width: 100%;
    }

    #invigilatorSection .front-page-code-form-wrap {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        margin-top: 0.65rem;
        margin-bottom: 0.75rem;
        padding: 0.65rem 0.35rem 0.85rem;
        border-radius: var(--fp-layer-inner-radius, 1.15rem);
        overflow-x: hidden;
        box-sizing: border-box;
    }

    #invigilatorSection .front-page-code-form-wrap .container:has(> .digit) {
        justify-content: center;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        margin-inline: auto;
        flex-wrap: nowrap;
    }

    #adminSection .front-page-admin-inputs-wrap {
        width: 100%;
        max-width: none;
        min-width: 0;
        align-self: stretch;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        padding: 0.75rem 0.45rem 0.85rem;
        border-radius: var(--fp-layer-inner-radius, 1.15rem);
        box-sizing: border-box;
    }

    #adminSection .front-page-admin-inputs-wrap .input-wrapper,
    #adminSection .loginContainer .input-wrapper {
        width: 100%;
        max-width: none;
        min-width: 0;
        align-self: stretch;
        min-height: 3.15rem;
        margin-bottom: 0.75rem;
        box-sizing: border-box;
    }

    #adminSection .front-page-admin-inputs-wrap .input-icon {
        left: 0.9rem;
        width: 1.15rem;
        height: 1.15rem;
    }

    #adminSection .front-page-admin-inputs-wrap .textInput {
        -webkit-appearance: none;
        appearance: none;
        width: 100%;
        max-width: 100%;
        min-height: 3.15rem;
        box-sizing: border-box;
        margin: 0;
        padding: 0.85rem 1rem 0.85rem 2.85rem;
        font-size: 16px;
        line-height: 1.25;
        border-radius: 999px;
        background-clip: padding-box;
    }

    #adminSection .front-page-admin-inputs-wrap .input-wrapper:has(.password-toggle) .textInput {
        padding-right: 3rem;
    }

    #adminSection .front-page-admin-inputs-wrap .password-toggle {
        right: 0.35rem;
        width: 2.5rem;
        height: 2.5rem;
        padding: 0;
        flex-shrink: 0;
    }

    #adminSection .front-page-admin-inputs-wrap .password-toggle svg {
        width: 1.15rem;
        height: 1.15rem;
    }

    #invigilatorSection .button.front-page-code-submit,
    #invigilatorSection #codeSubmitButton,
    #adminSection #loginBtn {
        width: min(100%, 18rem);
        max-width: 100%;
    }

    .front-page-footer {
        padding: 0.55rem 0.85rem 2.75rem;
    }

    .front-page-footer-legal {
        gap: 0.35rem;
    }

    .front-page-footer-legal-btn {
        font-size: 0.72rem;
        padding: 0.35rem 0.55rem;
    }

    /* Marketing / utility pages */
    .our-product-main,
    .about-us-marketing-main,
    .about-us-main,
    .about-us-main.front-utility-main {
        max-width: 100%;
        margin: 0;
        padding: 0.85rem 0.75rem 3rem;
        box-sizing: border-box;
    }

    .front-utility-back-link {
        top: 5.85rem;
        left: 0.75rem;
        min-height: 2.1rem;
        padding: 0.4rem 0.75rem;
        font-size: 0.85rem;
    }

    .our-product-hero-layer-outer,
    .our-product-feature-layer-outer,
    .our-product-cta-layer-outer,
    .about-us-hero-layer-outer,
    .about-us-story-card-outer,
    .about-us-values-layer-outer,
    .about-us-cta-layer-outer,
    .front-utility-intro-layer-outer,
    .front-page-hero-layer-outer,
    .resources-download-card,
    .feedback-field-layer {
        padding: var(--fp-m-layer-frame, 0.85rem);
        border-radius: var(--fp-layer-outer-radius, 1.15rem);
    }

    .our-product-hero-title,
    .about-us-hero-title,
    .front-utility-intro-title {
        font-size: clamp(1.55rem, 7vw, 2.15rem);
        line-height: 1.15;
    }

    .our-product-hero-lead,
    .about-us-hero-lead,
    .front-utility-intro-lead,
    .our-product-section-lead,
    .marketing-section-lead {
        font-size: 0.95rem;
        line-height: 1.55;
    }

    .our-product-section-intro,
    .marketing-section-intro {
        margin: 1.65rem 0 1rem;
    }

    .our-product-pill,
    .marketing-pill {
        font-size: 0.72rem;
        padding: 0.3rem 0.7rem;
    }

    .about-us-cta-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .marketing-cta-btn,
    .our-product-cta-btn,
    .resources-download-btn {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        text-align: center;
        justify-content: center;
    }

    .resources-downloads {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }

    .legal-document-list {
        padding-left: 1.05rem;
        font-size: 0.92rem;
    }

    .feedback-form {
        gap: 0.7rem;
    }

    .feedback-label {
        font-size: 0.92rem;
    }

    .feedback-textarea,
    .feedback-email-input {
        font-size: 1rem;
    }

    .mobile-desktop-required-dialog {
        max-width: min(22rem, calc(100vw - 1.5rem));
    }
}

@media (max-width: 420px) {
    .front-page-body {
        --fp-m-header-chrome: 2.1rem;
        --fp-m-header-pad: 0.45rem;
    }

    .front-page-header-tagline {
        display: flex;
        align-items: center;
        font-size: 0.64rem;
        line-height: 1;
    }

    .front-page-header-divider {
        display: block;
        align-self: center;
        height: 0.8em;
    }

    .role-toggle-button {
        font-size: 0.84rem;
        padding: 0.7rem 0.35rem;
    }

    .front-page-body .front-page-mode-indicator {
        letter-spacing: 0.12em;
        font-size: 0.68rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .front-page-header-menu-toggle,
    .front-page-header-menu-toggle__bars span,
    .front-page-header-nav,
    .front-page-header-about {
        transition: none !important;
        transition-delay: 0s !important;
    }

    .front-page-header-nav {
        transform: none;
    }

    .front-page-header:not(.front-page-header--nav-open) .front-page-header-nav {
        max-height: 0;
        opacity: 0;
        visibility: hidden;
    }

    .front-page-header--nav-open .front-page-header-nav {
        max-height: none;
        opacity: 1;
        visibility: visible;
    }

    .front-page-header-about,
    .front-page-header--nav-open .front-page-header-about {
        opacity: 1;
        transform: none;
    }

    .our-product-reveal,
    .our-product-reveal--delay-1,
    .our-product-reveal--delay-2,
    .our-product-reveal--delay-3,
    .marketing-reveal,
    .marketing-reveal--delay-1,
    .marketing-reveal--delay-2,
    .marketing-reveal--delay-3,
    .utility-reveal,
    .utility-reveal--delay-1,
    .utility-reveal--delay-2,
    .utility-reveal--delay-3,
    .utility-reveal--delay-4 {
        animation: none;
    }

    .our-product-hero-layer-outer,
    .our-product-feature-layer-outer,
    .our-product-cta-layer-outer,
    .about-us-hero-layer-outer,
    .about-us-story-card-outer,
    .about-us-values-layer-outer,
    .about-us-cta-layer-outer,
    .front-utility-intro-layer-outer,
    .front-page-hero-layer-outer,
    .resources-download-card,
    .feedback-field-layer,
    .about-us-values-list li {
        transition: none;
    }

    .our-product-cta-btn,
    .marketing-cta-btn {
        transition: none;
    }
}

.resources-download-card-inner {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.resources-download-title {
    margin: 0 0 0.65rem;
    font-family: var(--font-ui);
    font-size: 1.15rem;
    font-weight: 700;
    color: rgb(25, 76, 142);
}

/* Document icon replacing the manual description copy */
.resources-download-doc-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 0 1rem;
    /* Solid stroke + single opacity pass so overlapping strokes don't darken
       at intersections; net colour matches `.front-page-beta-tagline`. */
    color: rgb(25, 76, 142);
    opacity: 0.55;
}

.resources-download-doc-icon svg {
    width: clamp(3.25rem, 8vw, 4.25rem);
    height: auto;
}

.resources-download-btn {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-top: 0.85rem;
    padding: 0.85rem 1rem;
    border: none;
    border-radius: 999px;
    background: linear-gradient(90deg, #0f6bdc, #5aa5ff);
    color: #fff;
    font-family: var(--font-ui);
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.18);
    transition:
        box-shadow 0.22s ease,
        transform 0.2s ease,
        background 0.22s ease,
        color 0.22s ease;
}

.resources-download-btn:hover {
    background-color: rgb(0, 96, 143);
    background-image: none;
    box-shadow:
        0 0 0 3px rgba(0, 96, 143, 0.12),
        0 18px 44px rgba(0, 96, 143, 0.22);
    transform: scale(1.01);
    color: #fff;
}

.resources-download-btn:active {
    background-color: rgb(0, 45, 68);
    background-image: none;
    color: #fff;
    box-shadow:
        0 0 0 3px rgba(0, 96, 143, 0.1),
        0 10px 28px rgba(0, 96, 143, 0.18);
    transform: scale(1);
}

.resources-download-btn:focus-visible {
    outline: none;
    box-shadow: 0 18px 44px rgba(0, 96, 143, 0.22);
}

.feedback-form {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.feedback-field-layer-inner {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.feedback-submit-wrap {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 0.15rem;
    overflow: visible;
}

/* Shrink-wrap the pill; requirement notice is absolutely positioned below it (inside this zone). */
.feedback-submit-zone {
    position: relative;
    display: inline-block;
    vertical-align: top;
}

/* Same card style as EditSessionFormat `.new-session-add-limit-hint`; `--below` sits under submit */
.feedback-validation-hint {
    box-sizing: border-box;
    max-width: min(18rem, calc(100vw - 1.25rem));
    padding: 0.5rem 0.75rem;
    font-family: var(--font-ui);
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.35;
    color: rgb(25, 76, 142);
    background: #ffffff;
    border: 1px solid rgba(0, 96, 143, 0.25);
    border-radius: 0.65rem;
    box-shadow:
        0 4px 14px rgba(0, 96, 143, 0.15),
        0 8px 28px rgba(43, 76, 126, 0.12);
}

.feedback-validation-hint.feedback-validation-hint--below {
    position: absolute;
    left: 0;
    top: calc(100% + 0.5rem);
    width: 100%;
    max-width: none;
    transform: none;
    z-index: 20;
    pointer-events: auto;
    white-space: normal;
    text-align: center;
    box-sizing: border-box;
}

.feedback-validation-hint--below::after {
    display: none;
}

.feedback-label {
    font-family: var(--font-ui);
    font-size: 1rem;
    font-weight: 700;
    color: rgb(25, 76, 142);
}

/* Match EditSessionFormat `.session-student-name-input-grow` + `.optionEntry` hover/focus */
.feedback-input-grow {
    display: block;
    width: 100%;
    min-width: 0;
}

.feedback-textarea {
    box-sizing: border-box;
    width: 100%;
    min-height: 16rem;
    padding: 0.75rem 0.9rem;
    margin: 0;
    font-family: var(--font-ui);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.55;
    color: rgb(0, 45, 68);
    background: #ffffff;
    border: 1px solid rgba(0, 96, 143, 0.32);
    border-radius: 0.65rem;
    resize: vertical;
    box-shadow: 0 2px 8px rgba(0, 96, 143, 0.08);
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.feedback-textarea::placeholder {
    color: rgba(25, 76, 142, 0.45);
    font-weight: 500;
}

.feedback-textarea:focus {
    border-color: rgba(0, 96, 143, 0.5);
    box-shadow: 0 4px 14px rgba(0, 96, 143, 0.14);
    outline: none;
}

.feedback-hint {
    margin: 0;
    font-family: var(--font-ui);
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(25, 76, 142, 0.65);
}

.feedback-word-count {
    margin: 0;
    font-family: var(--font-ui);
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(25, 76, 142, 0.85);
}

.feedback-email-input {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    padding: 0.65rem 0.9rem;
    margin: 0;
    font-family: var(--font-ui);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.35;
    color: rgb(0, 45, 68);
    background: #ffffff;
    border: 1px solid rgba(0, 96, 143, 0.32);
    border-radius: 0.65rem;
    box-shadow: 0 2px 8px rgba(0, 96, 143, 0.08);
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.feedback-email-input::placeholder {
    color: rgba(25, 76, 142, 0.45);
    font-weight: 500;
}

.feedback-email-input:hover {
    border-color: rgba(0, 96, 143, 0.5);
    box-shadow: 0 4px 14px rgba(0, 96, 143, 0.14);
}

.feedback-email-input:focus {
    outline: none;
    border-color: rgba(0, 96, 143, 0.5);
    box-shadow: 0 4px 14px rgba(0, 96, 143, 0.14);
}

.feedback-submit.button {
    width: 400px;
    max-width: 100%;
    min-width: unset;
    margin: 0;
    display: block;
    padding: 1rem;
    box-sizing: border-box;
}

/* Same hover / active as `#invigilatorSection .button.front-page-code-submit` */
.feedback-form .button.feedback-submit {
    border: none;
    transition:
        box-shadow 0.22s ease,
        transform 0.2s ease,
        background 0.22s ease,
        color 0.22s ease;
}

.feedback-form .button.feedback-submit:hover:not(:disabled):not(.feedback-submit--blocked) {
    background-color: rgb(0, 96, 143);
    background-image: none;
    box-shadow:
        0 0 0 3px rgba(0, 96, 143, 0.12),
        0 18px 44px rgba(0, 96, 143, 0.22);
    transform: scale(1.01);
    color: #fff;
}

.feedback-form .button.feedback-submit:active:not(:disabled):not(.feedback-submit--blocked) {
    background-color: rgb(0, 45, 68);
    background-image: none;
    color: #fff;
    box-shadow:
        0 0 0 3px rgba(0, 96, 143, 0.1),
        0 10px 28px rgba(0, 96, 143, 0.18);
    transform: scale(1);
}

.feedback-form .button.feedback-submit:focus,
.feedback-form .button.feedback-submit:focus-visible {
    outline: none;
    box-shadow: 0 18px 44px rgba(0, 96, 143, 0.22);
}

.feedback-form .button.feedback-submit::-moz-focus-inner {
    border: 0;
}

.feedback-form .button.feedback-submit:disabled {
    opacity: 0.52;
    cursor: not-allowed;
    filter: grayscale(0.35);
    transform: none;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.feedback-form .button.feedback-submit.feedback-submit--blocked {
    opacity: 0.52;
    cursor: not-allowed;
    filter: grayscale(0.35);
    transform: none;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.feedback-form .button.feedback-submit.feedback-submit--blocked:hover,
.feedback-form .button.feedback-submit.feedback-submit--blocked:active {
    background: linear-gradient(90deg, #0f6bdc, #5aa5ff);
    background-image: linear-gradient(90deg, #0f6bdc, #5aa5ff);
    opacity: 0.52;
    cursor: not-allowed;
    filter: grayscale(0.35);
    transform: none;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
    color: white;
}

.feedback-status {
    margin: 0.25rem 0 0;
    min-height: 1.35em;
    font-family: var(--font-ui);
    font-size: 0.95rem;
    font-weight: 600;
}

.feedback-status--success {
    color: rgb(0, 120, 80);
}

.feedback-status--error {
    color: rgb(176, 32, 44);
}

.forgot-password-form {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Fit the short forgot-password flow in one viewport — no page scroll */
html:has(.forgot-password-page),
.forgot-password-page {
    height: 100%;
    overflow: hidden;
}

.forgot-password-page.front-utility-page {
    min-height: 100%;
    box-sizing: border-box;
}

.forgot-password-page .front-utility-back-link {
    top: 6.85rem;
}

.forgot-password-page.front-utility-page:has(> .front-utility-back-link) .front-utility-main,
.forgot-password-page .about-us-main.front-utility-main {
    padding-top: 2.15rem;
    padding-bottom: 1.25rem;
}

.forgot-password-page .front-utility-intro-layer-outer {
    margin-bottom: 0.75rem;
}

.forgot-password-page .front-utility-intro-layer-inner {
    padding: 0.95rem 1.15rem;
}

.forgot-password-page .front-utility-intro-title {
    margin-bottom: 0.4rem;
    font-size: clamp(1.45rem, 3.2vw, 1.9rem);
}

.forgot-password-page .front-utility-intro-lead {
    font-size: 0.95rem;
    line-height: 1.45;
}

.forgot-password-page .forgot-password-form {
    gap: 0.65rem;
}

.forgot-password-page .feedback-field-layer-inner {
    padding: 0.95rem 1.15rem;
    gap: 0.4rem;
}

.forgot-password-page .feedback-submit-wrap {
    margin-top: 0;
}

.forgot-password-page .feedback-form .button.feedback-submit {
    margin-top: 0.15rem;
    margin-bottom: 0;
}

/* Same dialog language as offline-mode / exam-period confirm popups */
.forgot-password-dialog-backdrop,
#forgotPasswordDialogBackdrop.forgot-password-dialog-backdrop {
    position: fixed;
    inset: 0;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 21000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    box-sizing: border-box;
    background: rgba(0, 45, 68, 0.42);
}

.forgot-password-dialog {
    box-sizing: border-box;
    width: 100%;
    max-width: min(22rem, calc(100vw - 2.5rem));
    padding: 1rem 1.1rem;
    font-family: var(--font-ui);
    color: rgb(25, 76, 142);
    background: #ffffff;
    border: 1px solid rgba(0, 96, 143, 0.25);
    border-radius: 0.75rem;
    box-shadow:
        0 4px 14px rgba(0, 96, 143, 0.15),
        0 10px 32px rgba(43, 76, 126, 0.14);
}

.forgot-password-dialog__title {
    margin: 0 0 0.55rem;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

.forgot-password-dialog__message {
    margin: 0 0 0.9rem;
    font-size: 0.86rem;
    font-weight: 500;
    line-height: 1.45;
    color: rgba(25, 76, 142, 0.92);
}

.forgot-password-dialog__actions {
    display: flex;
    justify-content: flex-end;
}

.forgot-password-dialog__btn {
    font-family: var(--font-ui);
    font-size: 0.86rem;
    font-weight: 600;
    padding: 0.55rem 1.15rem;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: box-shadow 0.2s ease, transform 0.18s ease, background 0.2s ease, color 0.2s ease;
}

.forgot-password-dialog__btn--primary {
    color: #fff;
    background: linear-gradient(90deg, #0f6bdc, #5aa5ff);
    border-color: rgba(0, 96, 143, 0.2);
    box-shadow: 0 4px 14px rgba(15, 107, 220, 0.22);
}

.forgot-password-dialog__btn--primary:hover {
    background-color: rgb(0, 96, 143);
    background-image: none;
    transform: scale(1.01);
}

.forgot-password-dialog__btn:focus-visible {
    outline: 2px solid rgb(0, 96, 143);
    outline-offset: 2px;
}

/* Front page — mobile block for login / session code (uses dialog styles above) */
.mobile-desktop-required-backdrop[hidden] {
    display: none !important;
}

.content-section {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

#adminSection {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 12px);
    min-height: calc(100dvh - 12px);
    background: transparent;
}

#adminSection .loginContainer,
#createAccountSection .loginContainer,
#invigilatorSection .loginContainer {
    position: relative;
    transform: none;
    top: auto;
    left: auto;
    margin: 0 auto;
}

/* Admin / create-account cards: no fixed 650px height â€” that + .button { margin: auto } caused huge gap above Login */
#adminSection .loginContainer,
#createAccountSection .loginContainer {
    height: auto;
    min-height: 0;
    justify-content: flex-start;
}

#adminSection .loginContainer .input-wrapper:last-of-type,
#createAccountSection .loginContainer .input-wrapper:last-of-type {
    margin-bottom: 1rem;
}

#adminSection .loginContainer .button,
#createAccountSection .loginContainer .button {
    margin: 0.85rem auto 0.35rem;
}

/* Administrator Login — same base / hover / active as invigilator code submit */
#adminSection #loginBtn {
    width: 400px;
    max-width: 100%;
    min-width: unset;
    padding: 1rem;
    border-radius: 999px;
    box-sizing: border-box;
    border: none;
    background: linear-gradient(90deg, #0f6bdc, #5aa5ff);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.18);
    transition:
        box-shadow 0.22s ease,
        transform 0.2s ease,
        background 0.22s ease,
        color 0.22s ease;
}

#adminSection #loginBtn:hover:not(:disabled) {
    background-color: rgb(0, 96, 143);
    background-image: none;
    box-shadow:
        0 0 0 3px rgba(0, 96, 143, 0.12),
        0 18px 44px rgba(0, 96, 143, 0.22);
    transform: scale(1.01);
    color: #fff;
}

#adminSection #loginBtn:active:not(:disabled) {
    background-color: rgb(0, 45, 68);
    background-image: none;
    color: #fff;
    box-shadow:
        0 0 0 3px rgba(0, 96, 143, 0.1),
        0 10px 28px rgba(0, 96, 143, 0.18);
    transform: scale(1);
}

#adminSection #loginBtn:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 3px rgba(0, 96, 143, 0.12),
        0 18px 44px rgba(0, 96, 143, 0.22);
}

#invigilatorSection .loginContainer.invigilator-login-container {
    width: 960px;
    height: auto;
    padding-bottom: 1.5rem;
}

#invigilatorSection .loginContainer.invigilator-login-container h2 {
    white-space: nowrap;
    margin-bottom: 1rem;
    font-weight: bolder;
}

#invigilatorSection .front-page-code-form-wrap,
#adminSection .front-page-admin-inputs-wrap {
    padding: 0.5rem;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    border-radius: var(--fp-layer-inner-radius, 2rem);
    background: #fff;
    border: 1px solid rgba(0, 96, 143, 0.1);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
}

#invigilatorSection .front-page-code-form-wrap {
    /* Fixed max footprint — never grows when boundary margins open (5 slots + 4 wide gaps + padding) */
    width: min(100%, calc(5 * 150px + 4 * 1.5rem + 1rem));
    min-width: min(100%, calc(5 * 150px + 4 * 1.5rem + 1rem));
    max-width: 100%;
    box-sizing: border-box;
    margin-top: 1rem;
    margin-bottom: 1rem;
    border: none;
    outline: none;
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.18);
    transition:
        transform 0.28s ease,
        box-shadow 0.28s ease,
        background-color 0.22s ease;
}

#invigilatorSection .front-page-code-form-wrap:hover,
#invigilatorSection .front-page-code-form-wrap:active {
    background-color: #fff;
    transform: translateY(-3px);
    box-shadow:
        0 20px 48px rgba(0, 96, 143, 0.14),
        0 6px 18px rgba(0, 0, 0, 0.06);
}

#adminSection .front-page-admin-inputs-wrap {
    width: 100%;
    max-width: 500px;
    padding: 1.5rem 2.8rem;
    /* No border / focus ring on shell — depth from shadow only (fields keep their own chrome) */
    border: none;
    outline: none;
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.18);
    transition:
        transform 0.28s ease,
        box-shadow 0.28s ease,
        background-color 0.22s ease;
}

#adminSection .front-page-admin-inputs-wrap:hover,
#adminSection .front-page-admin-inputs-wrap:active {
    background-color: #fff;
    transform: translateY(-3px);
    box-shadow:
        0 20px 48px rgba(0, 96, 143, 0.14),
        0 6px 18px rgba(0, 0, 0, 0.06);
}

/* Administrator username / password — border/shadow on field */
#adminSection .front-page-admin-inputs-wrap .input-wrapper {
    max-width: none;
}

#adminSection .front-page-admin-inputs-wrap .textInput {
    border: 1px solid rgba(0, 96, 143, 0.32);
    box-shadow: 0 2px 8px rgba(0, 96, 143, 0.08);
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

#adminSection .front-page-admin-inputs-wrap .textInput:hover,
#adminSection .front-page-admin-inputs-wrap .textInput:focus {
    border-color: rgba(0, 96, 143, 0.5);
    box-shadow: 0 4px 14px rgba(0, 96, 143, 0.14);
}

#adminSection .front-page-admin-inputs-wrap .textInput:focus-visible {
    outline: 2px solid rgb(0, 96, 143);
    outline-offset: 2px;
}

#adminSection .front-page-forgot-password-btn {
    display: block;
    margin: 0.85rem auto 0;
    padding: 0.5rem 1.25rem;
    font-family: var(--font-ui);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.25;
    color: rgb(25, 76, 142);
    background: transparent;
    border: 1px solid rgba(0, 96, 143, 0.28);
    border-radius: 999px;
    box-shadow: none;
    cursor: pointer;
    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

#adminSection .front-page-forgot-password-btn:hover {
    color: rgb(0, 96, 143);
    background-color: rgba(0, 96, 143, 0.06);
    border-color: rgba(0, 96, 143, 0.45);
    box-shadow: 0 4px 14px rgba(0, 96, 143, 0.12);
}

#adminSection .front-page-forgot-password-btn:active {
    color: rgb(0, 45, 68);
    background-color: rgba(0, 96, 143, 0.1);
    border-color: rgba(0, 96, 143, 0.55);
}

#adminSection .front-page-forgot-password-btn:focus-visible {
    outline: 2px solid rgb(0, 96, 143);
    outline-offset: 3px;
}

#invigilatorSection .container {
    min-height: 0;
    margin-bottom: 0;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    width: 100%;
}

#invigilatorSection .container .digit {
    transition:
        transform 0.3s ease,
        margin 0.3s ease,
        box-shadow 0.3s ease,
        background-color 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease,
        border-width 0.3s ease;
}

#invigilatorSection .container .digit::after {
    transition: background-color 0.3s ease;
}

/* Empty slots: flat solid discs by default; hover/active restore lift treatment. */
#invigilatorSection .digit:placeholder-shown:not(:focus) {
    background: rgb(15, 107, 220);
    box-shadow: var(--digit-shadow-ambient), var(--digit-shadow-accent);
    border-color: transparent;
}

#invigilatorSection .digit:placeholder-shown:not(:focus)::after {
    display: none;
}

#invigilatorSection .digit:placeholder-shown:hover:not(:focus):not(:disabled),
#invigilatorSection .digit:placeholder-shown:active:not(:focus):not(:disabled) {
    border-color: transparent;
    background: rgb(15, 107, 220);
}

#invigilatorSection .digit:placeholder-shown:hover:not(:focus):not(:disabled) {
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.22),
        0 8px 18px rgba(0, 96, 143, 0.38);
    transform: translateY(-10px) scale(0.228);
    transform-origin: center;
}

#invigilatorSection .digit:placeholder-shown:hover:not(:focus):not(:disabled)::after {
    display: block;
    background-color: rgba(0, 96, 143, 0.35);
}

#invigilatorSection .digit:placeholder-shown:active:not(:focus):not(:disabled) {
    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.2),
        0 5px 14px rgba(0, 96, 143, 0.34);
    transform: translateY(-4px) scale(0.224);
    transform-origin: center;
}

/* Filled or focused: same flat blue + rim */
#invigilatorSection .digit:focus,
#invigilatorSection .digit:not(:placeholder-shown):not(:focus) {
    border-width: 7px;
    border-color: var(--front-code-digit-open-ring);
    box-shadow: var(--digit-shadow-ambient), var(--digit-shadow-accent);
    background: rgb(15, 107, 220);
    color: #ffffff;
    caret-color: #ffffff;
}

#invigilatorSection .digit:focus::after,
#invigilatorSection .digit:not(:placeholder-shown):not(:focus)::after {
    background-color: rgba(0, 96, 143, 0.4);
}

/* Invigilator code submit — same base / :hover:not(:disabled) / :active:not(:disabled) as NewExamPeriodFormat .new-exam-period-submit */
#invigilatorSection .button.front-page-code-submit,
#invigilatorSection #codeSubmitButton {
    width: 400px;
    max-width: 100%;
    min-width: unset;
    margin: 0.75rem auto 0;
    margin-bottom: 0;
    padding: 1rem;
    border-radius: 999px;
    box-sizing: border-box;
    border: none;
    background: linear-gradient(90deg, #0f6bdc, #5aa5ff);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.18);
    transition:
        box-shadow 0.22s ease,
        transform 0.2s ease,
        background 0.22s ease,
        color 0.22s ease;
}

#invigilatorSection .button.front-page-code-submit:hover:not(:disabled),
#invigilatorSection #codeSubmitButton:hover:not(:disabled) {
    background-color: rgb(0, 96, 143);
    background-image: none;
    box-shadow:
        0 0 0 3px rgba(0, 96, 143, 0.12),
        0 18px 44px rgba(0, 96, 143, 0.22);
    transform: scale(1.01);
    color: #fff;
}

#invigilatorSection .button.front-page-code-submit:active:not(:disabled),
#invigilatorSection #codeSubmitButton:active:not(:disabled) {
    background-color: rgb(0, 45, 68);
    background-image: none;
    color: #fff;
    box-shadow:
        0 0 0 3px rgba(0, 96, 143, 0.1),
        0 10px 28px rgba(0, 96, 143, 0.18);
    transform: scale(1);
}

/* No default browser focus ring (often dark/black) on invigilator code submit */
#invigilatorSection .front-page-code-submit,
#invigilatorSection #codeSubmitButton {
    outline: none;
}

#invigilatorSection .front-page-code-submit:focus-visible,
#invigilatorSection #codeSubmitButton:focus-visible {
    outline: none;
    box-shadow: 0 18px 44px rgba(0, 96, 143, 0.22);
}

#invigilatorSection .front-page-code-submit:focus:not(:focus-visible),
#invigilatorSection .front-page-code-submit:active,
#invigilatorSection #codeSubmitButton:focus:not(:focus-visible),
#invigilatorSection #codeSubmitButton:active {
    outline: none;
}

#invigilatorSection .front-page-code-submit::-moz-focus-inner,
#invigilatorSection #codeSubmitButton::-moz-focus-inner {
    border: 0;
}

#createAccountSection {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: transparent;
}

#invigilatorSection {
    padding-top: 3.5rem;
}

#invigilatorSection .header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
}

/*
 * Mobile: invigilator code digits + administrator login — keep empty/open scale
 * relationship and translateY+scale lift countereffect (must pair scale with lift
 * or collapsed discs jump to full size). Placed after desktop digit rules so it wins.
 */
@media (max-width: 768px) {
    .front-page-second-section,
    .front-page-second-section > .content-section {
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .front-page-second-section #invigilatorSection .loginContainer.invigilator-login-container,
    .front-page-second-section #adminSection .loginContainer {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        height: auto;
        box-sizing: border-box;
    }

    #invigilatorSection .front-page-code-form-wrap {
        /* Fit 5 layout slots in ~320–360px content width after card padding */
        --digit-size: clamp(2.4rem, 14vw, 3.15rem);
        --digit-collapsed-pull: calc(var(--digit-size) * -0.251);
        --digit-lift-hover: calc(var(--digit-size) * -0.067);
        --digit-lift-active: calc(var(--digit-size) * -0.027);
        width: 100%;
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
    }

    #adminSection .front-page-admin-inputs-wrap {
        width: 100%;
        max-width: none;
        min-width: 0;
        align-self: stretch;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        padding: 0.75rem 0.45rem 0.85rem;
        box-sizing: border-box;
    }

    #invigilatorSection .front-page-code-form-wrap .container:has(> .digit) {
        --digit-wide-pair-extra: calc(var(--digit-size) * 0.1);
        --digit-expanded-pair-gap: calc(var(--digit-size) * 0.04);
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    #invigilatorSection .front-page-code-form-wrap .digit {
        width: var(--digit-size);
        height: var(--digit-size);
        flex: 0 0 var(--digit-size);
        min-width: var(--digit-size);
        min-height: var(--digit-size);
        font-size: calc(var(--digit-size) * 0.56);
        border-width: calc(var(--digit-size) * 0.03);
        transform: scale(0.224);
        transform-origin: center;
    }

    #invigilatorSection .front-page-code-form-wrap .digit::after {
        width: var(--digit-size);
        bottom: calc(var(--digit-size) * -0.093);
    }

    #invigilatorSection .front-page-code-form-wrap .digit:placeholder-shown:not(:focus):not(:first-child) {
        margin-left: var(--digit-collapsed-pull);
    }

    #invigilatorSection .front-page-code-form-wrap .digit:placeholder-shown:not(:focus):not(:last-child) {
        margin-right: var(--digit-collapsed-pull);
    }

    #invigilatorSection .front-page-code-form-wrap .digit:not(:placeholder-shown):not(:focus),
    #invigilatorSection .front-page-code-form-wrap .digit:focus {
        border-width: calc(var(--digit-size) * 0.047);
        transform: scale(1);
        transform-origin: center;
    }

    #invigilatorSection .front-page-code-form-wrap .digit:placeholder-shown:hover:not(:focus):not(:disabled) {
        transform: translateY(var(--digit-lift-hover)) scale(0.228);
        transform-origin: center;
    }

    #invigilatorSection .front-page-code-form-wrap .digit:placeholder-shown:active:not(:focus):not(:disabled) {
        transform: translateY(var(--digit-lift-active)) scale(0.224);
        transform-origin: center;
    }

    #invigilatorSection .front-page-code-form-wrap:hover,
    #invigilatorSection .front-page-code-form-wrap:active,
    #adminSection .front-page-admin-inputs-wrap:hover,
    #adminSection .front-page-admin-inputs-wrap:active,
    .front-page-second-section #invigilatorSection .loginContainer.invigilator-login-container:hover,
    .front-page-second-section #invigilatorSection .loginContainer.invigilator-login-container:active,
    .front-page-second-section #adminSection .loginContainer:hover,
    .front-page-second-section #adminSection .loginContainer:active {
        transform: none;
    }
}

/*
 * Mobile scaling guard — last block in the file so it wins over the desktop rules it
 * relaxes. Phones do their own text/display scaling, so this neutralises any leftover
 * Windows compensation and replaces the fixed desktop pixel widths that overflow a
 * phone once the system text size is turned up.
 */
@media (max-width: 768px) {
    html.display-scale-compensated,
    html.display-scale-compensated--font-size {
        zoom: 1 !important;
        font-size: 100% !important;
        overflow-x: hidden;
    }

    /* Base `.button` is 400px wide at 2rem — wider than the viewport on every phone */
    .button {
        width: 100%;
        max-width: 20rem;
        padding: 0.85rem 1rem;
        font-size: 1.05rem;
        box-sizing: border-box;
    }

    .feedback-submit-zone {
        display: block;
        width: 100%;
        max-width: 100%;
    }

    .feedback-form .button.feedback-submit {
        width: 100%;
        max-width: 100%;
    }

    #invigilatorSection .button.front-page-code-submit,
    #invigilatorSection #codeSubmitButton,
    #adminSection #loginBtn {
        width: min(100%, 18rem);
        max-width: 100%;
        padding: 0.85rem 1rem;
        font-size: 1.05rem;
    }

    /* Desktop lifts the clock 1rem over the subtitle; on mobile the two just collide */
    .front-page-clock {
        transform: none;
        margin-bottom: 0.2rem;
    }

    .front-page-clock .clock-timezone {
        top: 0.1rem;
        font-size: 0.32em;
    }

    .front-page-hero-layer-inner {
        width: 100%;
        box-sizing: border-box;
    }

    .front-page-clock-wrap {
        width: 100%;
    }

    .front-page-beta-title {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .front-page-beta-tagline {
        margin-top: 0.3rem;
        font-size: clamp(0.72rem, 3.1vw, 0.95rem);
        letter-spacing: 0.16em;
    }

    .front-page-subtitle {
        margin-bottom: 0.25rem;
    }

    /*
     * Left padding clears the home logo; pull the dropdown back by that chrome
     * width so its edges match the title row / hamburger inset.
     */
    .front-page-header-nav {
        margin-left: calc(-1 * (var(--fp-m-header-chrome) + var(--fp-m-header-gap)));
    }

    /* Legacy fixed title bar — 100vw plus padding always overflows a phone */
    body:not(.front-page-body) > .header {
        width: 100%;
        height: auto;
        min-height: 3.5rem;
        padding: 0.65rem 0.85rem 0.65rem 3.9rem;
        box-sizing: border-box;
    }

    body:not(.front-page-body) > .header h6 {
        margin: 0;
        font-size: clamp(1.1rem, 5.2vw, 1.5rem);
        text-align: center;
    }

    /* `h7` is not a real element, so it stays inline and its text-align never applies */
    h7 {
        display: block;
        font-size: 1.15rem;
    }

    /* Standalone code entry page — desktop digits are a fixed 150px each */
    body:not(.front-page-body) .container:has(> .digit) {
        --digit-size: clamp(2.6rem, 15vw, 3.4rem);
        flex-wrap: nowrap;
        gap: 0.4rem;
        width: 100%;
        max-width: 100%;
        padding-inline: 0.75rem;
        box-sizing: border-box;
    }

    body:not(.front-page-body) .container > .digit {
        width: var(--digit-size);
        height: var(--digit-size);
        min-width: var(--digit-size);
        min-height: var(--digit-size);
        flex: 0 0 var(--digit-size);
        margin: 0;
        font-size: calc(var(--digit-size) * 0.56);
        border-width: calc(var(--digit-size) * 0.04);
    }

    body:not(.front-page-body) .container > .digit::after {
        width: var(--digit-size);
        bottom: calc(var(--digit-size) * -0.09);
    }

    /* Standalone login / create-account cards are absolutely positioned at 600×650 */
    body:not(.front-page-body) > .loginContainer {
        position: static;
        transform: none;
        width: auto;
        max-width: 100%;
        height: auto;
        margin: 5.5rem 0.85rem 2rem;
        padding: 1.25rem 1rem 1.5rem;
        border-radius: 0.85rem;
        box-sizing: border-box;
    }

    /* Global `h2` is 4rem for desktop headings */
    body:not(.front-page-body) > .loginContainer h2 {
        margin-bottom: 1.25rem;
        font-size: clamp(1.4rem, 6.5vw, 1.85rem);
        text-align: center;
    }

    body:not(.front-page-body) > .loginContainer h3 {
        width: 100%;
        font-size: 1.05rem;
        box-sizing: border-box;
    }

    body:not(.front-page-body) > .loginContainer .textInput {
        max-width: 100%;
        padding-left: 1rem;
        box-sizing: border-box;
    }

    body:not(.front-page-body) > .loginContainer a {
        width: 100%;
        max-width: 20rem;
        display: block;
        margin: 0 auto;
    }
}

/*
 * Final mobile authority: every outer layered shell uses the same even frame gap.
 * Lives last so page-specific rules (e.g. forgot-password) cannot reintroduce
 * asymmetric top/side/bottom padding on phones.
 */
@media (max-width: 768px) {
    :root {
        --fp-m-layer-frame: 0.85rem;
        /* Same as mobile `#invigilatorSection .front-page-code-form-wrap` */
        --fp-layer-inner-radius: 1.15rem;
        --fp-layer-outer-radius: 1.15rem;
    }

    .our-product-hero-layer-outer,
    .our-product-feature-layer-outer,
    .our-product-cta-layer-outer,
    .about-us-hero-layer-outer,
    .about-us-story-card-outer,
    .about-us-values-layer-outer,
    .about-us-cta-layer-outer,
    .front-utility-intro-layer-outer,
    .front-page-hero-layer-outer,
    .resources-download-card,
    .feedback-field-layer,
    .front-page-second-section #invigilatorSection .loginContainer.invigilator-login-container,
    .front-page-second-section #adminSection .loginContainer,
    .exam-periods-layer-outer {
        padding: var(--fp-m-layer-frame) !important;
        border-radius: var(--fp-layer-outer-radius) !important;
        box-sizing: border-box;
    }

    .our-product-hero-layer-inner,
    .our-product-feature-layer-inner,
    .our-product-cta-layer-inner,
    .about-us-hero-layer-inner,
    .about-us-story-card-inner,
    .about-us-values-layer-inner,
    .about-us-cta-layer-inner,
    .front-utility-intro-layer-inner,
    .front-page-hero-layer-inner,
    .resources-download-card-inner,
    .feedback-field-layer-inner,
    .front-page-second-section .front-page-role-card-inner,
    .about-us-values-list li,
    .our-product-feature-media img {
        border-radius: var(--fp-layer-inner-radius) !important;
    }
}

/*
 * Public / phone-accessible pages only (body.front-page-body).
 * Visual depth, contrast, and motion — no copy changes.
 * Does not target administrator or invigilator app pages.
 */
.front-page-body {
    --fp-ink: rgb(18, 62, 118);
    --fp-ink-soft: rgba(18, 62, 118, 0.72);
    --fp-ink-faint: rgba(18, 62, 118, 0.55);
    --fp-glass-outer: linear-gradient(180deg, rgba(255, 255, 255, 0.46) 0%, rgba(214, 230, 255, 0.58) 100%);
    --fp-glass-inner: linear-gradient(180deg, #ffffff 0%, #f2f7ff 100%);
    --fp-glass-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.82),
        0 18px 44px rgba(15, 80, 160, 0.12),
        0 4px 12px rgba(12, 40, 90, 0.05);
    --fp-glass-shadow-lift:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 26px 56px rgba(15, 80, 160, 0.16),
        0 8px 18px rgba(12, 40, 90, 0.06);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

.front-page-body ::selection {
    background: rgba(15, 107, 220, 0.2);
    color: var(--fp-ink);
}

/* Marketing / utility pages: richer wash so layered cards read against the page */
.front-page-body.about-us-page {
    background-color: #dceafc;
}

.front-page-body .our-product-page-bg,
.front-page-body .about-us-page-bg,
.front-page-body .front-utility-page-bg {
    background-color: #dceafc;
    background-image:
        radial-gradient(circle at 8% 0%, #c4ddfb 0, transparent 46%),
        radial-gradient(circle at 92% 8%, #b7d4fa 0, transparent 42%),
        radial-gradient(circle at 50% 100%, rgba(15, 107, 220, 0.16) 0, transparent 52%),
        radial-gradient(circle at 0% 70%, rgba(90, 165, 255, 0.18) 0, transparent 40%);
}

@keyframes fp-bg-drift {
    0%,
    100% {
        transform: translate3d(0, 0, 0) rotate(0deg);
    }
    25% {
        transform: translate3d(2.6%, -1.8%, 0) rotate(3deg);
    }
    50% {
        transform: translate3d(-2.2%, 2.4%, 0) rotate(-2.4deg);
    }
    75% {
        transform: translate3d(1.6%, 1.8%, 0) rotate(1.8deg);
    }
}

.front-page-body::before,
.front-page-bg-standard-overlay::before,
.front-page-body .our-product-page-bg::before,
.front-page-body .about-us-page-bg::before,
.front-page-body .front-utility-page-bg::before {
    content: "";
    position: fixed;
    inset: -32%;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse 48% 40% at 20% 18%, rgba(255, 255, 255, 0.22) 0%, transparent 70%),
        radial-gradient(ellipse 42% 46% at 84% 22%, rgba(147, 187, 245, 0.2) 0%, transparent 72%),
        radial-gradient(ellipse 50% 38% at 70% 80%, rgba(15, 107, 220, 0.08) 0%, transparent 74%),
        radial-gradient(ellipse 38% 36% at 14% 78%, rgba(176, 210, 251, 0.28) 0%, transparent 70%);
    animation: fp-bg-drift 84s ease-in-out infinite;
}

.front-page-body.about-us-page::before {
    content: none;
}

/* Keep the home logo with the header on scrolling marketing pages */
.front-page-body.about-us-page .site-logo {
    position: fixed !important;
    z-index: 10001;
}

.front-page-body.about-us-page .front-page-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: #dceafc;
    overflow: visible;
}

/* Our Product, About Us, Feedback: logo and header scroll with the page */
.front-page-body.our-product-page .site-logo,
.front-page-body.about-us-marketing-page .site-logo,
.front-page-body.feedback-page .site-logo {
    position: absolute !important;
    z-index: 20;
}

.front-page-body.our-product-page .front-page-header,
.front-page-body.about-us-marketing-page .front-page-header,
.front-page-body.feedback-page .front-page-header {
    position: relative;
    top: auto;
    z-index: 1;
    background-color: transparent;
}

.front-page-body .front-page-header--nav-open {
    overflow: visible;
}

.front-page-body .front-page-header::before {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.38) 0%, rgba(214, 232, 255, 0.55) 100%);
    box-shadow:
        inset 0 -1px 0 rgba(255, 255, 255, 0.35),
        0 14px 36px rgba(0, 96, 143, 0.1);
}

.front-page-body .front-page-header::after {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(238, 246, 255, 0.96) 100%);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.front-page-body .site-logo img {
    background: #fff;
    border-radius: 0.7rem;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.9),
        0 8px 18px rgba(43, 76, 126, 0.16);
}

.front-page-body .front-page-header-title {
    letter-spacing: 0.01em;
    color: var(--fp-ink);
}

.front-page-body .front-page-header-tagline {
    color: var(--fp-ink-faint);
}

.front-page-body .front-page-header-about {
    background-color: #fff;
    border: 1px solid rgba(0, 96, 143, 0.12);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        0 3px 10px rgba(0, 96, 143, 0.1);
}

.front-page-body .front-page-header-about[aria-current="page"],
.front-page-body .front-page-header-about[aria-current="page"]:visited:not(:hover):not(:active) {
    background-color: rgb(0, 96, 143);
    border-color: rgb(0, 96, 143);
    color: #fff;
    box-shadow:
        0 0 0 3px rgba(0, 96, 143, 0.1),
        0 10px 24px rgba(0, 96, 143, 0.2);
}

.front-page-body .front-page-header-about[aria-current="page"]:hover,
.front-page-body .front-page-header-about[aria-current="page"]:active {
    background-color: rgb(0, 96, 143);
    color: #fff;
}

.front-page-body .our-product-hero-layer-outer,
.front-page-body .our-product-feature-layer-outer,
.front-page-body .our-product-cta-layer-outer,
.front-page-body .about-us-hero-layer-outer,
.front-page-body .about-us-story-card-outer,
.front-page-body .about-us-values-layer-outer,
.front-page-body .about-us-cta-layer-outer,
.front-page-body .front-utility-intro-layer-outer,
.front-page-body .front-page-hero-layer-outer,
.front-page-body .resources-download-card,
.front-page-body .feedback-field-layer,
.front-page-body .front-page-second-section #invigilatorSection .loginContainer.invigilator-login-container,
.front-page-body .front-page-second-section #adminSection .loginContainer {
    background: var(--fp-glass-outer);
    box-shadow: var(--fp-glass-shadow);
}

.front-page-body .our-product-hero-layer-inner,
.front-page-body .our-product-feature-layer-inner,
.front-page-body .our-product-cta-layer-inner,
.front-page-body .about-us-hero-layer-inner,
.front-page-body .about-us-story-card-inner,
.front-page-body .about-us-values-layer-inner,
.front-page-body .about-us-cta-layer-inner,
.front-page-body .front-utility-intro-layer-inner,
.front-page-body .front-page-hero-layer-inner,
.front-page-body .resources-download-card-inner,
.front-page-body .feedback-field-layer-inner,
.front-page-body .front-page-second-section .front-page-role-card-inner {
    background: var(--fp-glass-inner);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.98);
}

/* Static shells stay put; only interactive cards lift, and only with a real mouse */
.front-page-body .our-product-hero-layer-outer:hover,
.front-page-body .our-product-hero-layer-outer:active,
.front-page-body .about-us-hero-layer-outer:hover,
.front-page-body .about-us-hero-layer-outer:active,
.front-page-body .front-utility-intro-layer-outer:hover,
.front-page-body .front-utility-intro-layer-outer:active,
.front-page-body .front-page-hero-layer-outer:hover,
.front-page-body .front-page-hero-layer-outer:active,
.front-page-body .feedback-field-layer:hover,
.front-page-body .feedback-field-layer:active,
.front-page-body .about-us-values-layer-outer:hover,
.front-page-body .about-us-values-layer-outer:active,
.front-page-body .our-product-cta-layer-outer:hover,
.front-page-body .our-product-cta-layer-outer:active,
.front-page-body .about-us-cta-layer-outer:hover,
.front-page-body .about-us-cta-layer-outer:active,
.front-page-body .front-page-second-section #invigilatorSection .loginContainer.invigilator-login-container:hover,
.front-page-body .front-page-second-section #invigilatorSection .loginContainer.invigilator-login-container:active,
.front-page-body .front-page-second-section #adminSection .loginContainer:hover,
.front-page-body .front-page-second-section #adminSection .loginContainer:active {
    transform: none;
    box-shadow: var(--fp-glass-shadow);
}

@media (hover: hover) and (pointer: fine) {
    .front-page-body .our-product-feature-layer-outer:hover,
    .front-page-body .about-us-story-card-outer:hover,
    .front-page-body .resources-download-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--fp-glass-shadow-lift);
    }

    .front-page-body .about-us-values-list li:hover {
        transform: translateY(-3px);
        background: #fff;
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.95),
            0 18px 40px rgba(0, 96, 143, 0.12);
    }
}

.front-page-body .our-product-eyebrow,
.front-page-body .marketing-eyebrow,
.front-page-body .our-product-section-kicker,
.front-page-body .marketing-section-kicker,
.front-page-body .about-us-story-label {
    color: rgb(0, 96, 143);
    letter-spacing: 0.16em;
}

.front-page-body .our-product-hero-title,
.front-page-body .about-us-hero-title,
.front-page-body .front-utility-intro-title,
.front-page-body .our-product-section-title,
.front-page-body .marketing-section-title,
.front-page-body .about-us-values-title,
.front-page-body .our-product-cta-title,
.front-page-body .marketing-cta-title {
    color: var(--fp-ink);
}

.front-page-body .our-product-hero-lead,
.front-page-body .about-us-hero-lead,
.front-page-body .front-utility-intro-lead,
.front-page-body .our-product-section-lead,
.front-page-body .marketing-section-lead,
.front-page-body .about-us-story-text,
.front-page-body .about-us-body,
.front-page-body .our-product-orgs-lead {
    color: var(--fp-ink-soft);
}

.front-page-body .our-product-pill,
.front-page-body .marketing-pill {
    background: #fff;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        0 2px 8px rgba(0, 96, 143, 0.08);
    color: var(--fp-ink);
    font-size: 0.8rem;
    padding: 0.42rem 0.95rem;
}

.front-page-body .our-product-feature-layer-inner {
    grid-template-columns: minmax(16rem, 0.88fr) minmax(0, 1.42fr);
}

.front-page-body .our-product-feature-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.15rem;
    height: 1.45rem;
    padding: 0 0.5rem;
    border-radius: 999px;
    background: rgba(15, 107, 220, 0.1);
    color: rgb(0, 96, 143);
    letter-spacing: 0.1em;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.front-page-body .our-product-feature-media {
    padding: 0.42rem;
    background: linear-gradient(180deg, rgba(232, 241, 255, 0.98), rgba(206, 226, 252, 0.92));
    border-radius: calc(var(--fp-layer-inner-radius, 2rem) + 0.12rem);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.front-page-body .our-product-feature-media img {
    border: 0;
    box-shadow:
        0 16px 32px rgba(0, 96, 143, 0.16),
        0 2px 8px rgba(0, 0, 0, 0.05);
}

.front-page-body .about-us-values-list li {
    background: rgba(255, 255, 255, 0.78);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        0 8px 22px rgba(0, 96, 143, 0.07);
}

.front-page-body.our-product-page .about-us-values-icon {
    width: 2.85rem;
    height: 2.85rem;
    margin-bottom: 0.25rem;
    border-radius: 999px;
    background: rgba(15, 107, 220, 0.1);
    box-shadow: inset 0 0 0 1px rgba(0, 96, 143, 0.1);
}

.front-page-body.our-product-page .about-us-values-icon svg {
    width: 1.4rem;
    height: 1.4rem;
}

.front-page-body .our-product-cta-btn,
.front-page-body .marketing-cta-btn,
.front-page-body .resources-download-btn {
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.28) inset,
        0 14px 28px rgba(15, 107, 220, 0.28);
}

.front-page-body .marketing-cta-btn--secondary {
    background: #fff;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        0 8px 20px rgba(0, 96, 143, 0.1);
}

.front-page-body .front-page-footer-legal-btn {
    background: rgba(255, 255, 255, 0.78);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        0 2px 8px rgba(0, 96, 143, 0.08);
}

.front-page-body .feedback-textarea,
.front-page-body .feedback-email-input {
    border-color: rgba(0, 96, 143, 0.18);
    border-radius: 0.85rem;
    box-shadow:
        inset 0 1px 2px rgba(15, 80, 160, 0.04),
        0 1px 0 rgba(255, 255, 255, 0.8);
}

.front-page-body .feedback-textarea:focus,
.front-page-body .feedback-email-input:focus,
.front-page-body .feedback-email-input:hover {
    border-color: rgb(15, 107, 220);
    box-shadow:
        0 0 0 4px rgba(15, 107, 220, 0.14),
        0 4px 14px rgba(0, 96, 143, 0.08);
}

.front-page-body .legal-document-heading {
    padding-bottom: 0.35rem;
    border-bottom: 1px solid rgba(0, 96, 143, 0.1);
}

.front-page-body .front-utility-back-link {
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.28) inset,
        0 8px 20px rgba(15, 107, 220, 0.24);
}

.front-page-body .resources-download-card-inner {
    align-items: center;
    text-align: center;
}

.front-page-body .front-page-role-toggle {
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.28) inset,
        0 12px 28px rgba(15, 107, 220, 0.22);
}

.front-page-body.privacy-page .front-utility-main,
.front-page-body.acceptable-use-page .front-utility-main,
.front-page-body.contact-page .front-utility-main,
.front-page-body.devlog-page .front-utility-main {
    margin-top: 0;
    padding-top: 3.15rem;
}

.front-page-body.privacy-page .front-utility-back-link,
.front-page-body.acceptable-use-page .front-utility-back-link,
.front-page-body.contact-page .front-utility-back-link,
.front-page-body.devlog-page .front-utility-back-link {
    top: 7.15rem;
    z-index: 45;
}

.front-page-body .front-page-footer {
    padding-bottom: calc(1.35rem + env(safe-area-inset-bottom, 0px));
}

@media (max-width: 768px) {
    .front-page-body.about-us-page .front-page-header {
        background-color: #dceafc;
    }

    .front-page-body.our-product-page .front-page-header,
    .front-page-body.about-us-marketing-page .front-page-header,
    .front-page-body.feedback-page .front-page-header {
        background-color: transparent;
    }

    .front-page-body .front-page-header-menu-toggle {
        box-sizing: border-box;
        background: #fff;
        border-color: rgba(0, 96, 143, 0.12);
        border-radius: 0.75rem;
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.95),
            0 4px 12px rgba(0, 96, 143, 0.1);
    }

    .front-page-body .front-page-header--nav-open .front-page-header-nav {
        padding: 0.45rem 0 0.2rem;
        gap: 0.4rem;
        align-items: center;
    }

    .front-page-body .front-page-header-about {
        background: #fff;
        border-radius: 0.85rem;
        justify-content: center;
        text-align: center;
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.95),
            0 2px 8px rgba(0, 96, 143, 0.06);
    }

    .front-page-body .front-page-header-about[aria-current="page"],
    .front-page-body .front-page-header-about[aria-current="page"]:visited:not(:hover):not(:active) {
        background-color: rgb(0, 96, 143);
        border-color: rgb(0, 96, 143);
        color: #fff;
        box-shadow:
            0 0 0 3px rgba(0, 96, 143, 0.1),
            0 10px 22px rgba(0, 96, 143, 0.2);
    }

    .front-page-body .our-product-main,
    .front-page-body .about-us-marketing-main,
    .front-page-body .about-us-main,
    .front-page-body .about-us-main.front-utility-main {
        padding-bottom: calc(3rem + env(safe-area-inset-bottom, 0px));
    }

    .front-page-body .front-page-footer {
        padding-bottom: calc(2.75rem + env(safe-area-inset-bottom, 0px));
    }

    .front-page-body.privacy-page .front-utility-back-link,
    .front-page-body.acceptable-use-page .front-utility-back-link,
    .front-page-body.contact-page .front-utility-back-link,
    .front-page-body.devlog-page .front-utility-back-link {
        top: 5.35rem;
    }

    .front-page-body.privacy-page .front-utility-main,
    .front-page-body.acceptable-use-page .front-utility-main,
    .front-page-body.contact-page .front-utility-main,
    .front-page-body.devlog-page .front-utility-main {
        padding-top: 2.65rem;
    }

    .front-page-body .our-product-pill,
    .front-page-body .marketing-pill {
        font-size: 0.74rem;
        padding: 0.34rem 0.75rem;
    }

    .front-page-body .our-product-feature-media {
        padding: 0.32rem;
    }

    .front-page-body .our-product-cta-btn,
    .front-page-body .marketing-cta-btn,
    .front-page-body .resources-download-btn,
    .front-page-body .feedback-form .button.feedback-submit {
        min-height: 2.85rem;
    }

    #adminSection .front-page-admin-inputs-wrap .input-wrapper {
        width: 100%;
        max-width: none;
        min-width: 0;
        min-height: 3.15rem;
        align-self: stretch;
    }

    #adminSection .front-page-admin-inputs-wrap .textInput {
        -webkit-appearance: none;
        appearance: none;
        width: 100%;
        max-width: none;
        min-width: 0;
        min-height: 3.15rem;
        padding: 0.85rem 1rem 0.85rem 2.85rem;
        font-size: 16px;
        line-height: 1.25;
        border-radius: 999px;
        box-sizing: border-box;
        background-clip: padding-box;
    }

    #adminSection .front-page-admin-inputs-wrap .input-wrapper:has(.password-toggle) .textInput {
        padding-right: 3rem;
    }

    #adminSection .front-page-admin-inputs-wrap {
        width: 100%;
        max-width: none;
        min-width: 0;
        align-self: stretch;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        padding: 0.75rem 0.45rem 0.85rem;
        box-sizing: border-box;
    }

    .front-page-second-section #adminSection .front-page-role-card-inner {
        align-items: stretch;
    }

    #adminSection #loginBtn {
        width: 100%;
        max-width: none;
        align-self: stretch;
        box-sizing: border-box;
    }
}

@media (max-width: 820px) {
    .front-page-body .our-product-feature-layer-inner {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .front-page-body .our-product-feature-layer-outer,
    .front-page-body .about-us-story-card-outer,
    .front-page-body .resources-download-card,
    .front-page-body .about-us-values-list li {
        transition: none;
    }

    .front-page-body::before,
    .front-page-bg-standard-overlay::before,
    .front-page-body .our-product-page-bg::before,
    .front-page-body .about-us-page-bg::before,
    .front-page-body .front-utility-page-bg::before {
        animation: none;
    }
}


