.maths-landing-page {
    --maths-navy: #0b2e4a;
    --maths-navy-deep: #071f34;
    --maths-gold: #f8b400;
    --maths-gold-hover: #e4a500;
    --maths-text: #101820;
    --maths-muted: #5f6670;
    --maths-soft: #f6f9fc;
    --maths-line: #dde4eb;
    --maths-shadow: 0 18px 44px rgba(11, 46, 74, 0.1);
}

.maths-landing-page *,
.maths-landing-page *::before,
.maths-landing-page *::after {
    box-sizing: border-box;
}

.maths-landing-page em {
    color: var(--maths-gold);
    font-style: normal;
}

.maths-gtm-frame {
    display: none;
    visibility: hidden;
}

.maths-container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding-right: 48px;
    padding-left: 48px;
}

.maths-section {
    padding: 94px 0;
    scroll-margin-top: 82px;
}

.maths-section-label {
    display: block;
    margin-bottom: 14px;
    color: var(--maths-gold-hover);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.maths-section-title {
    margin: 0;
    color: var(--maths-text);
    font-size: clamp(34px, 3vw, 48px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.04em;
}

.maths-section-copy {
    max-width: 760px;
    margin: 22px 0 0;
    color: var(--maths-muted);
    font-size: 18px;
    line-height: 1.7;
}

.maths-section-heading {
    max-width: 900px;
    margin: 0 auto 68px;
    text-align: center;
}

.maths-section-heading .maths-section-copy {
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.maths-section-heading-left {
    max-width: 1080px;
    margin-right: 0;
    margin-left: 0;
    text-align: left;
}

.maths-section-heading-left .maths-section-copy {
    margin-left: 0;
    text-align: left;
}

.maths-button {
    display: inline-flex;
    min-height: 58px;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border: 2px solid transparent;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 12px 24px rgba(11, 46, 74, 0.1);
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.maths-button:hover,
.maths-button:focus-visible {
    transform: translateY(-2px);
}

.maths-button:focus-visible {
    outline: 3px solid rgba(248, 180, 0, 0.3);
    outline-offset: 3px;
}

.maths-button-primary {
    background: var(--maths-gold);
    color: var(--maths-navy-deep) !important;
}

.maths-button-primary:hover,
.maths-button-primary:focus-visible {
    background: var(--maths-gold-hover);
}

.maths-button-outline {
    border-color: #cbd2d9;
    background: #ffffff;
    color: var(--maths-navy-deep) !important;
    box-shadow: none;
}

.maths-button-outline:hover,
.maths-button-outline:focus-visible {
    border-color: var(--maths-gold);
}

.maths-button-dark {
    min-width: 256px;
    background: var(--maths-navy);
    color: #ffffff !important;
}

.maths-hero {
    min-height: 720px;
    padding: 86px 0 72px;
    background: #ffffff;
}

.maths-hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(540px, 1.05fr);
    align-items: center;
    gap: 54px;
}

.maths-hero-content {
    max-width: 650px;
}

.maths-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 26px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(248, 180, 0, 0.13);
    color: #c88e00;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.maths-hero-content h1 {
    margin: 0;
    color: var(--maths-text);
    font-size: clamp(42px, 4vw, 58px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.045em;
}

.maths-hero-content > p {
    max-width: 620px;
    margin: 28px 0 0;
    color: var(--maths-muted);
    font-size: 19px;
    line-height: 1.75;
}

.maths-trust-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 36px;
}

.maths-avatar-stack {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
}

.maths-avatar-stack img,
.maths-mini-avatars img {
    width: 42px;
    height: 42px;
    border: 3px solid #ffffff;
    border-radius: 50%;
    object-fit: cover;
}

.maths-avatar-stack img + img,
.maths-mini-avatars img + img {
    margin-left: -13px;
}

.maths-avatar-stack > span {
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    margin-left: -12px;
    border: 3px solid #ffffff;
    border-radius: 50%;
    background: var(--maths-gold);
    color: var(--maths-navy-deep);
    font-size: 12px;
    font-weight: 900;
}

.maths-trust-copy {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: #665f55;
    font-size: 14px;
    font-weight: 600;
}

.maths-stars {
    color: var(--maths-gold);
    font-size: 20px;
    letter-spacing: 2px;
    white-space: nowrap;
}

.maths-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 30px;
}

.maths-hero-visual {
    position: relative;
    min-height: 590px;
}

.maths-hero-photo {
    position: absolute;
    top: 62px;
    left: 50%;
    width: 320px;
    height: 510px;
    margin: 0;
    overflow: hidden;
    border: 5px solid #ffffff;
    border-radius: 170px 170px 10px 10px;
    background: #eef3f7;
    box-shadow: var(--maths-shadow);
    transform: translateX(-50%);
}

.maths-hero-photo > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.maths-hero-photo figcaption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    padding: 80px 34px 26px;
    background: linear-gradient(transparent, rgba(5, 23, 38, 0.78));
    color: #ffffff;
}

.maths-hero-photo figcaption strong {
    font-size: 16px;
}

.maths-hero-photo figcaption span {
    margin-top: 3px;
    font-size: 12px;
}

.maths-floating-card {
    position: absolute;
    z-index: 2;
    border: 1px solid rgba(11, 46, 74, 0.07);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: var(--maths-shadow);
}

.maths-icon-circle,
.maths-stat-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.maths-mastery-card {
    top: 188px;
    left: 0;
    display: flex;
    width: 230px;
    align-items: center;
    gap: 14px;
    padding: 18px;
}

.maths-mastery-card .maths-icon-circle {
    width: 42px;
    height: 42px;
    background: var(--maths-gold);
    color: var(--maths-navy);
    font-size: 21px;
}

.maths-mastery-card div {
    display: flex;
    flex-direction: column;
}

.maths-mastery-card small {
    color: #756f67;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.maths-mastery-card strong {
    color: var(--maths-navy);
    font-size: 15px;
}

.maths-live-card {
    top: 0;
    right: 0;
    width: 250px;
    overflow: hidden;
    padding-bottom: 16px;
}

.maths-live-image {
    position: relative;
    height: 132px;
    margin-bottom: 13px;
    overflow: hidden;
}

.maths-live-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.maths-live-image span {
    position: absolute;
    top: 10px;
    left: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #ef5350;
    color: #ffffff;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
}

.maths-live-card > strong,
.maths-live-card > small {
    display: block;
    margin-right: 16px;
    margin-left: 16px;
}

.maths-live-card > strong {
    color: var(--maths-navy);
    font-size: 14px;
}

.maths-live-card > small {
    margin-top: 3px;
    color: var(--maths-muted);
    font-size: 11px;
}

.maths-feedback-card {
    bottom: 4px;
    left: 0;
    display: flex;
    min-width: 330px;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
}

.maths-mini-avatars {
    display: flex;
}

.maths-mini-avatars img {
    width: 34px;
    height: 34px;
}

.maths-feedback-card span {
    color: var(--maths-navy);
    font-size: 12px;
}

.maths-feedback-card span > strong {
    font-weight: 800;
}

.maths-feedback-card .maths-feedback-rating {
    color: var(--maths-gold);
}

.maths-goals-card {
    right: 0;
    bottom: 8px;
    width: 250px;
    padding: 16px 18px;
}

.maths-goals-heading,
.maths-goals-copy {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.maths-goals-heading {
    justify-content: flex-start;
}

.maths-goals-heading .maths-icon-circle {
    width: 34px;
    height: 34px;
    background: var(--maths-gold);
    color: var(--maths-navy);
}

.maths-goals-heading > strong {
    color: var(--maths-text);
    font-size: 13px;
}

.maths-goals-copy {
    margin: 12px 0 7px;
    color: var(--maths-navy);
    font-size: 10px;
}

.maths-progress {
    height: 5px;
    overflow: hidden;
    border-radius: 999px;
    background: #e5edf4;
}

.maths-progress span {
    display: block;
    width: 85%;
    height: 100%;
    border-radius: inherit;
    background: var(--maths-gold);
}

.maths-impact-section {
    padding-top: 52px;
}

.maths-impact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
    gap: 24px;
}

.maths-impact-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.maths-stat-card,
.maths-impact-copy {
    min-height: 250px;
    border: 1px solid var(--maths-line);
    border-radius: 24px;
    box-shadow: var(--maths-shadow);
}

.maths-stat-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 34px;
}

.maths-stat-card .maths-stat-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 42px;
    background: rgba(11, 46, 74, 0.07);
    color: var(--maths-gold);
    font-size: 22px;
}

.maths-stat-card > strong,
.maths-stat-dark div > strong {
    font-size: 48px;
    font-weight: 500;
    line-height: 1.1;
}

.maths-stat-card p {
    margin: 6px 0 0;
    font-size: 16px;
}

.maths-stat-primary {
    border-color: var(--maths-gold);
    background: var(--maths-gold);
    color: #ffffff;
}

.maths-stat-primary .maths-stat-icon {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.maths-stat-rating {
    background: #ffffff;
    color: var(--maths-text);
}

.maths-stat-rating .maths-stat-icon {
    margin-bottom: 26px;
    color: #8b690b;
}

.maths-stat-rating .maths-stars {
    margin-bottom: 8px;
}

.maths-stat-rating > strong {
    font-size: 24px;
    font-weight: 800;
}

.maths-stat-dark {
    grid-column: 1 / -1;
    min-height: 170px;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 30px;
    background: #273643;
    color: #ffffff;
}

.maths-stat-dark .maths-stat-icon {
    margin: 0;
    background: rgba(255, 255, 255, 0.1);
}

.maths-live-learning {
    margin-left: auto;
    padding-left: 48px;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    text-align: right;
}

.maths-live-learning > strong {
    color: var(--maths-gold) !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.maths-live-learning p {
    text-align: right;
}

.maths-impact-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 52px;
    background: #ffffff;
}

.maths-impact-copy h2 {
    max-width: 430px;
    margin: 0;
    color: var(--maths-text);
    font-size: clamp(36px, 3.5vw, 52px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.04em;
}

.maths-impact-copy p {
    margin: 28px 0 0;
    color: var(--maths-muted);
    font-size: 18px;
}

.maths-schools-section {
    padding-top: 116px;
}

.maths-schools-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(480px, 0.92fr);
    align-items: center;
    gap: 80px;
}

.maths-quote-line {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 36px;
    color: var(--maths-muted);
    font-size: 17px;
}

.maths-quote-line i {
    display: inline-flex;
    width: 50px;
    height: 50px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(248, 180, 0, 0.18);
    color: var(--maths-gold-hover);
}

.maths-school-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.maths-school-list span,
.maths-school-list strong {
    display: flex;
    min-height: 64px;
    align-items: center;
    justify-content: center;
    padding: 14px 18px;
    border: 1px solid rgba(248, 180, 0, 0.65);
    border-radius: 14px;
    color: var(--maths-navy);
    font-size: 15px;
    font-weight: 700;
    text-align: center;
}

.maths-school-list strong {
    width: max-content;
    min-width: 145px;
    min-height: 44px;
    padding-top: 10px;
    padding-bottom: 10px;
    border-color: var(--maths-gold);
    background: var(--maths-gold);
    box-shadow: 0 8px 16px rgba(248, 180, 0, 0.2);
}

.maths-why-section {
    padding-bottom: 112px;
}

.maths-reasons-stage {
    position: relative;
    min-height: 510px;
    max-width: 980px;
    margin: 0 auto;
}

.maths-reason-card {
    position: absolute;
    z-index: 2;
    width: 250px;
    min-height: 170px;
    padding: 30px;
    border: 1px solid rgba(248, 180, 0, 0.45);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: var(--maths-shadow);
}

.maths-reason-card h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    color: var(--maths-navy);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.maths-reason-card h3 i {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: rgba(248, 180, 0, 0.12);
    color: var(--maths-gold);
    font-size: 17px;
}

.maths-reason-card p {
    margin: 22px 0 0;
    color: var(--maths-muted);
    font-size: 15px;
}

.maths-reason-one {
    top: 0;
    left: 0;
}

.maths-reason-two {
    top: 0;
    right: 0;
}

.maths-reason-three {
    bottom: 0;
    left: 0;
}

.maths-reason-four {
    right: 0;
    bottom: 0;
}

.maths-reason-center {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;
    display: flex;
    width: 225px;
    height: 225px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 5px solid #ffffff;
    border-radius: 50%;
    background: linear-gradient(145deg, #ffca39, var(--maths-gold));
    color: var(--maths-navy-deep);
    box-shadow: var(--maths-shadow);
    transform: translate(-50%, -50%);
}

.maths-reason-center i {
    margin-bottom: 12px;
    font-size: 38px;
}

.maths-reason-center strong {
    font-size: 22px;
    font-weight: 900;
}

.maths-reason-center span {
    margin-top: 2px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.maths-reason-line {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    border-top: 2px dashed #d9e0e6;
    transform-origin: 0 50%;
}

.maths-reason-line-one {
    transform: rotate(-145deg);
}

.maths-reason-line-two {
    transform: rotate(-35deg);
}

.maths-reason-line-three {
    transform: rotate(145deg);
}

.maths-reason-line-four {
    transform: rotate(35deg);
}

.maths-reachable {
    background: linear-gradient(90deg, #ffb900, #ffd453);
}

.maths-reachable-inner {
    display: flex;
    min-height: 152px;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.maths-reachable-inner > div {
    display: flex;
    align-items: center;
    gap: 22px;
}

.maths-reachable-inner > div > span {
    display: inline-flex;
    width: 64px;
    height: 64px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--maths-navy);
    color: var(--maths-gold);
    font-size: 26px;
    box-shadow: 0 10px 20px rgba(7, 31, 52, 0.2);
}

.maths-reachable-inner p {
    display: flex;
    flex-direction: column;
    margin: 0;
    color: var(--maths-navy);
    font-size: 17px;
}

.maths-reachable-inner p strong {
    margin-bottom: 4px;
    font-weight: 900;
}

.maths-approach-section {
    padding-top: 120px;
}

.maths-journey-grid,
.maths-coverage-grid,
.maths-testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 68px;
}

.maths-journey-card {
    overflow: hidden;
    border-radius: 22px 64px 22px 22px;
    background: #ffffff;
    box-shadow: var(--maths-shadow);
}

.maths-journey-card > img {
    display: block;
    width: 100%;
    aspect-ratio: 1.55 / 1;
    object-fit: cover;
}

.maths-journey-card > div {
    min-height: 235px;
    padding: 34px;
}

.maths-journey-card span {
    color: var(--maths-gold-hover);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.maths-journey-card h3 {
    margin: 12px 0 14px;
    color: var(--maths-text);
    font-size: 25px;
    font-weight: 800;
}

.maths-journey-card p {
    margin: 0;
    color: var(--maths-muted);
    font-size: 16px;
}

.maths-coverage-section {
    padding-top: 110px;
    padding-bottom: 48px;
}

.maths-coverage-grid {
    gap: 68px;
}

.maths-coverage-card {
    min-height: 390px;
    padding: 42px 34px;
    border: 1px solid rgba(248, 180, 0, 0.5);
    border-radius: 22px;
    background: #ffffff;
}

.maths-coverage-card > i {
    color: var(--maths-gold);
    font-size: 34px;
}

.maths-coverage-card h3 {
    margin: 32px 0 0;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--maths-line);
    color: var(--maths-navy);
    font-size: 23px;
    font-weight: 800;
}

.maths-coverage-card ul {
    display: grid;
    gap: 14px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.maths-coverage-card li {
    position: relative;
    padding-left: 28px;
    color: #65778c;
    font-size: 16px;
}

.maths-coverage-card li::before {
    content: "✓";
    position: absolute;
    top: 2px;
    left: 0;
    display: inline-flex;
    width: 17px;
    height: 17px;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--maths-gold);
    border-radius: 50%;
    color: var(--maths-gold-hover);
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
}

.maths-comparison-section {
    padding-top: 48px;
}

.maths-comparison-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    align-items: end;
    gap: 40px;
}

.maths-comparison-heading .maths-section-copy {
    max-width: 800px;
}

.maths-comparison-heading > img {
    display: block;
    width: 100%;
    max-height: 270px;
    object-fit: contain;
    object-position: center bottom;
}

.maths-table-scroll {
    overflow-x: auto;
    border: 1px solid var(--maths-line);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--maths-shadow);
    scrollbar-color: var(--maths-gold) #edf1f5;
}

.maths-table-scroll:focus-visible {
    outline: 3px solid rgba(248, 180, 0, 0.35);
    outline-offset: 3px;
}

.maths-comparison-table {
    width: 100%;
    min-width: 850px;
    border-collapse: collapse;
    color: var(--maths-navy);
}

.maths-comparison-table th,
.maths-comparison-table td {
    padding: 18px 20px;
    border-right: 1px solid #edf0f3;
    border-bottom: 1px solid #e9edf1;
    font-size: 14px;
    text-align: center;
}

.maths-comparison-table th:first-child,
.maths-comparison-table td:first-child {
    width: 43%;
    text-align: left;
}

.maths-comparison-table th {
    background: var(--maths-navy);
    color: #ffffff;
    font-weight: 800;
}

.maths-comparison-table th:nth-child(2) {
    background: var(--maths-gold);
    color: var(--maths-navy-deep);
}

.maths-comparison-table td:nth-child(2) {
    background: rgba(248, 180, 0, 0.07);
}

.maths-comparison-table td:not(:first-child) {
    font-size: 23px;
    font-weight: 700;
}

.maths-comparison-table td:first-child i {
    width: 22px;
    color: #6685a1;
}

.maths-comparison-table td span {
    color: var(--maths-gold-hover);
    font-size: 13px;
}

.maths-comparison-table tr:last-child td {
    border-bottom: 0;
}

.maths-results-section {
    padding-top: 120px;
}

.maths-results-heading {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr) 280px;
    align-items: start;
    gap: 28px;
}

.maths-results-heading .maths-section-heading {
    margin-bottom: 58px;
}

.maths-result-chip {
    display: flex;
    min-height: 92px;
    align-items: center;
    gap: 14px;
    padding: 20px 24px;
    border: 1px solid var(--maths-line);
    border-radius: 17px;
    background: #ffffff;
    box-shadow: var(--maths-shadow);
}

.maths-result-chip i {
    color: var(--maths-gold);
    font-size: 23px;
}

.maths-result-chip span {
    display: flex;
    flex-direction: column;
    color: #87909d;
    font-size: 12px;
}

.maths-result-chip strong {
    margin-bottom: 3px;
    color: var(--maths-navy);
    font-size: 16px;
}

.maths-result-chip-right {
    margin-top: 82px;
}

.maths-testimonial-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr);
    align-items: center;
    gap: 24px;
}

.maths-testimonial-card {
    min-height: 300px;
    padding: 28px;
    border: 1px solid var(--maths-line);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--maths-shadow);
}

.maths-testimonial-featured {
    min-height: 390px;
    padding: 36px;
}

.maths-testimonial-card blockquote {
    margin: 20px 0 28px;
    color: var(--maths-navy);
    font-size: 15px;
    line-height: 1.55;
}

.maths-testimonial-featured blockquote {
    max-width: 440px;
    margin-top: 30px;
    font-size: 22px;
    line-height: 1.45;
}

.maths-person {
    display: flex;
    align-items: center;
    gap: 14px;
}

.maths-person img {
    width: 50px;
    height: 50px;
    border: 3px solid #edf1f4;
    border-radius: 50%;
    object-fit: cover;
}

.maths-person span {
    display: flex;
    flex-direction: column;
    color: #7e8996;
    font-size: 12px;
}

.maths-person strong {
    color: var(--maths-navy);
    font-size: 15px;
}

.maths-testimonial-card > small {
    display: inline-block;
    margin-top: 20px;
    padding: 5px 13px;
    border-radius: 999px;
    background: rgba(55, 133, 255, 0.09);
    color: #2878e5;
    font-size: 11px;
    font-weight: 800;
}

.maths-testimonial-card:last-child > small {
    background: rgba(248, 180, 0, 0.12);
    color: var(--maths-gold-hover);
}

.maths-results-cta {
    display: flex;
    min-height: 190px;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    margin-top: 72px;
    padding: 40px 48px;
    border-radius: 22px;
    background: var(--maths-navy);
    color: #ffffff;
}

.maths-results-cta h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
}

.maths-results-cta p {
    max-width: 620px;
    margin: 12px 0 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 15px;
}

.maths-results-cta .maths-button {
    min-width: 230px;
}

.maths-faq-section {
    padding-top: 120px;
}

.maths-faq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
}

.maths-faq-card {
    display: flex;
    min-height: 210px;
    align-items: flex-start;
    gap: 24px;
    padding: 36px;
    border: 1px solid var(--maths-line);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--maths-shadow);
}

.maths-faq-card > span {
    display: inline-flex;
    width: 50px;
    height: 50px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--maths-gold);
    color: var(--maths-navy);
    font-size: 22px;
    font-weight: 900;
}

.maths-faq-card h3 {
    margin: 0 0 14px;
    color: var(--maths-navy);
    font-size: 18px;
    font-weight: 800;
}

.maths-faq-card p {
    margin: 0;
    color: #738093;
    font-size: 15px;
}

.maths-faq-card-last {
    grid-column: 1 / -1;
    width: calc(50% - 16px);
    justify-self: center;
}

.maths-closing-quote {
    margin-top: 38px;
    padding: 116px 0;
    background: var(--maths-soft);
}

.maths-closing-quote blockquote {
    max-width: 950px;
    margin: 0 auto;
    color: #28465f;
    font-size: clamp(28px, 3vw, 44px);
    font-weight: 400;
    line-height: 1.45;
    text-align: center;
}

@media screen and (min-width: 1200px) {
    .maths-approach-section .maths-section-title {
        font-size: 36px;
    }

    .maths-approach-section .maths-section-copy {
        max-width: 1000px;
    }
}

@media screen and (max-width: 1199px) {
    .maths-container {
        padding-right: 32px;
        padding-left: 32px;
    }

    .maths-hero-layout {
        grid-template-columns: minmax(0, 0.9fr) minmax(480px, 1.1fr);
        gap: 28px;
    }

    .maths-hero-content h1 {
        font-size: 46px;
    }

    .maths-hero-visual {
        transform: scale(0.92);
    }

    .maths-impact-copy {
        padding: 38px;
    }

    .maths-schools-layout {
        gap: 48px;
    }

    .maths-journey-grid,
    .maths-coverage-grid {
        gap: 28px;
    }

    .maths-results-heading {
        grid-template-columns: 210px minmax(0, 1fr) 230px;
    }
}

@media screen and (max-width: 991px) {
    .personal-results-break {
        display: none;
    }

    .maths-section {
        padding: 76px 0;
    }

    .maths-coverage-section {
        padding-bottom: 40px;
    }

    .maths-comparison-section {
        padding-top: 40px;
    }

    .maths-hero {
        padding-top: 68px;
    }

    .maths-hero-layout {
        grid-template-columns: 1fr;
        gap: 54px;
    }

    .maths-hero-content {
        max-width: 720px;
        text-align: center;
    }

    .maths-hero-content > p {
        margin-right: auto;
        margin-left: auto;
        text-align: center;
    }

    .maths-trust-row,
    .maths-hero-actions {
        justify-content: center;
    }

    .maths-hero-visual {
        width: 620px;
        max-width: 100%;
        margin: 0 auto;
        transform: none;
    }

    .maths-impact-layout,
    .maths-schools-layout {
        grid-template-columns: 1fr;
    }

    .maths-impact-copy {
        min-height: 330px;
    }

    .maths-schools-layout {
        gap: 52px;
    }

    .maths-reasons-stage {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
        min-height: 0;
    }

    .maths-reason-card,
    .maths-reason-center {
        position: static;
        width: auto;
        min-height: 175px;
        transform: none;
    }

    .maths-reason-center {
        grid-column: 1 / -1;
        width: 210px;
        height: 210px;
        margin: 0 auto;
    }

    .maths-reason-line {
        display: none;
    }

    .maths-journey-grid,
    .maths-coverage-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .maths-journey-card:last-child,
    .maths-coverage-card:last-child {
        grid-column: 1 / -1;
        width: calc(50% - 14px);
        justify-self: center;
    }

    .maths-results-heading {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .maths-results-heading .maths-section-heading {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .maths-result-chip-right {
        margin-top: 0;
    }

    .maths-testimonial-grid {
        grid-template-columns: 1fr;
        max-width: 720px;
        margin: 0 auto;
    }

    .maths-testimonial-card,
    .maths-testimonial-featured {
        min-height: auto;
    }

    .maths-faq-grid {
        gap: 22px;
    }
}

@media screen and (max-width: 767px) {
    .maths-container {
        padding-right: 22px;
        padding-left: 22px;
    }

    .maths-section {
        padding: 64px 0;
    }

    .maths-coverage-section {
        padding-bottom: 32px;
    }

    .maths-comparison-section {
        padding-top: 32px;
    }

    .maths-section-heading {
        margin-bottom: 46px;
    }

    .maths-section-title {
        font-size: 34px;
    }

    .maths-section-copy {
        font-size: 16px;
    }

    .maths-hero {
        min-height: auto;
        padding: 54px 0 64px;
    }

    .maths-hero-content h1 {
        font-size: 39px;
    }

    .maths-hero-content > p {
        font-size: 17px;
    }

    .maths-trust-row {
        flex-direction: column;
    }

    .maths-trust-copy {
        justify-content: center;
        text-align: center;
    }

    .maths-hero-visual {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
        width: 100%;
        min-height: 0;
    }

    .maths-hero-photo,
    .maths-floating-card {
        position: static;
        width: 100%;
        min-width: 0;
    }

    .maths-hero-photo {
        grid-column: 1 / -1;
        height: auto;
        aspect-ratio: 3 / 4;
        border-radius: 160px 160px 16px 16px;
        transform: none;
    }

    .maths-floating-card {
        min-height: 116px;
    }

    .maths-live-card {
        padding-bottom: 13px;
    }

    .maths-live-image {
        height: 100px;
    }

    .maths-feedback-card {
        min-height: 116px;
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .maths-goals-card,
    .maths-mastery-card {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: center;
    }

    .maths-mastery-card {
        flex-direction: row;
    }

    .maths-impact-stats {
        grid-template-columns: 1fr;
    }

    .maths-stat-dark {
        grid-column: auto;
        flex-direction: column;
        align-items: flex-start;
    }

    .maths-live-learning {
        width: 100%;
        margin: 0;
        padding: 22px 0 0;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
        border-left: 0;
        text-align: left;
    }

    .maths-live-learning p {
        text-align: left;
    }

    .maths-impact-copy {
        min-height: 310px;
        padding: 32px;
    }

    .maths-school-list,
    .maths-reasons-stage,
    .maths-journey-grid,
    .maths-coverage-grid,
    .maths-results-heading,
    .maths-faq-grid {
        grid-template-columns: 1fr;
    }

    .maths-school-list strong {
        width: 100%;
    }

    .maths-reason-center,
    .maths-journey-card:last-child,
    .maths-coverage-card:last-child,
    .maths-results-heading .maths-section-heading,
    .maths-faq-card-last {
        grid-column: auto;
        width: 100%;
    }

    .maths-reason-center {
        width: 190px;
        height: 190px;
    }

    .maths-reachable-inner,
    .maths-results-cta {
        flex-direction: column;
        align-items: stretch;
        padding-top: 34px;
        padding-bottom: 34px;
    }

    .maths-reachable-inner .maths-button,
    .maths-results-cta .maths-button {
        width: 100%;
    }

    .maths-comparison-heading {
        grid-template-columns: 1fr;
    }

    .maths-comparison-heading > img {
        width: 260px;
        margin: -20px 0 -1px auto;
    }

    .maths-result-chip {
        width: 100%;
    }

    .maths-results-heading .maths-section-heading {
        grid-row: auto;
    }

    .maths-testimonial-featured {
        padding: 34px;
    }

    .maths-testimonial-featured blockquote {
        font-size: 20px;
    }

    .maths-faq-card {
        min-height: 0;
        padding: 28px;
    }

    .maths-closing-quote {
        padding: 82px 0;
    }
}

@media screen and (max-width: 479px) {
    .maths-container {
        padding-right: 16px;
        padding-left: 16px;
    }

    .maths-hero-content h1 {
        font-size: 34px;
    }

    .maths-pill {
        font-size: 11px;
    }

    .maths-hero-actions {
        flex-direction: column;
    }

    .maths-hero-actions .maths-button {
        width: 100%;
    }

    .maths-hero-visual {
        grid-template-columns: 1fr;
    }

    .maths-hero-photo {
        grid-column: auto;
        max-height: 520px;
    }

    .maths-floating-card {
        min-height: 0;
    }

    .maths-mastery-card,
    .maths-feedback-card,
    .maths-goals-card {
        padding: 18px;
    }

    .maths-stat-card,
    .maths-impact-copy,
    .maths-coverage-card,
    .maths-testimonial-card,
    .maths-results-cta {
        border-radius: 18px;
    }

    .maths-stat-card {
        min-height: 220px;
        padding: 28px;
    }

    .maths-stat-card > strong,
    .maths-stat-dark div > strong {
        font-size: 38px;
    }

    .maths-impact-copy h2 {
        font-size: 34px;
    }

    .maths-reachable-inner > div {
        align-items: flex-start;
    }

    .maths-reachable-inner > div > span {
        width: 52px;
        height: 52px;
    }

    .maths-journey-card > div,
    .maths-coverage-card,
    .maths-testimonial-card,
    .maths-faq-card {
        padding: 24px;
    }

    .maths-comparison-heading > img {
        width: 220px;
    }

    .maths-table-scroll::after {
        content: "Swipe to compare";
        position: sticky;
        right: 12px;
        bottom: 8px;
        display: inline-block;
        margin: 8px 12px;
        padding: 5px 9px;
        border-radius: 999px;
        background: var(--maths-navy);
        color: #ffffff;
        font-size: 10px;
    }

    .maths-faq-card {
        flex-direction: column;
    }
}
