/* Edutoolz design system — shared by every page. Plain CSS (no @apply): Tailwind runs from the Play CDN. */

:root {
    --primary: #4428A6;
    --primary-600: #321B82;
    --primary-700: #22105C;
    --volt: #8EA2FF;
    --ink: #0b0320;
    --brand-gradient: linear-gradient(135deg, #2b1b7a 0%, #110334 45%, #0b0320 100%);
    --line: rgba(15, 23, 42, 0.08);
    --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: #fff;
    color: #0f172a;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

::selection {
    background: #E7E3F8;
    color: #110334;
}

/* ---------- Backdrops ---------- */

.bg-brand {
    background: var(--brand-gradient);
}

.bg-grid {
    background-image:
        linear-gradient(to right, rgba(15, 23, 42, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(15, 23, 42, 0.05) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 35%, transparent 100%);
    mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 35%, transparent 100%);
}

.bg-grid-dark {
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 100%);
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 100%);
}

.bg-dots {
    background-image: radial-gradient(rgba(15, 23, 42, 0.09) 1px, transparent 1px);
    background-size: 18px 18px;
}

/* ---------- Type ---------- */

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primary-700);
}

.eyebrow::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 2px;
    background: var(--primary);
    box-shadow: 0 0 0 3px rgba(68, 40, 166, 0.18);
}

.eyebrow-dark {
    color: #A99BE6;
}

.text-gradient {
    background: linear-gradient(95deg, #22105C 0%, #4428A6 45%, #4F63E6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.text-gradient-dark {
    background: linear-gradient(95deg, #A99BE6 0%, #4428A6 40%, #8EA2FF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: 2.75rem;
    padding: 0 1.25rem;
    border-radius: 999px;
    font-size: 0.9375rem;
    font-weight: 600;
    white-space: nowrap;
    transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background-color 0.25s, border-color 0.25s, color 0.25s;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn:focus-visible,
.nav-link:focus-visible,
a:focus-visible,
button:focus-visible,
summary:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

.btn i {
    font-size: 0.8em;
    transition: transform 0.25s var(--ease-out);
}

.btn:hover .fa-arrow-right,
.btn:hover .fa-arrow-up-right-from-square {
    transform: translateX(3px);
}

.btn-sm {
    height: 2.25rem;
    padding: 0 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    height: 3.25rem;
    padding: 0 1.75rem;
    font-size: 1rem;
}

.btn.btn-primary {
    color: #fff;
    background: var(--brand-gradient);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 8px 24px -10px rgba(17, 3, 52, 0.65);
}

.btn.btn-primary:hover {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 14px 30px -10px rgba(68, 40, 166, 0.7);
}

.btn.btn-dark {
    color: #fff;
    background: var(--ink);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 8px 24px -12px rgba(11, 3, 32, 0.6);
}

.btn.btn-dark:hover {
    background: #1a0b45;
}

.btn.btn-ghost {
    color: #0f172a;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(15, 23, 42, 0.12);
}

.btn.btn-ghost:hover {
    border-color: #A99BE6;
    background: #fff;
}

.btn.btn-light {
    color: var(--primary-700);
    background: #fff;
    box-shadow: 0 8px 24px -12px rgba(0, 0, 0, 0.4);
}

.btn[disabled] {
    opacity: 0.7;
    cursor: progress;
    transform: none;
}

/* ---------- Navigation ---------- */

.nav-shell {
    border: 1px solid transparent;
    transition: background-color 0.35s, border-color 0.35s, box-shadow 0.35s, backdrop-filter 0.35s;
}

.nav-shell.is-scrolled {
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow: 0 10px 30px -18px rgba(15, 23, 42, 0.35);
    -webkit-backdrop-filter: saturate(160%) blur(16px);
    backdrop-filter: saturate(160%) blur(16px);
}

.nav-link {
    position: relative;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #475569;
    transition: color 0.2s, background-color 0.2s;
}

.nav-link:hover {
    color: #0f172a;
}

.nav-link[aria-current='page'],
.nav-link.is-active {
    color: #0f172a;
    background: rgba(15, 23, 42, 0.05);
}

.mobile-menu {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 24px 50px -24px rgba(15, 23, 42, 0.4);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}

.scroll-progress {
    position: fixed;
    inset: 0 0 auto 0;
    height: 2px;
    z-index: 70;
    transform: scaleX(0);
    transform-origin: 0 50%;
    background: linear-gradient(90deg, #4428A6, #8EA2FF);
}

/* ---------- Cards & gradient borders ---------- */

.card {
    position: relative;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 1.5rem;
    transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}

/* Gradient hairline that fades in on hover (mask-composite ring). */
.card::before,
.g-border::before {
    content: '';
    position: absolute;
    inset: -1px;
    padding: 1px;
    border-radius: inherit;
    background: linear-gradient(135deg, #4428A6 0%, #8EA2FF 40%, rgba(15, 23, 42, 0.06) 75%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.card::before {
    opacity: 0;
    transition: opacity 0.45s var(--ease-out);
}

.card:hover::before {
    opacity: 1;
}

.card-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 48px -28px rgba(17, 3, 52, 0.45);
}

.g-border {
    position: relative;
    border-radius: 1.5rem;
}

/* No real border here, so draw the ring inside the box (survives overflow-hidden). */
.g-border::before {
    inset: 0;
}

/* Rotating conic border for the featured plan. */
@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

.border-spin {
    position: relative;
    border-radius: 1.75rem;
    isolation: isolate;
}

.border-spin::before {
    content: '';
    position: absolute;
    inset: -1.5px;
    padding: 1.5px;
    border-radius: inherit;
    background: conic-gradient(from var(--angle), #4428A6, #8EA2FF 12%, rgba(68, 40, 166, 0.15) 30%, rgba(68, 40, 166, 0.15) 65%, #4428A6 88%, #4428A6);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: spin-angle 6s linear infinite;
    pointer-events: none;
}

.border-spin::after {
    content: '';
    position: absolute;
    inset: 10% 8% -6%;
    z-index: -1;
    border-radius: inherit;
    background: radial-gradient(closest-side, rgba(68, 40, 166, 0.35), transparent);
    filter: blur(30px);
}

@keyframes spin-angle {
    to {
        --angle: 360deg;
    }
}

/* Pointer-follow spotlight for bento tiles (JS sets --mx/--my). */
.spotlight::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -20%), rgba(68, 40, 166, 0.09), transparent 45%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.spotlight:hover::after {
    opacity: 1;
}

.icon-tile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.9rem;
    color: var(--primary-600);
    background: linear-gradient(180deg, #F3F1FB, #E7E3F8);
    box-shadow: inset 0 0 0 1px rgba(68, 40, 166, 0.18);
    transition: transform 0.4s var(--ease-out);
}

.card:hover .icon-tile {
    transform: translateY(-2px) rotate(-4deg);
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #334155;
    background: #fff;
    border: 1px solid var(--line);
}

/* ---------- Scroll reveal (JS adds .is-in) ---------- */

.js [data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    filter: blur(6px);
    transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out), filter 0.9s var(--ease-out);
    transition-delay: var(--d, 0ms);
}

.js [data-reveal].is-in {
    opacity: 1;
    transform: none;
    filter: none;
}

/* ---------- SVG animation primitives ---------- */

/* Paths with pathLength="1" draw themselves once their reveal ancestor enters the viewport. */
.draw {
    stroke-dasharray: 1;
    stroke-dashoffset: 0;
}

.js .draw {
    stroke-dashoffset: 1;
    transition: stroke-dashoffset 2.2s cubic-bezier(0.65, 0, 0.35, 1) var(--draw-delay, 0.3s);
}

.js .is-in .draw {
    stroke-dashoffset: 0;
}

.fade-late {
    transition: opacity 1s ease 1.2s;
}

.js .fade-late {
    opacity: 0;
}

.js .is-in .fade-late {
    opacity: 1;
}

/* Donut ring: circle with pathLength="100", --value sets the fill. */
.ring {
    stroke-dasharray: var(--value, 0) 100;
}

.js .ring {
    stroke-dasharray: 0 100;
    transition: stroke-dasharray 1.8s cubic-bezier(0.65, 0, 0.35, 1) 0.5s;
}

.js .is-in .ring {
    stroke-dasharray: var(--value, 0) 100;
}

/* Bars that grow from the baseline. */
.bar {
    transform-origin: bottom;
}

.js .bar {
    transform: scaleY(0);
    transition: transform 1s var(--ease-out) var(--d, 0ms);
}

.js .is-in .bar {
    transform: scaleY(1);
}

.bar-x {
    transform-origin: left;
}

.js .bar-x {
    transform: scaleX(0);
    transition: transform 1.2s var(--ease-out) var(--d, 0.4s);
}

.js .is-in .bar-x {
    transform: scaleX(1);
}

/* Children that pop in one by one inside a revealed tile. */
.js .pop {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
    transition-delay: var(--d, 0ms);
}

.js .is-in .pop {
    opacity: 1;
    transform: none;
}

.dash-flow {
    stroke-dasharray: 3 7;
    animation: dash-flow 1.2s linear infinite;
}

@keyframes dash-flow {
    to {
        stroke-dashoffset: -20;
    }
}

.spin-slow {
    transform-box: fill-box;
    transform-origin: center;
    animation: spin 40s linear infinite;
}

.spin-slow-rev {
    transform-box: fill-box;
    transform-origin: center;
    animation: spin 60s linear infinite reverse;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.float {
    animation: float 6s ease-in-out infinite;
}

.float-delay {
    animation: float 7s ease-in-out -3s infinite;
}

@keyframes float {
    50% {
        transform: translateY(-10px);
    }
}

.pulse-dot {
    position: relative;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 999px;
    border: 2px solid currentColor;
    opacity: 0;
    animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
    0% {
        transform: scale(0.6);
        opacity: 0.7;
    }

    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

.svg-ping {
    transform-box: fill-box;
    transform-origin: center;
    animation: ping 2.4s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.scan-line {
    animation: scan 2.8s ease-in-out infinite;
}

/* Animates `top` in % so the sweep fits the scanner at any size. */
@keyframes scan {
    0%,
    100% {
        top: 10%;
    }

    50% {
        top: 89%;
    }
}

/* ---------- Fee Payment tile ---------- */

/* Light sweep across the receipt every few seconds. */
.shimmer::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.85) 50%, transparent 65%);
    transform: translateX(-100%);
    animation: shimmer 4.5s ease-in-out 2.5s infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    35%,
    100% {
        transform: translateX(100%);
    }
}

/* "Processing" hands over to a stamped "Paid" badge once the tile is revealed. */
.fee-stamp {
    opacity: 1;
}

.fee-processing {
    opacity: 0;
}

.js .fee-processing {
    opacity: 1;
    transition: opacity 0.3s ease 1.5s;
}

.js .is-in .fee-processing {
    opacity: 0;
}

.js .fee-stamp {
    opacity: 0;
    transform: scale(1.8) rotate(-12deg);
}

.js .is-in .fee-stamp {
    animation: stamp 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) 1.7s both;
}

@keyframes stamp {
    from {
        opacity: 0;
        transform: scale(1.8) rotate(-12deg);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* Payment methods take turns lighting up. */
.method-cycle .chip {
    animation: method-glow 6s ease-in-out infinite;
}

.method-cycle .chip:nth-child(2) {
    animation-delay: 2s;
}

.method-cycle .chip:nth-child(3) {
    animation-delay: 4s;
}

@keyframes method-glow {
    0%,
    30%,
    100% {
        color: #334155;
        background: #fff;
        border-color: rgba(15, 23, 42, 0.08);
        box-shadow: none;
    }

    8%,
    22% {
        color: #22105C;
        background: #F3F1FB;
        border-color: #A99BE6;
        box-shadow: 0 0 0 3px rgba(68, 40, 166, 0.12);
    }
}

/* ---------- Marquee ---------- */

.marquee {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 45s linear infinite;
}

.marquee:hover .marquee-track {
    animation-play-state: paused;
}

@keyframes marquee {
    to {
        transform: translateX(-50%);
    }
}

/* ---------- Pricing toggle ---------- */

.billing-toggle {
    position: relative;
    display: inline-grid;
    grid-template-columns: 1fr 1fr;
    padding: 4px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
}

.billing-toggle button {
    position: relative;
    z-index: 1;
    padding: 0.55rem 1.4rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
    transition: color 0.3s;
}

.billing-toggle button[aria-pressed='true'] {
    color: #fff;
}

.billing-toggle::before {
    content: '';
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 4px;
    width: calc(50% - 4px);
    border-radius: 999px;
    background: var(--ink);
    transition: transform 0.45s var(--ease-out);
}

.billing-toggle[data-active='annual']::before {
    transform: translateX(100%);
}

/* ---------- Forms ---------- */

.field {
    width: 100%;
    height: 3rem;
    padding: 0 1rem;
    border-radius: 0.9rem;
    font-size: 0.9375rem;
    color: #0f172a;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.12);
    transition: border-color 0.2s, box-shadow 0.2s;
}

textarea.field {
    height: auto;
    padding: 0.8rem 1rem;
    resize: vertical;
}

.field::placeholder {
    color: #94a3b8;
}

.field:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(68, 40, 166, 0.14);
}

.label {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #334155;
}

/* ---------- Toast (created by site.js) ---------- */

.toast {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    left: 1.25rem;
    z-index: 80;
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    max-width: 24rem;
    margin-left: auto;
    padding: 1rem 1.1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--line);
    box-shadow: 0 24px 50px -24px rgba(15, 23, 42, 0.45);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    opacity: 0;
    transform: translateY(-12px);
    pointer-events: none;
    transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}

.toast.is-on {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.toast-icon {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.75rem;
    color: #fff;
    background: var(--primary);
}

.toast.is-error .toast-icon {
    background: #e11d48;
}

/* ---------- FAQ (details/summary) ---------- */

.faq summary {
    list-style: none;
    cursor: pointer;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq .faq-icon {
    transition: transform 0.35s var(--ease-out), background-color 0.35s, color 0.35s;
}

.faq[open] .faq-icon {
    transform: rotate(45deg);
    background: var(--primary);
    color: #fff;
}

/* ---------- Legal documents ---------- */

.legal section + section {
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--line);
}

.legal h2 {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    font-family: 'Inter Tight', 'Inter', sans-serif;
    font-size: 1.375rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #0f172a;
}

.legal h2 .num {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--primary-600);
}

.legal p,
.legal li {
    color: #475569;
    line-height: 1.75;
}

.legal p {
    margin-top: 0.85rem;
}

.legal ul {
    margin-top: 1rem;
    display: grid;
    gap: 0.6rem;
}

.legal ul > li {
    position: relative;
    padding-left: 1.4rem;
}

.legal ul > li::before {
    content: '';
    position: absolute;
    left: 0.2rem;
    top: 0.72em;
    width: 6px;
    height: 6px;
    border-radius: 2px;
    background: var(--primary);
}

.legal ul ul {
    margin-top: 0.5rem;
}

.legal ul ul > li::before {
    background: #cbd5e1;
}

.legal strong {
    color: #0f172a;
    font-weight: 600;
}

.legal a {
    color: var(--primary-600);
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: rgba(68, 40, 166, 0.35);
    text-underline-offset: 3px;
}

.toc-link {
    display: block;
    margin-left: -1px;
    padding: 0.35rem 0 0.35rem 1rem;
    border-left: 1px solid transparent;
    color: #64748b;
    transition: color 0.2s, border-color 0.2s;
}

.toc-link:hover {
    color: #0f172a;
}

.toc-link.is-active {
    color: var(--primary-700);
    border-left-color: var(--primary);
}

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

.footer-title {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #94a3b8;
}

.footer-link {
    color: #475569;
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--primary-600);
}

.footer-wordmark {
    font-family: 'Inter Tight', 'Inter', sans-serif;
    font-weight: 700;
    font-size: clamp(4rem, 17vw, 15rem);
    line-height: 0.8;
    letter-spacing: -0.05em;
    text-align: center;
    background: linear-gradient(180deg, rgba(68, 40, 166, 0.14), rgba(68, 40, 166, 0));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transform: translateY(18%);
}

/* ---------- Scroll-driven animations (progressive enhancement) ---------- */

@supports (animation-timeline: scroll()) {
    .scroll-progress {
        animation: grow-x linear both;
        animation-timeline: scroll(root);
    }

    /* Hero mockup tilts back to flat as the page scrolls. */
    .hero-tilt {
        animation: untilt linear both;
        animation-timeline: scroll(root);
        animation-range: 0 520px;
    }

    /* Section headings drift in with scroll position. */
    .scroll-rise {
        animation: rise linear both;
        animation-timeline: view();
        animation-range: entry 0% cover 30%;
    }
}

@keyframes grow-x {
    to {
        transform: scaleX(1);
    }
}

@keyframes untilt {
    from {
        transform: perspective(1600px) rotateX(16deg) scale(0.94);
    }

    to {
        transform: none;
    }
}

@keyframes rise {
    from {
        opacity: 0.2;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0ms !important;
    }

    .js [data-reveal] {
        opacity: 1;
        transform: none;
        filter: none;
    }

    .marquee-track {
        animation: none;
    }
}

/* Secondary-page layouts use the same typography, surfaces, and navigation as the homepage. */
.secondary-page {
    min-height: 100vh;
    background: #fff;
    color: #0f172a;
}

.secondary-page .gradient-primary {
    background: var(--brand-gradient);
}

.secondary-page .text-primary,
.secondary-page [class~='text-emerald-600'] {
    color: var(--primary);
}

.secondary-page #navbar {
    top: 0.75rem;
    left: 0.75rem;
    right: 0.75rem;
    width: auto;
    max-width: 72rem;
    margin: 0.75rem auto 0;
    padding: 0 0.5rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 30px -18px rgba(15, 23, 42, 0.35);
    -webkit-backdrop-filter: saturate(160%) blur(16px);
    backdrop-filter: saturate(160%) blur(16px);
}

.secondary-page #navbar > div {
    width: 100%;
    max-width: none;
    margin: 0;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
}

.secondary-page #navbar > div > div:first-child {
    height: 4rem;
}

.secondary-page #navbar > div > div:first-child > div:nth-child(2),
.secondary-page #navbar > div > div:first-child > div:nth-child(3) {
    gap: 0.25rem;
}

.secondary-page #navbar > div > div:first-child > div:nth-child(2) > a,
.secondary-page #navbar > div > div:first-child > div:nth-child(3) > a {
    margin-left: 0;
}

.secondary-page #navbar img {
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
}

.secondary-page #navbar > div > div:first-child > div:first-child > span {
    background: none;
    color: #0f172a;
    font-family: 'Inter Tight', 'Inter', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    -webkit-text-fill-color: #0f172a;
}

.secondary-page #navbar a.btn-modern {
    display: inline-flex;
    height: 2.25rem;
    align-items: center;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: rgba(255, 255, 255, 0.8);
    padding: 0 1rem;
    color: #0f172a;
    font-size: 0.875rem;
    font-weight: 600;
}

.secondary-page #navbar .nav-link {
    color: #475569;
}

.secondary-page #navbar .nav-link:hover {
    color: #22105c;
}

.secondary-page #mobile-menu {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 40px -24px rgba(15, 23, 42, 0.4);
}

.secondary-page #mobile-menu > div:first-child > a {
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
}

.secondary-page #mobile-menu .gradient-primary {
    background: var(--brand-gradient);
}

.secondary-hero {
    position: relative;
    overflow: hidden;
    padding: 9rem 0 4rem;
}

.secondary-hero h1 {
    max-width: 16ch;
    margin-top: 1rem;
    font-family: 'Inter Tight', 'Inter', sans-serif;
    font-size: 3.5rem;
    font-weight: 600;
    line-height: 1.04;
    color: #110334;
}

.secondary-hero p {
    max-width: 42rem;
    color: #64748b;
    font-size: 1.125rem;
    line-height: 1.75;
}

.secondary-content {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1.5rem 6rem;
}

.page-surface {
    border: 1px solid var(--line);
    border-radius: 0.5rem;
    background: #fff;
    box-shadow: 0 28px 70px -54px rgba(17, 3, 52, 0.5);
}

.legal-doc {
    max-width: 52rem;
    margin: 0 auto;
    padding: 2.5rem clamp(1.25rem, 4vw, 3.5rem);
}

.legal-doc > div + div {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
}

.legal-doc h2 {
    margin: 0;
    color: #110334;
    font-family: 'Inter Tight', 'Inter', sans-serif;
    font-size: 1.375rem;
    font-weight: 600;
}

.legal-doc p,
.legal-doc li {
    color: #475569;
    line-height: 1.8;
}

.legal-doc strong {
    color: #0f172a;
    font-weight: 600;
}

.legal-doc a {
    color: var(--primary-600);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.about-overview {
    border-top: 1px solid var(--line);
    padding-top: 2rem;
}

.about-principle {
    border-top: 1px solid var(--line);
    padding-top: 1.25rem;
}

.about-principle h2 {
    color: #110334;
    font-family: 'Inter Tight', 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
}

.contact-method {
    border-top: 1px solid var(--line);
    padding-top: 1.25rem;
}

.contact-method a {
    color: #22105c;
    font-weight: 600;
}

.contact-method a:hover {
    color: var(--primary);
}

.secondary-page footer {
    border-color: var(--line);
    background: #fff;
}

.secondary-page footer > div {
    max-width: 72rem;
    margin-right: auto;
    margin-left: auto;
    padding: 2.5rem 1.5rem;
}

.secondary-page footer .grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 3rem;
}

.secondary-page footer .grid > div:nth-child(1) {
    grid-column: span 4;
}

.secondary-page footer .grid > div:nth-child(2) {
    grid-column: span 2;
}

.secondary-page footer .grid > div:nth-child(3),
.secondary-page footer .grid > div:nth-child(4) {
    grid-column: span 3;
}

.secondary-page footer h3 {
    margin-bottom: 1rem;
    color: #94a3b8;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.secondary-page footer a:not([aria-label]) {
    transition: color 0.2s ease;
}

.secondary-page footer a:hover {
    color: var(--primary-600);
}

.secondary-page footer .flex.space-x-4 a {
    display: grid;
    width: 2.25rem;
    height: 2.25rem;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 0.75rem;
}

.secondary-page footer .border-t {
    border-color: var(--line);
}

.app-availability {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.5rem 0;
    color: #475569;
    font-size: 0.875rem;
}

.app-availability a,
.app-availability > p {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.app-availability a {
    color: #22105c;
    font-weight: 600;
    transition: color 0.2s ease;
}

.app-availability a:hover {
    color: var(--primary);
}

@media (max-width: 639px) {
    .secondary-hero {
        padding-top: 8rem;
    }

    .secondary-hero h1 {
        font-size: 2.5rem;
    }

    .secondary-content {
        padding-right: 1rem;
        padding-left: 1rem;
    }

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

@media (max-width: 767px) {
    .secondary-page footer .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2rem;
    }

    .secondary-page footer .grid > div {
        grid-column: span 1;
    }
}

@media (max-width: 639px) {
    .secondary-page footer > div {
        padding-right: 1rem;
        padding-left: 1rem;
    }
}
