/* Term Time public pages: marketing site, sign in, onboarding and registration. */

:root {
    --tp-petrol: #1B4965;
    --tp-petrol-deep: #0F2D40;
    --tp-petrol-mid: #17394F;
    --tp-ink: #10242E;
    --tp-slate: #4F6169;
    --tp-ground: #F4F6F3;
    --tp-line: #D9E0DC;
    --tp-control: #7B8D94;
    --tp-leaf-deep: #2E7A2A;
    --tp-leaf-on-dark: #A9DB7E;
    --tp-gold: #F4A836;
    --tp-danger: #A1221B;
    --tp-display: 'Schibsted Grotesk', system-ui, sans-serif;
    --tp-body: 'Schibsted Grotesk', system-ui, sans-serif;
    /* Read by the shared price calculator */
    --tc-primary: #1B4965;
}

.tp {
    margin: 0;
    background: var(--tp-ground);
    color: var(--tp-ink);
    font-family: var(--tp-body);
    font-size: 17px;
    line-height: 1.55;
}

.tp *, .tp *::before, .tp *::after { box-sizing: border-box; }
.tp a { color: var(--tp-petrol); }
.tp a:hover { color: var(--tp-petrol-deep); }
.tp :focus-visible { outline: 2px solid var(--tp-petrol); outline-offset: 2px; }
.tp h1, .tp h2, .tp h3 { margin: 0; font-family: var(--tp-display); letter-spacing: -0.02em; }
.tp p { margin: 0; }

.tp-container { max-width: 1280px; margin: 0 auto; padding-inline: clamp(16px, 4vw, 40px); }
.tp-section { padding-block: clamp(56px, 7vw, 88px); }
.tp-section-title { font-size: clamp(34px, 4vw, 52px); font-weight: 800; line-height: 1.08; }
.tp-lead { max-width: 760px; color: var(--tp-slate); font-size: 20px; text-wrap: pretty; }
.tp-muted { color: var(--tp-slate); }

/* Buttons */
.tp .tp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 10px;
    font: 600 16px var(--tp-body);
    text-decoration: none;
    cursor: pointer;
}
.tp .tp-btn-lg { min-height: 52px; padding: 0 26px; border-radius: 12px; font-weight: 700; }
.tp .tp-btn-block { width: 100%; }
.tp .tp-btn-primary { background: var(--tp-petrol); color: #FFFFFF; }
.tp .tp-btn-primary:hover { background: var(--tp-petrol-deep); color: #FFFFFF; }
.tp .tp-btn-gold { background: var(--tp-gold); color: var(--tp-ink); }
.tp .tp-btn-gold:hover { background: #E2962A; color: var(--tp-ink); }
.tp .tp-btn-ink { background: var(--tp-ink); color: #FFFFFF; }
.tp .tp-btn-ink:hover { background: #000000; color: #FFFFFF; }
.tp .tp-btn-outline { background: #FFFFFF; border-color: var(--tp-control); color: var(--tp-ink); }
.tp .tp-btn-quiet { color: var(--tp-petrol); text-decoration: underline; }
.tp .tp-btn-quiet-dark { color: var(--tp-ink); text-decoration: underline; }

.tp .tp-btn-white { background: #FFFFFF; color: var(--tp-petrol-deep); }
.tp .tp-btn-white:hover { background: #E7EEF1; color: var(--tp-petrol-deep); }

/* Navigation and footer */
.tp-nav { background: #FFFFFF; border-bottom: 1px solid var(--tp-line); }
.tp-nav-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 24px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 12px clamp(16px, 4vw, 40px);
}
.tp .tp-wordmark {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: inherit;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-decoration: none;
}
.tp .tp-wordmark .tp-logo { flex: none; display: block; border-radius: 50%; }
.tp-nav .tp-wordmark { color: var(--tp-ink); }
.tp-nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; }
.tp-nav-links > a:not(.tp-btn) { display: inline-flex; align-items: center; min-height: 44px; color: var(--tp-ink); font-weight: 500; text-decoration: none; }
.tp-nav-links > a:not(.tp-btn):hover { text-decoration: underline; text-underline-offset: 4px; }
.tp-nav-links > a[aria-current="page"] { font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }

.tp-footer { background: var(--tp-petrol-deep); color: #C9D6DC; font-size: 15px; }
.tp-footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.4fr;
    gap: 32px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 56px clamp(16px, 4vw, 40px) 40px;
}
.tp-footer-inner > div { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.tp .tp-footer h2 { margin-bottom: 4px; color: #FFFFFF; font-family: var(--tp-body); font-size: 15px; font-weight: 600; letter-spacing: 0; }
.tp .tp-footer a { color: #C9D6DC; text-decoration: none; overflow-wrap: anywhere; }
.tp .tp-footer a:hover { color: #FFFFFF; text-decoration: underline; }
.tp .tp-footer :focus-visible { outline-color: #FFFFFF; }
.tp-footer .tp-wordmark { color: #FFFFFF; }
.tp-footer-legal { max-width: 1280px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px) 32px; font-size: 14px; }
@media (max-width: 520px) {
    /* Logo and the main action on one line, the other links beneath */
    .tp-nav-links { display: contents; }
    .tp-nav-links > .tp-btn { order: 1; }
    .tp-nav-links > a:not(.tp-btn) { order: 2; }
    .tp-nav .tp-wordmark { flex: 1 1 auto; font-size: 18px; }
    .tp .tp-nav-links > .tp-btn { min-height: 40px; padding: 0 12px; font-size: 15px; }
    .tp-nav-inner { row-gap: 2px; column-gap: 16px; }
    .tp-nav-links > a:not(.tp-btn) { min-height: 36px; }
}
@media (max-width: 760px) {
    .tp-footer-inner { grid-template-columns: 1fr 1fr; }
    .tp-footer-brand { grid-column: 1 / -1; }
    .tp-footer-inner > div:last-child { grid-column: 1 / -1; }
}

/* Marketing hero */
.tp-hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); gap: 56px; align-items: center; padding-block: clamp(40px, 6vw, 72px) 64px; }
.tp-hero-copy { display: flex; flex-direction: column; gap: 24px; }
.tp-hero h1 { font-size: clamp(46px, 6.4vw, 84px); font-weight: 800; line-height: 1; letter-spacing: -0.025em; }
.tp-hero-lead { max-width: 520px; color: var(--tp-slate); font-size: 21px; text-wrap: pretty; }
.tp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.tp-note { color: var(--tp-slate); font-size: 15px; }

.tp-demo { position: relative; padding-bottom: 28px; }
.tp-demo-window { margin-right: 56px; background: #FFFFFF; border: 1px solid var(--tp-line); border-radius: 16px; overflow: hidden; box-shadow: 0 24px 48px rgba(15, 45, 64, 0.14); }
.tp-demo-bar { display: flex; flex-direction: column; gap: 8px; padding: 12px 20px; background: var(--tp-petrol-deep); color: #C9D6DC; font-size: 13px; }
.tp-weeks { display: grid; grid-template-columns: repeat(13, minmax(0, 1fr)); gap: 3px; }
.tp-weeks span { height: 6px; background: #3C5A6B; border-radius: 2px; }
.tp-weeks .is-done { background: #7BC142; }
.tp-weeks .is-now { background: var(--tp-gold); }
.tp-demo-body { display: flex; flex-direction: column; gap: 14px; padding: 22px; }
.tp-demo-greeting { font-family: var(--tp-display); font-size: 24px; font-weight: 700; }
.tp-demo-row { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid #E5EAE7; font-size: 15px; }
.tp-demo-row b { color: var(--tp-petrol); font-weight: 600; white-space: nowrap; }
.tp-demo-figures { display: flex; flex-wrap: wrap; gap: 32px; }
.tp-demo-figures div { display: flex; flex-direction: column; font-size: 13px; color: var(--tp-slate); }
.tp-demo-figures strong { color: var(--tp-ink); font-family: var(--tp-display); font-size: 30px; line-height: 1.2; }
.tp-demo-phone { position: absolute; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 10px; width: 188px; padding: 18px 14px; background: #FFFFFF; border: 6px solid var(--tp-ink); border-radius: 26px; box-shadow: 0 18px 36px rgba(15, 45, 64, 0.22); font-size: 14px; line-height: 1.35; }
.tp-demo-phone small { color: var(--tp-slate); font-size: 13px; }
.tp-demo-phone b { padding: 8px; background: var(--tp-gold); border-radius: 8px; text-align: center; }
.tp-demo-caption { margin-top: 10px; color: var(--tp-slate); font-size: 14px; }

/* Bands */
.tp-band { background: #FFFFFF; border-block: 1px solid var(--tp-line); }
.tp-proof { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 16px 32px; padding-block: 24px; }
.tp-proof div { display: flex; flex-direction: column; }
.tp-proof strong { font-size: 17px; font-weight: 600; }
.tp-proof span { color: var(--tp-slate); font-size: 15px; }
.tp-proof .tp-figure { font-family: var(--tp-display); font-size: 34px; font-weight: 700; line-height: 1.15; }

.tp-dark { background: var(--tp-petrol-deep); color: #FFFFFF; }
.tp-dark .tp-lead { color: #C9D6DC; }
.tp-dark-note { color: #C9D6DC; font-size: 16px; }
.tp-stack { display: flex; flex-direction: column; gap: 40px; }
.tp-head { display: flex; flex-direction: column; gap: 14px; }

.tp-term-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 16px; }
.tp-term-card { display: flex; flex-direction: column; gap: 12px; padding: 24px; background: var(--tp-petrol-mid); border-radius: 16px; }
.tp-term-card span { color: var(--tp-leaf-on-dark); font-size: 15px; font-weight: 600; }
.tp-term-card h3 { font-size: 26px; font-weight: 700; line-height: 1.15; }
.tp-term-card p { color: #DCE6EA; font-size: 16px; }

.tp-roles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr)); gap: 32px 40px; }
.tp-role { display: flex; flex-direction: column; gap: 8px; padding-top: 16px; border-top: 2px solid var(--tp-ink); }
.tp-role h3 { font-family: var(--tp-body); font-size: 20px; font-weight: 700; letter-spacing: 0; }

.tp-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 32px; margin: 0; padding: 0; list-style: none; }
.tp-steps li { display: flex; gap: 16px; }
.tp-step-n { flex: none; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: #E8F4E0; border-radius: 10px; color: #205E1E; font-weight: 700; }
.tp-steps div { display: flex; flex-direction: column; gap: 2px; }

.tp-cta { background: var(--tp-gold); }
.tp-cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 64px; padding-block: 72px; }
.tp-cta h2 { font-size: clamp(34px, 4.4vw, 56px); font-weight: 800; line-height: 1.05; }
.tp-cta p { font-size: 19px; }

/* Features */
.tp-modules { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 16px; }
.tp-module { display: flex; flex-direction: column; gap: 12px; padding: 24px; background: #FFFFFF; border: 1px solid var(--tp-line); border-radius: 16px; }
.tp-module h2 { font-family: var(--tp-body); font-size: 21px; font-weight: 700; letter-spacing: 0; }
.tp-module ul { flex: 1; display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 15px; }
.tp-module li { display: flex; gap: 10px; }
.tp-module li::before, .tp .features-list .check { color: var(--tp-leaf-deep); font-weight: 700; }
.tp-module li::before { content: '\2713'; }
.tp-plan-tag { align-self: flex-start; padding: 3px 10px; background: #E9EEF0; border-radius: 6px; color: #33474F; font-size: 14px; font-weight: 600; }

/* Pricing: class names shared with the plan grid and price calculator */
.tp .tp-pricing-hero { display: flex; flex-direction: column; gap: 12px; padding-block: clamp(40px, 6vw, 64px) 32px; }
.tp .tp-pricing-hero h1 { max-width: 900px; font-size: clamp(42px, 5.4vw, 72px); font-weight: 800; line-height: 1.02; }
.tp-calc-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; margin-bottom: 32px; padding: clamp(24px, 3vw, 40px); background: var(--tp-petrol-deep); border-radius: 16px; color: #FFFFFF; }
.tp-calc-band h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 700; }
.tp-calc-band p { color: #C9D6DC; }
.tp .pricing-section, .tp .note-section { max-width: 1280px !important; margin-inline: auto !important; padding-inline: clamp(16px, 4vw, 40px); }
.tp .pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr)); gap: 16px; margin-bottom: 40px; }
.tp .plan-card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 24px; background: #FFFFFF; border: 1px solid var(--tp-line); border-radius: 16px; }
.tp .plan-card.popular { border: 2px solid var(--tp-petrol); }
.tp .popular-tag { align-self: flex-start; padding: 2px 10px; background: var(--tp-gold); border-radius: 6px; color: var(--tp-ink); font-size: 13px; font-weight: 700; }
.tp .plan-name { font-size: 20px; font-weight: 700; }
.tp .plan-desc, .tp .plan-price-unit { color: var(--tp-slate); font-size: 15px; }
.tp .plan-price { font-family: var(--tp-display); font-size: 40px; font-weight: 700; line-height: 1.1; }
.tp .plan-price-contact { font-family: var(--tp-display); font-size: 26px; font-weight: 700; line-height: 1.2; }
.tp .divider { width: 100%; margin: 0; border: 0; border-top: 1px solid var(--tp-line); }
.tp .features-list { flex: 1; display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 15px; }
.tp .features-list .cross { color: var(--tp-slate); }
.tp .btn-cta { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; background: #FFFFFF; border: 1px solid var(--tp-petrol); border-radius: 10px; color: var(--tp-petrol); font-weight: 600; text-decoration: none; }
.tp .btn-cta-popular { background: var(--tp-petrol); color: #FFFFFF; }
.tp .btn-cta-popular:hover { background: var(--tp-petrol-deep); color: #FFFFFF; }
.tp .note-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 32px 40px; }
.tp .note-item { padding-top: 16px; border-top: 2px solid var(--tp-ink); }
.tp .note-item h4 { margin: 0 0 8px; font-size: 18px; font-weight: 700; }
.tp .note-item p { color: var(--tp-slate); font-size: 15px; }
.tp .calc-modal { font-family: var(--tp-body); color: var(--tp-ink); }
.tp .calc-head h2 { font-family: var(--tp-display); }
.tp .calc-head p, .tp .calc-result span, .tp .calc-note { color: var(--tp-slate); }
.tp .calc-field select, .tp .calc-field input { min-height: 44px; border-color: var(--tp-control); }
.tp .calc-close { min-width: 44px; min-height: 44px; }

/* Sign in */
.tp-split { display: flex; flex-wrap: wrap; min-height: 100vh; }
.tp-split-brand { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: clamp(24px, 4vw, 64px); background: var(--tp-petrol-deep); color: #FFFFFF; }
.tp-split-brand .tp-wordmark { color: #FFFFFF; }
.tp-split-brand h2 { max-width: 560px; font-size: clamp(40px, 5vw, 68px); font-weight: 800; line-height: 1.02; }
.tp-split-brand ul { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; color: #E7EEF0; }
.tp-split-brand li { display: flex; gap: 10px; }
.tp-split-brand li::before { content: '\2713'; color: var(--tp-leaf-on-dark); font-weight: 700; }
.tp-split-main { flex: 1 1 480px; min-width: 0; display: flex; align-items: center; justify-content: center; padding: clamp(32px, 5vw, 80px) clamp(16px, 5vw, 80px); }

.tp-form { display: flex; flex-direction: column; gap: 20px; width: 100%; max-width: 420px; }
.tp-form h1 { font-size: 44px; font-weight: 800; line-height: 1.05; }
.tp-field { display: flex; flex-direction: column; gap: 6px; }
.tp-field label { font-size: 15px; font-weight: 600; }
.tp-field input, .tp-input {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    background: #FFFFFF;
    border: 1px solid var(--tp-control);
    border-radius: 10px;
    color: var(--tp-ink);
    font: 400 16px var(--tp-body);
}
.tp-field input:focus, .tp-input:focus { border-color: var(--tp-petrol); outline: 2px solid var(--tp-petrol); outline-offset: 0; }
.tp-password { position: relative; display: flex; }
.tp-password input { padding-right: 72px; }
.tp .tp-password button { position: absolute; top: 2px; right: 2px; min-width: 64px; min-height: 44px; background: none; border: 0; color: var(--tp-petrol); font: 600 14px var(--tp-body); cursor: pointer; }
.tp-options { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.tp-check { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; font-weight: 500; cursor: pointer; }
.tp-check input { width: 20px; height: 20px; accent-color: var(--tp-petrol); }
.tp .tp-inline-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 600; }
.tp-alert { padding: 12px 14px; background: #FBEAE8; border-radius: 10px; color: var(--tp-danger); font-size: 15px; }
.tp-alert ul { margin: 0; padding-left: 18px; }
.tp-alert .validation-summary-valid { display: none; }
.tp-error, .tp .field-validation-error { color: var(--tp-danger); font-size: 14px; }
.tp .tp-busy { display: none; }
.tp .loading .tp-idle { display: none; }
.tp .loading .tp-busy { display: inline; }
.tp-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; color: var(--tp-slate); font-size: 14px; }
.tp-foot div { display: flex; gap: 16px; }

/* Single-card pages */
.tp-center { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 32px 16px; }
.tp-card { display: flex; flex-direction: column; gap: 18px; width: 100%; max-width: 520px; padding: clamp(24px, 4vw, 40px); background: #FFFFFF; border: 1px solid var(--tp-line); border-radius: 16px; }
.tp-card.is-wide { max-width: 640px; }
.tp-card h1 { font-size: clamp(32px, 4vw, 40px); font-weight: 800; line-height: 1.08; }
.tp-card .tp-wordmark { color: var(--tp-ink); }
.tp-card-mark { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; background: #E8F4E0; border-radius: 14px; color: #205E1E; }
.tp-card-mark.is-bad { background: #FBEAE8; color: var(--tp-danger); }
.tp-card-mark.is-info { background: #E9EEF0; color: var(--tp-petrol); }
.tp-pill { align-self: flex-start; padding: 4px 12px; background: #E8F4E0; border-radius: 6px; color: #205E1E; font-size: 15px; font-weight: 600; }
.tp-pill.is-warn { background: #FDF1DC; color: #6F4700; }
.tp-pill.is-bad { background: #FBEAE8; color: var(--tp-danger); }
.tp-pill.is-info { background: #E9EEF0; color: #33474F; }
.tp-email { padding: 10px 14px; background: #E9EEF0; border-radius: 10px; font-weight: 600; overflow-wrap: anywhere; }
.tp-numbered { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; list-style: none; }
.tp-numbered li { display: flex; gap: 12px; }
.tp-numbered .tp-step-n { width: 32px; height: 32px; border-radius: 8px; font-size: 15px; }
.tp-numbered strong { display: block; }
.tp-bullets { display: flex; flex-direction: column; gap: 6px; margin: 0; padding-left: 20px; }
.tp-reg-number { padding: 14px; background: var(--tp-ground); border-radius: 10px; font-size: 22px; font-weight: 700; overflow-wrap: anywhere; text-align: center; }
.tp-rows { border: 1px solid var(--tp-line); border-radius: 12px; padding: 4px 16px; }
.tp-rows div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 16px; padding: 10px 0; border-top: 1px solid #E5EAE7; }
.tp-rows div:first-child { border-top: 0; }
.tp-inline-form { display: flex; flex-wrap: wrap; gap: 8px; }
.tp-inline-form .tp-input { flex: 1 1 240px; }

@media (max-width: 560px) {
    .tp-demo-window { margin-right: 0; }
    .tp-demo-phone { position: static; width: 100%; margin-top: 12px; }
}

/* ---------- Restyled pages that keep their original markup and scripts ---------- */

/* Signup */
.su { display: grid; grid-template-columns: minmax(360px, 5fr) 7fr; min-height: 100vh; background: #FFFFFF; }
.su-side {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 32px;
    height: 100vh;
    padding: clamp(24px, 3vw, 40px) clamp(24px, 4vw, 64px);
    background: var(--tp-petrol-deep);
    color: #DCE6EA;
}
.tp .su-side .tp-wordmark { color: #FFFFFF; }
.su-preview p { margin-top: 14px; font-size: 15px; }
.su-side-note { font-size: 15px; }

/* The report sheet heading, set the way the real PDF sets it */
.su-paper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    max-width: 440px;
    padding: 28px 28px 24px;
    background: #FFFFFF;
    color: var(--tp-ink);
    font-size: 12px;
    text-align: center;
    overflow-wrap: anywhere;
}
.su-paper strong { font-size: 19px; font-weight: 700; line-height: 1.2; }
.su-paper em { margin-top: 10px; font-size: 13px; font-style: normal; font-weight: 600; }
.su-paper-rows { width: 100%; margin-top: 14px; border-top: 14px solid var(--tp-petrol-deep); }
.su-paper-rows i { display: block; height: 22px; border: 1px solid var(--tp-line); border-top: 0; }
.su-paper-sign { align-self: flex-start; min-width: 55%; margin-top: 30px; padding-top: 5px; border-top: 1px solid var(--tp-control); text-align: left; }

.su-main { width: 100%; max-width: 680px; padding: clamp(24px, 4vw, 56px) clamp(16px, 5vw, 72px) 40px; }
.su-mobile-mark { display: none !important; }
.tp .su-main h1 { font-size: clamp(30px, 3vw, 40px); font-weight: 700; line-height: 1.1; letter-spacing: -0.025em; text-wrap: balance; }
.tp .su-lead { margin-top: -6px; color: var(--tp-slate); }

/* The same run of segments as the term ribbon in the app */
.su-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 0 0 clamp(28px, 4vw, 44px); padding: 0; list-style: none; color: var(--tp-slate); font-size: 14px; }
.su-steps li { padding-top: 9px; border-top: 4px solid var(--tp-line); }
.su-steps li.is-done { border-color: var(--tp-leaf-deep); }
.su-steps li.is-now { border-color: var(--tp-petrol); color: var(--tp-ink); font-weight: 600; }

.su-step { display: flex; flex-direction: column; gap: 20px; }
.su-step[hidden] { display: none; }
.su-step:focus { outline: none; }
.su-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; }
.su-code { display: flex; gap: 8px; }
.su-code .tp-input { flex: 1 1 auto; min-width: 0; }
.tp .su-code .tp-btn { flex: none; padding-inline: 14px; font-size: 15px; font-weight: 600; }
.su-hint { color: var(--tp-slate); font-size: 14px; line-height: 1.4; }
.su-status { font-size: 14px; font-weight: 600; }
.su-status:empty { display: none; }
.su-status.is-good { color: var(--tp-leaf-deep); }
.su-status.is-bad, .su-error { color: var(--tp-danger); }
.su-error { font-size: 14px; font-weight: 500; }
.su-error:empty { display: none; }
.tp .tp-input[aria-invalid="true"] { border-color: var(--tp-danger); }

.su-plans { display: flex; flex-direction: column; min-width: 0; margin: 0; padding: 0; border: 0; }
.su-plans legend { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 16px; width: 100%; margin-bottom: 8px; padding: 0; font-size: 15px; font-weight: 600; }
.su-plans legend a { font-weight: 500; }
.su-plan {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 2px 12px;
    align-items: baseline;
    margin-top: -1px;
    padding: 14px;
    border: 1px solid var(--tp-line);
    cursor: pointer;
}
.su-plan:first-of-type { border-radius: 10px 10px 0 0; }
.su-plan:last-of-type { border-radius: 0 0 10px 10px; }
.su-plan:hover { background: var(--tp-ground); }
.su-plan:has(input:checked) { position: relative; border-color: var(--tp-petrol); box-shadow: inset 0 0 0 1px var(--tp-petrol); }
.su-plan input { width: 18px; height: 18px; margin: 0; accent-color: var(--tp-petrol); align-self: center; }
.su-plan-name { font-weight: 700; }
.su-plan-price { font-size: 15px; font-weight: 500; text-align: right; }
.su-plan-includes { grid-column: 2 / -1; color: var(--tp-slate); font-size: 14px; }

.su-password-foot { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-top: -10px; }
.su-password-foot .su-hint { flex: 1 1 280px; }
.su-link { min-height: 32px; padding: 0; border: 0; background: none; color: var(--tp-petrol); font: 600 14px var(--tp-body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.su-terms { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.su-terms input { flex: none; width: 18px; height: 18px; margin-top: 4px; accent-color: var(--tp-petrol); }
.su-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 4px; }
.su-summary { margin-bottom: 20px; }
.su-summary ul { margin: 0; padding-left: 18px; }
.tp .su-foot { margin-top: 28px; color: var(--tp-slate); }
.su-foot a { font-weight: 600; }

@media (max-width: 900px) {
    .su { display: block; }
    .su-side { display: none; }
    .su-main { max-width: none; }
    .su-mobile-mark { display: inline-flex !important; margin-bottom: 24px; }
}
@media (max-width: 520px) {
    .su-pair { grid-template-columns: 1fr; }
    .su-code { flex-wrap: wrap; }
    .su-code .tp-input { flex-basis: 100%; }
    .su-plan { grid-template-columns: auto minmax(0, 1fr); }
    .su-plan-price { grid-column: 2; text-align: left; }
    .su-actions .tp-btn { flex: 1 1 0; }
}

/* Registration */
.tp-register { background: var(--tp-ground) !important; font-family: var(--tp-body) !important; color: var(--tp-ink); }
.tp-register .reg-topbar { box-shadow: none; }
.tp-register .reg-banner { background: var(--tp-petrol-deep) !important; }
.tp-register .banner-title { font-family: var(--tp-display); font-weight: 800; letter-spacing: -0.02em; }
.tp-register .form-card, .tp-register .intro-card, .tp-register .stepper-card { border: 1px solid var(--tp-line); border-radius: 16px; box-shadow: none !important; }
.tp-register .section-header { font-family: var(--tp-display); }
.tp-register .field input, .tp-register .field select { min-height: 44px; border: 1px solid var(--tp-control) !important; border-radius: 10px; }
.tp-register .btn-wiz { min-height: 44px; border-radius: 10px; }

/* Setup wizard */
.tp-wizard {
    --bs-primary: var(--tp-petrol);
    --bs-primary-rgb: 27, 73, 101;
    --bs-primary-active: var(--tp-petrol-deep);
    --bs-primary-light: #E9EEF0;
    --bs-text-primary: var(--tp-petrol);
    --bs-success: var(--tp-leaf-deep);
    --bs-text-gray-600: var(--tp-slate);
    background: var(--tp-ground) !important;
    font-family: var(--tp-body) !important;
    color: var(--tp-ink);
}
.tp-wizard .wizard-nav { background: var(--tp-petrol-deep); }
.tp-wizard .brand { font-family: var(--tp-display); }
.tp-wizard .user-info { color: #DCE6EA; }
.tp-wizard .card { border-radius: 14px; box-shadow: none; }
.tp-wizard .btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; font-weight: 600; }

/* A school's own public website. Colours and fonts stay the school's: only shape and rhythm change here. */
.tp-site .sw-hero .content { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); text-align: left; }
.tp-site .sw-hero h1 { max-width: 900px; font-size: clamp(44px, 5.8vw, 76px); font-weight: 800; line-height: 1.02; letter-spacing: -0.02em; }
.tp-site .sw-hero p { max-width: 680px; margin-left: 0; font-size: 20px; }
.tp-site .sw-hero .btn-hero, .tp-site .sw-cta .btn-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; font-weight: 700; }
.tp-site .sw-navbar .nav-links a { display: inline-flex; align-items: center; min-height: 44px; }
.tp-site .sw-toggle { min-width: 44px; min-height: 44px; }
.tp-site .sw-page-header { background: var(--sw-primary); }
.tp-site .sw-page-header::before { display: none; }
.tp-site .sw-page-header h1 { font-weight: 800; letter-spacing: -0.02em; }
.tp-site .sw-section h2, .tp-site .sw-cta h2 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.tp-site .sw-card, .tp-site .sw-stat-card { border: 1px solid #D9E0DC; box-shadow: none; }
.tp-site .sw-card:hover, .tp-site .sw-stat-card:hover { transform: none; }
.tp-site .sw-contact-form input, .tp-site .sw-contact-form select { min-height: 48px; }
.tp-site .sw-contact-form input, .tp-site .sw-contact-form select, .tp-site .sw-contact-form textarea { border: 1px solid #7B8D94; }
.tp-site .sw-contact-form button { min-height: 52px; font-weight: 700; }
.tp-site .sw-faq-item summary { min-height: 44px; }
.tp-site .sw-footer a { display: inline-flex; align-items: center; min-height: 32px; }

/* ---------- School website ---------- */

.ts-site {
    --ts-font-display: 'Bricolage Grotesque', system-ui, sans-serif;
    --ts-font-body: 'Figtree', system-ui, sans-serif;
    margin: 0;
    background: var(--ts-body-bg);
    color: var(--ts-body-text);
    font-family: var(--ts-font-body);
    font-size: 17px;
    line-height: 1.55;
}

.ts-site *, .ts-site *::before, .ts-site *::after { box-sizing: border-box; }
.ts-site img { max-width: 100%; }
.ts-site a:focus-visible, .ts-site button:focus-visible, .ts-site input:focus-visible,
.ts-site select:focus-visible, .ts-site textarea:focus-visible, .ts-site summary:focus-visible {
    outline: 2px solid var(--ts-primary);
    outline-offset: 2px;
}

.ts-site h1, .ts-site h2, .ts-site h3 {
    margin: 0;
    color: var(--ts-heading);
    font-family: var(--ts-font-display);
    letter-spacing: -0.015em;
    line-height: 1.1;
}

.ts-site h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; }

.ts-inner {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding-inline: clamp(16px, 4vw, 40px);
}

.ts-narrow { max-width: 820px; }

.ts-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    background: var(--ts-primary);
    border: 0;
    border-radius: var(--ts-button-radius);
    color: #FFFFFF !important;
    font: 600 16px var(--ts-font-body);
    text-decoration: none;
    cursor: pointer;
}

.ts-button:hover { background: var(--ts-primary-active); }
.ts-button.is-large { min-height: 52px; padding: 0 26px; font-weight: 700; }
.ts-button.is-wide { width: 100%; grid-column: 1 / -1; }
.ts-button.is-inverse { background: #FFFFFF; color: var(--ts-primary) !important; }
.ts-button.is-inverse:hover { background: var(--ts-primary-light); }

/* Navigation */
.ts-nav { background: var(--ts-nav-bg); border-bottom: 1px solid #D9E0DC; }
.ts-nav.is-sticky { position: sticky; top: 0; z-index: 50; }

.ts-nav-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 32px;
    max-width: 1240px;
    margin: 0 auto;
    padding: 12px clamp(16px, 4vw, 40px);
}

.ts-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--ts-heading);
    font-family: var(--ts-font-display);
    font-size: 21px;
    font-weight: 700;
    line-height: 1.15;
    text-decoration: none;
}

.ts-brand img { width: auto; height: 44px; border-radius: 10px; }
.ts-menu { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }

.ts-menu a:not(.ts-button) {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 12px;
    border-radius: 8px;
    color: var(--ts-nav-text);
    font-weight: 500;
    text-decoration: none;
}

.ts-menu a:not(.ts-button):hover { background: var(--ts-primary-light); }
.ts-menu a.is-active:not(.ts-button) { color: var(--ts-primary); font-weight: 700; }
.ts-menu .ts-button { margin-left: 8px; }

.ts-menu-toggle {
    display: none;
    min-height: 44px;
    padding: 0 14px;
    background: transparent;
    border: 1px solid #7B8D94;
    border-radius: 10px;
    color: var(--ts-nav-text);
    font: 600 15px var(--ts-font-body);
    cursor: pointer;
}

/* Hero */
.ts-hero-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr));
    align-items: center;
    gap: 48px;
    max-width: 1240px;
    margin: 0 auto;
    padding: 56px clamp(16px, 4vw, 40px);
}

.ts-hero-text { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.ts-site .ts-hero h1 { font-size: clamp(42px, 5.8vw, 76px); font-weight: 800; line-height: 1.02; }
.ts-hero p { margin: 0; font-size: 21px; }

.ts-hero-image {
    width: 100%;
    max-height: 480px;
    border-radius: 20px;
    object-fit: cover;
}

.ts-hero.is-plain { background: var(--ts-primary); color: #FFFFFF; }
.ts-site .ts-hero.is-plain h1 { color: #FFFFFF; }
.ts-hero.is-plain .ts-hero-inner { grid-template-columns: minmax(0, 1fr); padding-block: 88px; }
.ts-hero.is-plain .ts-button { background: #FFFFFF; color: var(--ts-primary) !important; }
.ts-hero.is-plain .ts-button:hover { background: var(--ts-primary-light); }

.ts-hero.is-full {
    position: relative;
    background-position: center;
    background-size: cover;
    color: #FFFFFF;
}

.ts-hero.is-full::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--ts-overlay);
    opacity: max(var(--ts-overlay-opacity), 0.55);
}

.ts-hero.is-full .ts-hero-inner {
    position: relative;
    grid-template-columns: minmax(0, 1fr);
    min-height: var(--ts-hero-height);
}

.ts-site .ts-hero.is-full h1 { color: #FFFFFF; }

/* Sections */
.ts-section { padding-block: clamp(48px, 7vw, 80px); }
.ts-section.is-tinted { background: #F4F6F3; }
.ts-lead { margin: 12px 0 0; font-size: 19px; opacity: 0.85; }
.ts-body { margin-top: 20px; max-width: 760px; }
.ts-body > :first-child { margin-top: 0; }
.ts-prose > .ts-button { margin-top: 20px; }

.ts-image-text {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
    align-items: center;
    gap: 48px;
}

.ts-image-text img { width: 100%; border-radius: 16px; object-fit: cover; }

.ts-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 20px;
    margin-top: 32px;
}

.ts-card {
    padding: 24px;
    background: #FFFFFF;
    border: 1px solid #D9E0DC;
    border-radius: var(--ts-radius);
}

.ts-site .ts-card h3 { font-size: 22px; font-weight: 700; }
.ts-card p { margin: 10px 0 0; }

.ts-stats-band { padding-block: 48px; background: var(--ts-primary); color: #FFFFFF; }
.ts-site .ts-stats-band h2 { color: #FFFFFF; }

.ts-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
    gap: 24px;
    margin-top: 24px;
}

.ts-stats div { display: flex; flex-direction: column; }
.ts-stats strong { font-family: var(--ts-font-display); font-size: 44px; line-height: 1.1; }

.ts-cta { padding-block: 56px; background: var(--ts-primary); color: #FFFFFF; }
.ts-cta .ts-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 64px; }
.ts-site .ts-cta h2 { color: #FFFFFF; }
.ts-cta p { margin: 10px 0 0; font-size: 19px; }

.ts-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
    gap: 16px;
    margin-top: 32px;
}

.ts-gallery img { width: 100%; aspect-ratio: 4 / 3; border-radius: 14px; object-fit: cover; }

.ts-faq { padding: 16px 0; border-bottom: 1px solid #C9D2CE; }
.ts-faq summary { min-height: 28px; font-weight: 600; cursor: pointer; }
.ts-faq p { margin: 10px 0 0; }
.ts-faq:first-of-type { margin-top: 24px; }

.ts-video iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 14px; }

/* Contact form */
.ts-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 16px;
    margin-top: 28px;
    padding: 28px;
    background: #FFFFFF;
    border: 1px solid #D9E0DC;
    border-radius: 16px;
}

.ts-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ts-field.is-wide { grid-column: 1 / -1; }
.ts-field label { color: #10242E; font-size: 15px; font-weight: 600; }

.ts-field input, .ts-field select, .ts-field textarea {
    width: 100%;
    min-height: 48px;
    padding: 10px 14px;
    background: #FFFFFF;
    border: 1px solid #7B8D94;
    border-radius: 10px;
    color: #10242E;
    font: 400 16px var(--ts-font-body);
}

.ts-note { margin: 16px 0 0; padding: 12px 16px; border-radius: 10px; font-weight: 600; }
.ts-note.is-good { background: #E8F4E0; color: #205E1E; }
.ts-note.is-bad { background: #FBEAE8; color: #A1221B; }

/* Page header */
.ts-page-header { padding-block: 40px; background: #F4F6F3; border-bottom: 1px solid #D9E0DC; }
.ts-page-header a { color: var(--ts-primary); font-weight: 600; }
.ts-site .ts-page-header h1 { margin-top: 8px; font-size: clamp(36px, 5vw, 56px); font-weight: 800; }

/* Footer */
.ts-footer { padding-block: 48px 24px; background: var(--ts-footer-bg); color: var(--ts-footer-text); }
.ts-footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 32px; }
.ts-site .ts-footer h2 { margin-bottom: 12px; color: #FFFFFF; font-family: var(--ts-font-body); font-size: 17px; font-weight: 700; letter-spacing: 0; }
.ts-footer p { margin: 0 0 8px; }
.ts-footer a { display: block; padding: 4px 0; color: inherit; }
.ts-social { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 8px; }
.ts-footer-bottom { margin-top: 32px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.16); font-size: 15px; }

@media (max-width: 860px) {
    .ts-menu-toggle { display: block; }
    .ts-menu { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; }
    .ts-menu.is-open { display: flex; }
    .ts-menu .ts-button { margin: 8px 0 0; }
}

.ts-brand { flex: 1 1 0; min-width: 0; }

@media (min-width: 861px) {
    .ts-nav-inner { flex-wrap: nowrap; max-width: 1400px; }
    .ts-brand { flex: 0 1 auto; }
    .ts-menu { flex-wrap: nowrap; justify-content: flex-end; }
    .ts-menu a:not(.ts-button) { padding: 0 9px; white-space: nowrap; }
    .ts-menu .ts-button { white-space: nowrap; }
}

/* Long school names need the room, so the menu collapses earlier than a phone */
@media (max-width: 1180px) {
    .ts-menu-toggle { display: block; }
    .ts-nav-inner { flex-wrap: wrap; }
    .ts-brand { flex: 1 1 0; }
    .ts-menu { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; flex-wrap: wrap; }
    .ts-menu.is-open { display: flex; }
    .ts-menu .ts-button { margin: 8px 0 0; }
    .ts-menu a:not(.ts-button) { white-space: normal; }
}
