/* The School Gallery — marketing site stylesheet.
   Mirrors the app's own design tokens (resources/css/app.css): the same
   plum -> magenta -> rose brand gradient, dark slate-950 background,
   translucent "glass" cards, Instrument Sans body font. */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;500;600;700&display=swap');

:root {
    --color-brand-plum: #4a0740;
    --color-brand-magenta: #c81457;
    --color-brand-rose: #ff4d7a;

    --bg-950: #020617;
    --bg-900: #0f172a;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;

    --emerald-300: #6ee7b7;
    --amber-300: #fcd34d;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
    background: var(--bg-950);
    color: var(--slate-200);
    font-family: 'Instrument Sans', ui-sans-serif, system-ui, sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

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

img {
    max-width: 100%;
    display: block;
}

.wrap {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Background ---------- */

.bg-scene {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(200, 20, 87, 0.22), transparent 60%), var(--bg-950);
}

.bg-tile {
    position: absolute;
    border-radius: 18px;
    opacity: 0.35;
    filter: blur(1px);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* ---------- Nav ---------- */

.site-nav {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(20px);
    background: rgba(2, 6, 23, 0.6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-nav .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--slate-100);
    font-size: 15px;
}

.brand-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--color-brand-plum), var(--color-brand-magenta), var(--color-brand-rose));
    box-shadow: 0 8px 20px -8px rgba(200, 20, 87, 0.6);
}

.brand-mark svg {
    width: 20px;
    height: 20px;
}

.brand-name {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 17px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 14px;
    font-weight: 500;
    color: var(--slate-400);
}

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

.nav-links a.active {
    color: var(--slate-100);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-toggle {
    display: none;
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 12px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(90deg, var(--color-brand-plum), var(--color-brand-magenta), var(--color-brand-rose));
    background-size: 160% 100%;
    background-position: left;
    color: #fff;
    box-shadow: 0 10px 25px -10px rgba(200, 20, 87, 0.5);
}

.btn-primary:hover {
    background-position: right;
    box-shadow: 0 10px 30px -8px rgba(200, 20, 87, 0.7);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--slate-100);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-lg {
    padding: 13px 26px;
    font-size: 15px;
    border-radius: 14px;
}

.btn-block {
    width: 100%;
}

.btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ---------- Cards / glass panels ---------- */

.card {
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
}

.card-pad {
    padding: 32px;
}

/* ---------- Hero ---------- */

.hero {
    padding: 96px 0 64px;
    text-align: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--slate-300);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 6px 14px;
    margin-bottom: 24px;
}

.eyebrow .dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--color-brand-rose);
}

h1 {
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.1;
    font-weight: 700;
    color: var(--slate-100);
    margin: 0 0 20px;
    letter-spacing: -0.02em;
}

h1 .accent {
    background: linear-gradient(90deg, var(--color-brand-rose), var(--color-brand-magenta));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.lede {
    font-size: 18px;
    color: var(--slate-400);
    max-width: 620px;
    margin: 0 auto 36px;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.hero-note {
    font-size: 13px;
    color: var(--slate-500);
}

/* ---------- Sections ---------- */

section {
    padding: 72px 0;
}

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

.section-head h2 {
    font-size: clamp(26px, 3.5vw, 36px);
    color: var(--slate-100);
    margin: 0 0 14px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.section-head p {
    color: var(--slate-400);
    font-size: 16px;
    margin: 0;
}

.kicker {
    display: block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-brand-rose);
    margin-bottom: 10px;
}

/* ---------- Feature grid ---------- */

.grid {
    display: grid;
    gap: 20px;
}

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

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

.feature-card {
    padding: 28px;
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(200, 20, 87, 0.5), rgba(255, 77, 122, 0.3));
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 18px;
}

.feature-icon svg {
    width: 22px;
    height: 22px;
    stroke: #fff;
}

.feature-card h3 {
    font-size: 16px;
    color: var(--slate-100);
    margin: 0 0 8px;
    font-weight: 600;
}

.feature-card p {
    font-size: 14px;
    color: var(--slate-400);
    margin: 0;
}

/* ---------- Compliance banner ---------- */

.banner {
    border-radius: 24px;
    border: 1px solid rgba(255, 77, 122, 0.25);
    background: linear-gradient(135deg, rgba(74, 7, 64, 0.5), rgba(200, 20, 87, 0.12));
    padding: 36px;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.banner-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.banner-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--color-brand-rose);
}

.banner-body h3 {
    margin: 0 0 6px;
    font-size: 18px;
    color: var(--slate-100);
}

.banner-body p {
    margin: 0;
    font-size: 14px;
    color: var(--slate-300);
    max-width: 640px;
}

.banner-pills {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.pill {
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--slate-200);
}

/* ---------- Product mockup (SVG-based illustration standing in for a screenshot) ---------- */

.mockup {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6);
}

.mockup svg {
    display: block;
    width: 100%;
    height: auto;
}

/* ---------- Pricing table ---------- */

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

.plan-card {
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
}

.plan-card.featured {
    border-color: rgba(255, 77, 122, 0.4);
    background: linear-gradient(160deg, rgba(74, 7, 64, 0.55), rgba(255, 255, 255, 0.05));
    position: relative;
}

.plan-featured-tag {
    position: absolute;
    top: -13px;
    left: 28px;
    background: linear-gradient(90deg, var(--color-brand-magenta), var(--color-brand-rose));
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 999px;
}

.plan-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--slate-100);
    margin: 0 0 6px;
}

.plan-desc {
    font-size: 13px;
    color: var(--slate-400);
    margin: 0 0 20px;
    min-height: 34px;
}

.plan-price {
    font-size: 34px;
    font-weight: 700;
    color: var(--slate-100);
    margin-bottom: 4px;
}

.plan-price span {
    font-size: 14px;
    font-weight: 500;
    color: var(--slate-500);
}

.plan-list {
    list-style: none;
    margin: 24px 0 28px;
    padding: 0;
    font-size: 14px;
    color: var(--slate-300);
    flex: 1;
}

.plan-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 6px 0;
}

.plan-list svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 2px;
    stroke: var(--emerald-300);
}

.plan-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.compare-table th,
.compare-table td {
    padding: 14px 16px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.compare-table th:first-child,
.compare-table td:first-child {
    text-align: left;
    color: var(--slate-300);
}

.compare-table thead th {
    color: var(--slate-100);
    font-weight: 700;
}

.compare-table tbody td svg {
    width: 17px;
    height: 17px;
    stroke: var(--emerald-300);
}

.compare-table tbody td svg.no {
    stroke: var(--slate-600, #475569);
}

/* ---------- Contact / forms ---------- */

.form-shell {
    max-width: 640px;
    margin: 0 auto;
}

.field {
    display: block;
    margin-bottom: 18px;
}

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

.field label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--slate-300);
    margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 11px 14px;
    color: var(--slate-100);
    font-family: inherit;
    font-size: 14px;
}

.field select option {
    background: var(--bg-900);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: rgba(255, 77, 122, 0.5);
    box-shadow: 0 0 0 3px rgba(255, 77, 122, 0.15);
}

.field-error {
    color: #fca5a5;
    font-size: 12px;
    margin-top: 5px;
}

.form-status {
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 14px;
    margin-bottom: 20px;
}

.form-status.ok {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: var(--emerald-300);
}

.form-status.err {
    background: rgba(244, 63, 94, 0.1);
    border: 1px solid rgba(244, 63, 94, 0.25);
    color: #fca5a5;
}

.contact-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.contact-option {
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    padding: 16px;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
}

.contact-option strong {
    display: block;
    font-size: 13px;
    color: var(--slate-100);
    margin-bottom: 4px;
}

.contact-option span {
    font-size: 12px;
    color: var(--slate-500);
}

.contact-option.selected {
    border-color: rgba(255, 77, 122, 0.5);
    background: rgba(200, 20, 87, 0.12);
}

/* ---------- Footer ---------- */

.site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 40px 0;
    font-size: 13px;
    color: var(--slate-500);
}

.footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

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

/* ---------- Responsive ---------- */

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

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

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

/* The pricing grid gets its own, narrower breakpoints so 4-across holds on
   ordinary laptop/desktop widths — .wrap tops out at 1120px, so a 1100px
   trigger here left almost no room to ever show 4 in a row. Falls back to
   2-per-line before 1-per-line, never anything in between. */
@media (max-width: 900px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

@media (max-width: 980px) {
    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        background: var(--bg-950);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.2s ease;
    }

    .nav-links.open {
        max-height: 320px;
    }

    .nav-links a {
        padding: 14px 24px;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.12);
        color: var(--slate-100);
        cursor: pointer;
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

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

    .compare-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

@media (min-width: 981px) {
    .nav-toggle {
        display: none;
    }
}

/* Long-form legal content (privacy policy, terms of service). */
.legal {
    max-width: 760px;
    margin: 0 auto;
    padding-bottom: 40px;
}

.legal h2 {
    margin-top: 2.4em;
    font-size: 1.3rem;
    color: var(--slate-100);
}

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

.legal p,
.legal li {
    color: var(--slate-300);
    font-size: 0.95rem;
    line-height: 1.7;
}

.legal ul {
    padding-left: 1.2em;
}

.legal li {
    margin-bottom: 0.4em;
}

.legal .updated {
    color: var(--slate-500);
    font-size: 0.85rem;
    margin-bottom: 2em;
}

/* Sub-processor register / DPIA — a left-aligned data table, distinct from
   .compare-table's centred checkmark-grid layout. */
.register-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.86rem;
    margin: 1.2em 0 2em;
}

.register-table th,
.register-table td {
    text-align: left;
    vertical-align: top;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--slate-300);
}

.register-table thead th {
    color: var(--slate-100);
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.register-table td:first-child {
    color: var(--slate-100);
    font-weight: 600;
    white-space: nowrap;
}

.status-flag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.status-flag.ok {
    background: rgba(52, 211, 153, 0.12);
    color: #6ee7b7;
}

.status-flag.review {
    background: rgba(251, 191, 36, 0.14);
    color: #fcd34d;
}

.dpia-risk {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 18px 20px;
    margin: 0 0 16px;
    background: rgba(255, 255, 255, 0.03);
}

.dpia-risk .risk-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 6px;
}

.dpia-risk .risk-head strong {
    color: var(--slate-100);
    font-size: 0.95rem;
}

.dpia-risk .risk-level {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 2px 8px;
    border-radius: 999px;
    white-space: nowrap;
}

.risk-level.low { background: rgba(52, 211, 153, 0.12); color: #6ee7b7; }
.risk-level.medium { background: rgba(251, 191, 36, 0.14); color: #fcd34d; }

.dpia-risk p {
    margin: 0.3em 0;
}

.legal a {
    color: var(--color-brand-rose);
    text-decoration: underline;
}
