/*
 * Landing page. Soft UI style for a calm parenting/wellness product:
 * warm cream, peach, sage and lavender pastels, purple as the action colour,
 * soft shadows, 200-300ms transitions and slow "breathing" motion.
 * All motion is switched off for visitors who prefer reduced motion.
 */

:root {
    --lp-cream: #fffaf5;
    --lp-peach: #fde7da;
    --lp-sage: #e2efe5;
    --lp-lavender: #efe6f7;
    --lp-gold: #d9a441;
    --lp-max: 1180px;
    --lp-shadow-soft: 0 10px 30px -12px rgba(76, 42, 92, 0.18), 0 4px 10px -6px rgba(76, 42, 92, 0.1);
    --lp-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

body:has(.lp-hero) {
    background: var(--lp-cream);
}

.container-landing {
    max-width: none;
    padding: 0;
}

.header-inner.container-landing {
    max-width: var(--lp-max);
    padding: 0;
}

.lp-section,
.lp-hero,
.lp-stats,
.lp-band,
.lp-cta-band {
    width: min(var(--lp-max), calc(100% - 40px));
    margin-right: auto;
    margin-left: auto;
}

.lp-section {
    padding: 88px 0;
}

.lp-tint {
    position: relative;
}

.lp-tint::before {
    content: "";
    position: absolute;
    inset: 0 calc(50% - 50vw);
    z-index: -1;
    background: linear-gradient(180deg, rgba(239, 230, 247, 0.55), rgba(253, 231, 218, 0.35));
}

.lp-kicker {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.lp-kicker-light {
    color: #f6e7ff;
}

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

.lp-section-head h2,
.lp-split-text h2,
.lp-band h2,
.lp-cta-band h2 {
    margin: 0 0 12px;
    font-size: clamp(28px, 3.4vw, 40px);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

.lp-section-head p,
.lp-split-text > p {
    margin: 0;
    color: var(--muted);
    font-size: 18px;
}

/* Hero */

.lp-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: 56px;
    padding: 64px 0 72px;
}

.lp-blob {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.75;
    animation: lp-breathe 14s ease-in-out infinite;
}

.lp-blob-peach {
    top: -40px;
    left: -120px;
    width: 420px;
    height: 420px;
    background: var(--lp-peach);
}

.lp-blob-lavender {
    top: 60px;
    right: -80px;
    width: 460px;
    height: 460px;
    background: var(--lp-lavender);
    animation-delay: -5s;
}

.lp-blob-sage {
    bottom: -80px;
    left: 38%;
    width: 320px;
    height: 320px;
    background: var(--lp-sage);
    animation-delay: -9s;
}

.lp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border: 1px solid #ead9f2;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow);
    color: var(--accent-dark);
    font-size: 14px;
    font-weight: 700;
}

.lp-eyebrow .icon {
    width: 16px;
    height: 16px;
    color: var(--lp-gold);
}

.lp-hero h1 {
    margin: 22px 0 18px;
    font-size: clamp(38px, 5.2vw, 62px);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.035em;
    text-wrap: balance;
}

.lp-highlight {
    position: relative;
    color: var(--accent);
    white-space: nowrap;
}

.lp-highlight::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 2px;
    left: 0;
    z-index: -1;
    height: 0.32em;
    border-radius: 999px;
    background: var(--lp-peach);
    transform-origin: left;
    transition: transform 0.9s var(--lp-ease) 0.4s;
}

.js .reveal:not(.is-visible) .lp-highlight::after {
    transform: scaleX(0);
}

.lp-lead {
    max-width: 54ch;
    margin: 0 0 30px;
    color: #52525b;
    font-size: 19px;
    line-height: 1.65;
}

.lp-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.lp-cta {
    box-shadow: 0 10px 24px -10px rgba(142, 68, 173, 0.65);
    transition: transform 0.2s var(--lp-ease), box-shadow 0.2s ease, background-color 0.2s ease;
}

.lp-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px -10px rgba(142, 68, 173, 0.7);
}

.btn .icon {
    transition: transform 0.2s var(--lp-ease);
}

.btn:hover .icon:last-child {
    transform: translateX(3px);
}

.lp-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
    color: #52525b;
    font-size: 15px;
}

.lp-trust li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.lp-trust .icon {
    width: 18px;
    height: 18px;
    color: var(--good);
}

.lp-hero-visual {
    position: relative;
    justify-self: center;
    width: min(100%, 460px);
}

.lp-hero-ring {
    position: absolute;
    inset: -18px -18px auto auto;
    width: 70%;
    aspect-ratio: 1;
    border: 2px dashed #e3cdee;
    border-radius: 50%;
    animation: lp-spin 60s linear infinite;
}

.lp-hero-photo {
    position: relative;
    margin: 0;
    overflow: hidden;
    border-radius: 48% 52% 46% 54% / 38% 40% 60% 62%;
    box-shadow: var(--lp-shadow-soft);
    aspect-ratio: 4 / 5;
    animation: lp-morph 18s ease-in-out infinite;
}

.lp-hero-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

/* Floating glass cards */

.lp-float {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(10px);
    box-shadow: var(--lp-shadow-soft);
    font-size: 14px;
    animation: lp-float 7s ease-in-out infinite;
}

.lp-float strong {
    display: block;
    line-height: 1.25;
}

.lp-float small {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.lp-float-icon {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--accent-soft);
    color: var(--accent);
}

.lp-float-icon .icon {
    width: 18px;
    height: 18px;
}

.lp-icon-warm {
    background: #fff1e6;
    color: #d35400;
}

.lp-icon-good {
    background: var(--good-soft);
    color: var(--good);
}

.lp-float-week {
    top: 8%;
    left: -12%;
    min-width: 200px;
}

.lp-float-streak {
    right: -10%;
    bottom: 26%;
    animation-delay: -2.4s;
}

.lp-float-done {
    bottom: 4%;
    left: -6%;
    animation-delay: -4.6s;
}

.lp-float-prompt {
    right: -4%;
    bottom: -18px;
}

.lp-mini-bar {
    display: block;
    width: 130px;
    height: 6px;
    margin-top: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: #f1e6f6;
}

.lp-mini-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--accent);
}

/* Impact numbers */

.lp-stats {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    padding: 26px 20px;
    border: 1px solid #f0e4f5;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: var(--lp-shadow-soft);
}

.lp-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 4px;
    text-align: center;
}

.lp-stat + .lp-stat {
    border-left: 1px solid var(--soft-line);
}

.lp-stat strong {
    color: var(--ink);
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 900;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.lp-stat span {
    color: var(--muted);
    font-size: 14px;
}

/* Steps */

.lp-steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lp-steps::before {
    content: "";
    position: absolute;
    top: 52px;
    right: 16%;
    left: 16%;
    border-top: 2px dashed #e3cdee;
}

.lp-steps li {
    position: relative;
    padding: 28px;
    border: 1px solid var(--soft-line);
    border-radius: 20px;
    background: var(--surface);
    box-shadow: var(--shadow);
    transition: transform 0.25s var(--lp-ease), box-shadow 0.25s ease;
}

.lp-steps li:hover {
    transform: translateY(-4px);
    box-shadow: var(--lp-shadow-soft);
}

.lp-step-num {
    position: absolute;
    top: 22px;
    right: 24px;
    color: #e9dcf0;
    font-size: 40px;
    font-weight: 900;
    line-height: 1;
}

.lp-step-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 18px;
    border-radius: 16px;
    background: var(--accent);
    box-shadow: 0 8px 18px -8px rgba(142, 68, 173, 0.7);
    color: #fff;
}

.lp-step-icon .icon {
    width: 24px;
    height: 24px;
}

.lp-steps h3 {
    margin: 0 0 6px;
    font-size: 20px;
}

.lp-steps p {
    margin: 0;
    color: var(--muted);
}

/* Activity explorer */

.lp-tabs {
    display: flex;
    justify-content: center;
    gap: 4px;
    width: max-content;
    max-width: 100%;
    margin: 0 auto 28px;
    padding: 5px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: var(--shadow), 0 0 0 1px var(--soft-line);
}

.lp-tabs button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.lp-tabs button:hover {
    color: var(--ink);
}

.lp-tabs button[aria-selected="true"] {
    background: var(--accent);
    box-shadow: 0 6px 16px -8px rgba(142, 68, 173, 0.8);
    color: #fff;
}

.lp-tabs button:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 3px var(--ring);
}

.lp-activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr));
    gap: 14px;
}

.lp-activity-grid:not([hidden]) {
    animation: lp-fade-up 0.45s var(--lp-ease);
}

.lp-activity {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--soft-line);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: var(--shadow);
    transition: transform 0.25s var(--lp-ease), box-shadow 0.25s ease, border-color 0.25s ease;
}

.lp-activity:hover {
    transform: translateY(-3px);
    border-color: #e3cdee;
    box-shadow: var(--lp-shadow-soft);
}

.lp-activity-icon {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent);
    transition: background-color 0.25s ease, color 0.25s ease;
}

.lp-activity:hover .lp-activity-icon {
    background: var(--accent);
    color: #fff;
}

.lp-activity strong {
    display: block;
    font-size: 15px;
    line-height: 1.3;
}

.lp-activity small {
    color: var(--muted);
    font-size: 13px;
}

/* Split feature sections */

.lp-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 64px;
}

.lp-split-reverse .lp-split-media {
    order: 2;
}

.lp-split-media {
    position: relative;
}

.lp-photo {
    margin: 0;
    overflow: hidden;
    border-radius: 28px;
    box-shadow: var(--lp-shadow-soft);
}

.lp-photo img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.8s var(--lp-ease);
}

.lp-photo:hover img {
    transform: scale(1.04);
}

.lp-photo-tilt {
    transform: rotate(-1.5deg);
}

.lp-split-text h2 {
    text-align: left;
}

.lp-checklist {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}

.lp-checklist li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.lp-checklist .icon {
    width: 20px;
    height: 20px;
    color: var(--accent);
}

/* Progress mock-up */

.lp-mock {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 26px;
    border: 1px solid #f0e4f5;
    border-radius: 24px;
    background: linear-gradient(160deg, #ffffff, var(--lp-lavender));
    box-shadow: var(--lp-shadow-soft);
}

.lp-mock-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.lp-mock-stats div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px;
    border-radius: 14px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.lp-mock-stats strong {
    font-size: 28px;
    font-weight: 900;
    line-height: 1.1;
}

.lp-mock-stats small {
    color: var(--muted);
}

.lp-mock-calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    padding: 14px;
    border-radius: 14px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.lp-mock-calendar span {
    aspect-ratio: 1;
    border-radius: 6px;
    background: #f4f4f5;
}

.lp-mock-calendar .lv-1 {
    background: #ead9f2;
}

.lp-mock-calendar .lv-2 {
    background: #c08fd6;
}

.lp-mock-calendar .lv-3 {
    background: var(--accent);
}

.lp-mock-skills {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    border-radius: 14px;
    background: var(--surface);
    box-shadow: var(--shadow);
    font-size: 14px;
    font-weight: 700;
}

.lp-mock-skills div {
    display: grid;
    grid-template-columns: 150px 1fr;
    align-items: center;
    gap: 10px;
}

.lp-bar {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #f4f4f5;
}

.lp-bar span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: var(--accent);
    transition: width 1.2s var(--lp-ease) 0.2s;
}

/* Garbh Sanskar band and final call to action (photo with overlay) */

.lp-band,
.lp-cta-band {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    box-shadow: var(--lp-shadow-soft);
    color: #fff;
}

.lp-band img,
.lp-cta-band img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lp-band::after,
.lp-cta-band::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(42, 20, 54, 0.82) 0%, rgba(42, 20, 54, 0.55) 55%, rgba(42, 20, 54, 0.15) 100%);
}

.lp-band-text,
.lp-cta-text {
    position: relative;
    z-index: 1;
    max-width: 560px;
    padding: 72px 56px;
}

.lp-band-text p,
.lp-cta-text p {
    margin: 0 0 26px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
}

.lp-cta-band {
    margin-top: 24px;
    margin-bottom: 88px;
}

.lp-cta-band::after {
    background: linear-gradient(90deg, rgba(42, 20, 54, 0.85) 0%, rgba(42, 20, 54, 0.45) 60%, rgba(42, 20, 54, 0.1) 100%);
}

.btn.lp-btn-light {
    border-color: #fff;
    background: #fff;
    color: var(--accent-dark);
}

.btn.lp-btn-light:hover {
    background: #f6eefa;
    color: var(--accent-dark);
}

/* Coming soon list */

.lp-coming {
    margin-top: 26px;
    padding: 18px 20px;
    border: 1px dashed #e3cdee;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.7);
}

.lp-coming-label {
    display: inline-block;
    margin-bottom: 10px;
    padding: 2px 10px;
    border-radius: 999px;
    background: #fff3d6;
    color: #8a5a00;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.lp-coming ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: #52525b;
}

.lp-coming li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lp-coming .icon {
    width: 18px;
    height: 18px;
    color: var(--accent);
}

/* FAQ accordion */

.lp-faq {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 760px;
    margin: 0 auto;
}

.lp-faq details {
    border: 1px solid var(--soft-line);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: var(--shadow);
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.lp-faq details[open] {
    border-color: #e3cdee;
    box-shadow: var(--lp-shadow-soft);
}

.lp-faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    font-size: 17px;
    font-weight: 700;
    list-style: none;
    cursor: pointer;
}

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

.lp-faq summary .icon {
    flex-shrink: 0;
    color: var(--muted);
    transition: transform 0.25s var(--lp-ease);
}

.lp-faq details[open] summary .icon {
    transform: rotate(180deg);
    color: var(--accent);
}

.lp-faq details p {
    margin: 0;
    padding: 0 22px 20px;
    color: var(--muted);
}

.lp-faq a {
    color: var(--accent);
}

/* Founders on the landing page */

.lp-tint .founder {
    transition: transform 0.25s var(--lp-ease), box-shadow 0.25s ease;
}

.lp-tint .founder:hover {
    transform: translateY(-4px);
    box-shadow: var(--lp-shadow-soft);
}

/* Scroll reveal: only hidden when JavaScript is running */

.js .reveal {
    opacity: 0;
    translate: 0 24px;
    transition: opacity 0.7s var(--lp-ease) var(--reveal-delay, 0ms), translate 0.7s var(--lp-ease) var(--reveal-delay, 0ms), transform 0.3s var(--lp-ease), box-shadow 0.3s ease, border-color 0.3s ease;
}

/* The reveal moves with "translate", so hover lifts that use "transform" still work. */
.js .reveal.is-visible {
    opacity: 1;
    translate: none;
}

@keyframes lp-float {
    0%,
    100% {
        transform: translateY(0);
    }

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

@keyframes lp-breathe {
    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.12);
    }
}

@keyframes lp-morph {
    0%,
    100% {
        border-radius: 48% 52% 46% 54% / 38% 40% 60% 62%;
    }

    50% {
        border-radius: 54% 46% 52% 48% / 44% 36% 64% 56%;
    }
}

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

@keyframes lp-fade-up {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* Responsive: tablet and phone */

@media (max-width: 960px) {
    .lp-hero,
    .lp-split {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .lp-hero {
        padding-top: 40px;
        text-align: left;
    }

    .lp-hero-visual {
        width: min(100%, 400px);
    }

    .lp-split-reverse .lp-split-media {
        order: 0;
    }

    .lp-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        row-gap: 18px;
    }

    .lp-stat:nth-child(4) {
        border-left: 0;
    }

    .lp-steps {
        grid-template-columns: 1fr;
    }

    .lp-steps::before {
        display: none;
    }

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

@media (max-width: 560px) {
    .lp-float-week {
        left: -4px;
    }

    .lp-float-streak {
        right: -4px;
    }

    .lp-float-done {
        left: 0;
    }

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

    .lp-stat + .lp-stat {
        border-left: 0;
    }

    .lp-band-text,
    .lp-cta-text {
        padding: 44px 24px;
    }

    .lp-band::after,
    .lp-cta-band::after {
        background: rgba(42, 20, 54, 0.72);
    }

    .lp-coming ul {
        grid-template-columns: 1fr;
    }

    .lp-mock-skills div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .lp-tabs {
        width: 100%;
    }

    .lp-tabs button {
        flex: 1;
        justify-content: center;
        padding: 10px 8px;
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lp-blob,
    .lp-hero-ring,
    .lp-hero-photo,
    .lp-float,
    .lp-activity-grid:not([hidden]) {
        animation: none;
    }

    .js .reveal {
        opacity: 1;
        translate: none;
        transition: none;
    }

    .lp-highlight::after,
    .lp-bar span,
    .lp-photo img,
    .lp-steps li,
    .lp-activity,
    .lp-cta {
        transition: none;
    }
}

/* ==========================================================================
   Shared public pages: header, page hero, auth split, legal, about
   ========================================================================== */

.public-site {
    background: var(--lp-cream);
}

.public-flash {
    width: min(var(--lp-max), calc(100% - 40px));
    margin: 20px auto 0;
}

/* Public header */

.pub-header {
    position: sticky;
    top: 0;
    z-index: 30;
    border-bottom: 1px solid rgba(228, 228, 231, 0.7);
    background: rgba(255, 250, 245, 0.82);
    backdrop-filter: blur(12px);
}

.pub-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: min(var(--lp-max), calc(100% - 40px));
    min-height: 68px;
    margin: 0 auto;
}

.pub-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
}

.pub-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--accent);
    box-shadow: 0 6px 14px -6px rgba(142, 68, 173, 0.8);
    color: #fff;
}

.pub-logo .icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.pub-nav {
    display: flex;
    gap: 4px;
}

.pub-nav a,
.pub-login {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 8px;
    color: #3f3f46;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.pub-nav a:hover,
.pub-login:hover {
    background: rgba(142, 68, 173, 0.08);
    color: var(--accent-dark);
}

.pub-nav a.active,
.pub-login.active {
    color: var(--accent);
}

.pub-login .icon {
    width: 16px;
    height: 16px;
}

.pub-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pub-start {
    box-shadow: 0 6px 16px -8px rgba(142, 68, 173, 0.8);
}

@media (max-width: 860px) {
    .pub-nav {
        display: none;
    }
}

@media (max-width: 420px) {
    .pub-brand {
        font-size: 17px;
    }

    .pub-login {
        padding: 8px;
    }
}

/* Page hero for About and legal pages */

.pub-hero {
    position: relative;
    width: min(var(--lp-max), calc(100% - 40px));
    margin: 0 auto;
    padding: 72px 0 48px;
    text-align: center;
}

.pub-hero-inner {
    max-width: 720px;
    margin: 0 auto;
}

.pub-hero h1 {
    margin: 20px 0 12px;
    font-size: clamp(34px, 4.4vw, 52px);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.03em;
    text-wrap: balance;
}

.pub-hero .lp-lead {
    margin: 0 auto;
}

.lp-hero-photo-wide {
    aspect-ratio: 1 / 1;
}

/* Auth split */

.auth-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
    width: min(var(--lp-max), calc(100% - 40px));
    margin: 0 auto;
    padding: 48px 0 88px;
}

.auth-panel {
    align-self: center;
    width: 100%;
    max-width: 460px;
    justify-self: center;
    padding: 36px;
    border: 1px solid var(--soft-line);
    border-radius: 24px;
    background: var(--surface);
    box-shadow: var(--lp-shadow-soft);
}

.auth-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 14px;
    text-decoration: none;
}

.auth-back:hover {
    color: var(--accent);
}

.auth-back .icon {
    width: 16px;
    height: 16px;
}

.auth-panel h1 {
    margin: 0 0 8px;
    font-size: 32px;
    font-weight: 900;
    letter-spacing: -0.025em;
}

.auth-intro {
    margin: 0 0 26px;
    color: var(--muted);
}

.auth-submit {
    width: 100%;
    margin-top: 6px;
}

.auth-fineprint {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}

.auth-fineprint a {
    color: var(--accent);
}

.auth-visual {
    position: relative;
    overflow: hidden;
    min-height: 560px;
    border-radius: 28px;
    box-shadow: var(--lp-shadow-soft);
}

.auth-visual img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.auth-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(42, 20, 54, 0) 35%, rgba(42, 20, 54, 0.85) 100%);
}

.auth-visual-overlay {
    position: absolute;
    right: 32px;
    bottom: 32px;
    left: 32px;
    z-index: 1;
    color: #fff;
}

.auth-quote {
    margin: 0 0 18px;
    font-size: 26px;
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.auth-points {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: rgba(255, 255, 255, 0.9);
}

.auth-points li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-points .icon {
    width: 18px;
    height: 18px;
    color: #f3d9a4;
}

.auth-float {
    top: 28px;
    left: 28px;
    z-index: 1;
}

.input-icon {
    position: relative;
}

.input-icon > .icon {
    position: absolute;
    top: 50%;
    left: 12px;
    width: 18px;
    height: 18px;
    color: var(--muted);
    transform: translateY(-50%);
    pointer-events: none;
}

.input-icon input {
    padding-left: 40px;
}

.input-icon:focus-within > .icon {
    color: var(--accent);
}

.form-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

@media (max-width: 900px) {
    .auth-split {
        grid-template-columns: 1fr;
        padding-top: 28px;
    }

    .auth-visual {
        display: none;
    }
}

@media (max-width: 480px) {
    .auth-panel {
        padding: 26px 20px;
    }

    .form-pair {
        grid-template-columns: 1fr;
    }
}

/* Legal pages */

.legal-wrap {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 32px;
    align-items: start;
    width: min(980px, calc(100% - 40px));
    margin: 0 auto;
    padding-bottom: 88px;
}

.legal-toc {
    position: sticky;
    top: 92px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 16px;
    border: 1px solid var(--soft-line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.8);
}

.legal-toc-title {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.legal-toc a {
    padding: 6px 10px;
    border-radius: 8px;
    color: #3f3f46;
    font-size: 14px;
    text-decoration: none;
}

.legal-toc a:hover {
    background: var(--accent-soft);
    color: var(--accent-dark);
}

.legal-card {
    padding: 36px 40px;
    border: 1px solid var(--soft-line);
    border-radius: 24px;
    background: var(--surface);
    box-shadow: var(--lp-shadow-soft);
}

.legal-card h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 32px 0 10px;
    font-size: 20px;
    scroll-margin-top: 96px;
}

.legal-card h2 .icon {
    width: 20px;
    height: 20px;
    color: var(--accent);
}

.legal-card .draft-note + h2 {
    margin-top: 0;
}

.legal-card p,
.legal-card li {
    color: #3f3f46;
    line-height: 1.7;
}

.legal-card ul {
    padding-left: 20px;
}

.legal-card .draft-note {
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 820px) {
    .legal-wrap {
        grid-template-columns: 1fr;
    }

    .legal-toc {
        position: static;
    }

    .legal-card {
        padding: 26px 22px;
    }
}

/* About */

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

.lp-stats-3 .lp-stat span {
    max-width: 24ch;
}

.vm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.vm-card {
    position: relative;
    overflow: hidden;
    padding: 36px;
    border: 1px solid #ead9f2;
    border-radius: 24px;
    background: linear-gradient(160deg, #ffffff 0%, var(--lp-lavender) 100%);
    box-shadow: var(--shadow);
    transition: transform 0.25s var(--lp-ease), box-shadow 0.25s ease;
}

.vm-card-alt {
    border-color: #f4dccd;
    background: linear-gradient(160deg, #ffffff 0%, var(--lp-peach) 100%);
}

.vm-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--lp-shadow-soft);
}

.vm-card .lp-kicker {
    display: block;
}

.vm-card p {
    margin: 0;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: -0.01em;
}

.about-more {
    margin-top: 14px !important;
}

.offer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
    gap: 16px;
}

.offer-card {
    padding: 24px;
    border: 1px solid var(--soft-line);
    border-radius: 20px;
    background: var(--surface);
    box-shadow: var(--shadow);
    transition: transform 0.25s var(--lp-ease), box-shadow 0.25s ease, border-color 0.25s ease;
}

.offer-card:hover {
    transform: translateY(-4px);
    border-color: #e3cdee;
    box-shadow: var(--lp-shadow-soft);
}

.offer-card:hover .lp-activity-icon {
    background: var(--accent);
    color: #fff;
}

.offer-card h3 {
    margin: 14px 0 6px;
    font-size: 18px;
}

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

/* Founder cards (landing and About) */

.founder {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 28px;
    border-radius: 24px;
}

.founder-top {
    display: flex;
    align-items: center;
    gap: 16px;
}

.founder-initials {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--accent), #b768d8);
    box-shadow: 0 10px 22px -10px rgba(142, 68, 173, 0.9);
    font-size: 22px;
}

.founder-initials-alt {
    background: linear-gradient(135deg, #c0605f, #e39b77);
    box-shadow: 0 10px 22px -10px rgba(192, 96, 95, 0.9);
}

.founder-role {
    margin: 4px 0 0;
}

.founder-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.founder-facts li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-dark);
    font-size: 13px;
    font-weight: 700;
}

.founder-facts .icon {
    width: 14px;
    height: 14px;
}

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

    .lp-stats-3 {
        grid-template-columns: 1fr;
    }

    .lp-stats-3 .lp-stat + .lp-stat {
        border-top: 1px solid var(--soft-line);
        border-left: 0;
    }
}

/* ==========================================================================
   Activity showcase: bento tiles with looping mini previews + tickers
   ========================================================================== */

.bento {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-areas:
        "sudoku sudoku scramble scramble"
        "sudoku sudoku riddle abacus"
        "odd odd sums sums";
    gap: 18px;
}

.bento-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow: hidden;
    padding: 24px;
    border: 1px solid var(--soft-line);
    border-radius: 24px;
    background: var(--surface);
    box-shadow: var(--shadow);
    transition: transform 0.3s var(--lp-ease), box-shadow 0.3s ease, border-color 0.3s ease;
}

.bento-tile:hover,
.bento-tile:focus-visible {
    transform: translateY(-4px);
    border-color: #e3cdee;
    box-shadow: var(--lp-shadow-soft);
    outline: 0;
}

.bento-tile header .tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.bento-tile header .tag .icon {
    width: 13px;
    height: 13px;
}

.bento-tile h3 {
    margin: 10px 0 4px;
    font-size: 19px;
    letter-spacing: -0.01em;
}

.bento-tile header p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.bento-sudoku {
    grid-area: sudoku;
    background: linear-gradient(170deg, #ffffff 40%, var(--lp-lavender));
}

.bento-scramble {
    grid-area: scramble;
    background: linear-gradient(170deg, #ffffff 40%, var(--lp-peach));
}

.bento-riddle {
    grid-area: riddle;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.bento-abacus {
    grid-area: abacus;
}

.bento-odd {
    grid-area: odd;
    background: linear-gradient(170deg, #ffffff 40%, var(--lp-sage));
}

.bento-sums {
    grid-area: sums;
}

/* Sudoku preview: empty cells fill in one by one when the tile appears */

.sudoku-preview {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    align-self: center;
    width: min(100%, 330px);
    margin-top: auto;
    border: 2px solid var(--ink);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.sudoku-preview span {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    border-right: 1px solid #e4e4e7;
    border-bottom: 1px solid #e4e4e7;
    font-size: clamp(16px, 2vw, 22px);
    font-weight: 900;
}

.sudoku-preview span:nth-child(6n) {
    border-right: 0;
}

.sudoku-preview .box-right {
    border-right: 2px solid var(--ink);
}

.sudoku-preview .box-bottom {
    border-bottom: 2px solid var(--ink);
}

.sudoku-preview .given {
    background: #fafafa;
}

.sudoku-preview .fill {
    color: var(--accent);
}

.js .sudoku-preview .fill {
    opacity: 0;
    transform: scale(0.4);
}

.js .bento-sudoku.is-visible .sudoku-preview .fill {
    animation: lp-pop 0.35s var(--lp-ease) forwards;
    animation-delay: calc(400ms + var(--i) * 45ms);
}

/* Word scramble: tiles swap into the right order, then back */

.scramble-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: auto;
}

.scramble-tiles {
    position: relative;
    display: flex;
    gap: 10px;
}

.scramble-tiles span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border: 1px solid #f0d7c8;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 6px 14px -8px rgba(192, 96, 95, 0.6);
    font-size: 26px;
    font-weight: 700;
}

.bento-scramble.is-visible .t-k {
    animation: lp-swap-right 5s var(--lp-ease) infinite;
}

.bento-scramble.is-visible .t-stha {
    animation: lp-swap-left 5s var(--lp-ease) infinite;
}

.scramble-answer {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--good-soft);
    color: var(--good);
    font-weight: 700;
    opacity: 0;
}

.bento-scramble.is-visible .scramble-answer {
    animation: lp-show-mid 5s ease infinite;
}

.scramble-answer .icon {
    width: 16px;
    height: 16px;
}

/* Riddle flip card */

.flip-card {
    width: 100%;
    height: 100%;
    min-height: 220px;
    padding: 0;
    border: 0;
    background: transparent;
    font: inherit;
    text-align: left;
    cursor: pointer;
    perspective: 1000px;
}

.flip-inner {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    min-height: 220px;
    transform-style: preserve-3d;
    transition: transform 0.7s var(--lp-ease);
}

.flip-card:hover .flip-inner,
.flip-card.is-flipped .flip-inner {
    transform: rotateY(180deg);
}

.flip-front,
.flip-back {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 22px;
    border-radius: 24px;
    backface-visibility: hidden;
}

.flip-front {
    border: 1px solid var(--soft-line);
    background: #fff;
    box-shadow: var(--shadow);
    color: var(--ink);
}

.flip-front .tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    width: fit-content;
}

.flip-front .tag .icon {
    width: 13px;
    height: 13px;
}

.flip-question {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.55;
}

.flip-hint {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    color: var(--muted);
    font-size: 13px;
}

.flip-hint .icon {
    width: 14px;
    height: 14px;
}

.flip-back {
    align-items: center;
    justify-content: center;
    background: linear-gradient(150deg, var(--accent), #b768d8);
    color: #fff;
    text-align: center;
    transform: rotateY(180deg);
}

.flip-answer-label {
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
    opacity: 0.85;
}

.flip-answer {
    font-size: 36px;
    font-weight: 700;
}

.flip-back .flip-hint {
    margin-top: 0;
    color: rgba(255, 255, 255, 0.85);
}

.flip-card:focus-visible {
    outline: 0;
}

.flip-card:focus-visible .flip-front,
.flip-card:focus-visible .flip-back {
    box-shadow: 0 0 0 3px var(--ring);
}

/* Abacus: beads slide up and the value appears */

.abacus-preview {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 18px;
    margin-top: auto;
    padding-top: 6px;
}

.abacus-rod {
    position: relative;
    display: flex;
    flex-direction: column-reverse;
    gap: 4px;
    padding: 0 6px;
}

.abacus-rod::before {
    content: "";
    position: absolute;
    top: -6px;
    bottom: -6px;
    left: 50%;
    width: 2px;
    background: #d4d4d8;
    transform: translateX(-50%);
}

.abacus-rod i {
    position: relative;
    width: 24px;
    height: 14px;
    border: 2px solid var(--ink);
    border-radius: 999px;
    background: #fff;
    transition: background-color 0.3s ease;
}

.bento-abacus.is-visible .abacus-rod i.on {
    animation: lp-bead 5s var(--lp-ease) infinite;
}

.abacus-value {
    align-self: center;
    margin-left: 6px;
    color: var(--accent);
    font-size: 28px;
    font-weight: 900;
    opacity: 0;
}

.bento-abacus.is-visible .abacus-value {
    animation: lp-show-mid 5s ease infinite;
}

/* Odd word: the odd one lights up with its reason */

.odd-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
}

.odd-preview span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border: 1px solid #cfe3d4;
    border-radius: 12px;
    background: #fff;
    font-size: 18px;
    font-weight: 700;
}

.odd-preview .icon {
    width: 0;
    height: 16px;
    transition: width 0.3s ease;
}

.bento-odd.is-visible .odd-preview .is-odd {
    animation: lp-odd 5s ease infinite;
}

.odd-reason {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #2f6b45;
    font-weight: 700;
    opacity: 0;
}

.odd-reason .icon {
    width: 16px;
    height: 16px;
}

.bento-odd.is-visible .odd-reason {
    animation: lp-show-mid 5s ease infinite;
}

/* Quick sums: the answer types itself */

.sums-preview {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: auto;
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 900;
    letter-spacing: -0.02em;
}

.sums-answer {
    display: inline-flex;
    align-items: center;
    min-width: 2.4ch;
    height: 1.4em;
    padding: 0 12px;
    border: 2px solid var(--accent);
    border-radius: 14px;
    background: var(--accent-soft);
    color: var(--accent);
}

.sums-answer b {
    display: inline-block;
    overflow: hidden;
    width: 0;
    border-right: 3px solid var(--accent);
    white-space: nowrap;
}

.bento-sums.is-visible .sums-answer b {
    animation: lp-type 5s steps(2, end) infinite, lp-caret 0.8s step-end infinite;
}

/* Tickers with every activity */

.ticker {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 40px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.ticker-row {
    overflow: hidden;
}

.ticker-track {
    display: flex;
    gap: 12px;
    width: max-content;
    margin: 0;
    padding: 4px 0;
    list-style: none;
    animation: lp-ticker 60s linear infinite;
}

.ticker-reverse .ticker-track {
    animation-direction: reverse;
    animation-duration: 45s;
}

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

.ticker-track li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid var(--soft-line);
    border-radius: 999px;
    background: #fff;
    box-shadow: var(--shadow);
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
}

.ticker-track .icon {
    width: 16px;
    height: 16px;
    color: var(--accent);
}

.lp-showcase-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 36px;
    text-align: center;
}

@keyframes lp-pop {
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes lp-swap-right {
    0%,
    30% {
        transform: translateX(0);
    }

    45%,
    80% {
        transform: translateX(148px);
    }

    95%,
    100% {
        transform: translateX(0);
    }
}

@keyframes lp-swap-left {
    0%,
    30% {
        transform: translateX(0);
    }

    45%,
    80% {
        transform: translateX(-148px);
    }

    95%,
    100% {
        transform: translateX(0);
    }
}

@keyframes lp-show-mid {
    0%,
    40% {
        opacity: 0;
        transform: translateY(6px);
    }

    50%,
    82% {
        opacity: 1;
        transform: none;
    }

    92%,
    100% {
        opacity: 0;
    }
}

@keyframes lp-bead {
    0%,
    30% {
        background: #fff;
        transform: translateY(0);
    }

    45%,
    82% {
        background: var(--accent);
        transform: translateY(-6px);
    }

    95%,
    100% {
        background: #fff;
        transform: translateY(0);
    }
}

@keyframes lp-odd {
    0%,
    35% {
        border-color: #cfe3d4;
        background: #fff;
        color: var(--ink);
    }

    45%,
    82% {
        border-color: var(--good);
        background: var(--good);
        color: #fff;
    }

    95%,
    100% {
        border-color: #cfe3d4;
        background: #fff;
        color: var(--ink);
    }
}

@keyframes lp-type {
    0%,
    25% {
        width: 0;
    }

    45%,
    85% {
        width: 2ch;
    }

    100% {
        width: 0;
    }
}

@keyframes lp-caret {
    50% {
        border-color: transparent;
    }
}

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

@media (max-width: 960px) {
    .bento {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-areas:
            "sudoku sudoku"
            "scramble scramble"
            "riddle abacus"
            "odd odd"
            "sums sums";
    }
}

@media (max-width: 560px) {
    .bento {
        grid-template-columns: 1fr;
        grid-template-areas:
            "sudoku"
            "scramble"
            "riddle"
            "abacus"
            "odd"
            "sums";
    }

    .scramble-tiles span {
        width: 56px;
        height: 56px;
    }

    @keyframes lp-swap-right {
        0%,
        30% {
            transform: translateX(0);
        }

        45%,
        80% {
            transform: translateX(132px);
        }

        95%,
        100% {
            transform: translateX(0);
        }
    }

    @keyframes lp-swap-left {
        0%,
        30% {
            transform: translateX(0);
        }

        45%,
        80% {
            transform: translateX(-132px);
        }

        95%,
        100% {
            transform: translateX(0);
        }
    }
}

@media (prefers-reduced-motion: reduce) {
    .ticker-track,
    .bento-tile *,
    .flip-inner {
        animation: none !important;
        transition: none !important;
    }

    .ticker-track {
        flex-wrap: wrap;
        justify-content: center;
        width: auto;
    }

    .ticker-track li[aria-hidden="true"] {
        display: none;
    }

    .js .sudoku-preview .fill,
    .scramble-answer,
    .abacus-value,
    .odd-reason {
        opacity: 1;
        transform: none;
    }

    .sums-answer b {
        width: 2ch;
        border-right: 0;
    }
}

/* ==========================================================================
   Member pages in the home page style
   Cream canvas, soft hero headers, rounded soft-shadow cards that lift,
   glowing primary buttons and a light glass sidebar.
   ========================================================================== */

body.has-sidebar {
    background: var(--lp-cream);
}

/* Page header (x-page-header) */

.ph {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    align-items: center;
    gap: 28px;
    margin-bottom: 28px;
    padding: 36px 40px;
    overflow: hidden;
    border: 1px solid #f0e4f5;
    border-radius: 28px;
    background: linear-gradient(135deg, #ffffff 0%, #fbf6fd 55%, #fff4ec 100%);
    box-shadow: var(--lp-shadow-soft);
    isolation: isolate;
}

.ph .lp-blob {
    filter: blur(50px);
    opacity: 0.6;
}

.ph .lp-blob-peach {
    top: auto;
    bottom: -140px;
    left: -100px;
    width: 300px;
    height: 300px;
}

.ph .lp-blob-lavender {
    top: -120px;
    right: -60px;
    width: 320px;
    height: 320px;
}

.ph h1 {
    margin: 16px 0 10px;
    font-size: clamp(28px, 3.6vw, 42px);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    text-wrap: balance;
}

.ph-lead {
    max-width: 52ch;
    margin: 0;
    color: #52525b;
    font-size: 17px;
}

.ph-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.ph-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 180px;
}

.ph-photo {
    width: min(100%, 260px);
    margin: 0;
    overflow: hidden;
    aspect-ratio: 1;
    border-radius: 48% 52% 46% 54% / 40% 42% 58% 60%;
    box-shadow: var(--lp-shadow-soft);
    animation: lp-morph 18s ease-in-out infinite;
}

.ph-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

.ph-orb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #ffffff 0%, var(--lp-lavender) 60%, #e4cdf0 100%);
    box-shadow: inset 0 -10px 30px rgba(142, 68, 173, 0.15), var(--lp-shadow-soft);
    color: var(--accent);
    animation: lp-float 7s ease-in-out infinite;
}

.ph-orb .icon {
    width: 58px;
    height: 58px;
    stroke-width: 1.5;
}

.ph-float-top {
    top: 0;
    left: -8px;
}

.ph-float-bottom {
    right: -4px;
    bottom: 4px;
    animation-delay: -3s;
}

@media (max-width: 860px) {
    .ph {
        grid-template-columns: 1fr;
        padding: 28px 24px;
    }

    .ph-visual {
        display: none;
    }
}

/* Week progress strip under the home header */

.week-strip {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: -8px 0 28px;
    padding: 14px 20px;
    border: 1px solid #f0e4f5;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: var(--shadow);
    font-weight: 700;
}

.week-strip > span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.week-strip .icon {
    color: var(--accent);
}

.week-strip .week-progress {
    flex: 1;
    min-width: 80px;
    height: 10px;
    background: #f1e6f6;
}

.week-strip strong {
    color: var(--accent);
}

/* Section headings */

.section-heading .lp-kicker {
    margin-bottom: 4px;
}

.has-sidebar .group-title {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.has-sidebar .section-title {
    font-size: 20px;
    font-weight: 900;
}

.has-sidebar .activity-group {
    margin-top: 44px;
}

/* Cards, sheets and tiles */

.has-sidebar .card,
.has-sidebar .sheet,
.has-sidebar .link-card,
.has-sidebar .stat,
.has-sidebar .printable,
.has-sidebar .quiz-item,
.has-sidebar .empty-state {
    border-color: #f0e4f5;
    border-radius: 22px;
}

.has-sidebar .sheet {
    padding: 32px;
    box-shadow: var(--lp-shadow-soft);
}

.has-sidebar .card,
.has-sidebar .link-card,
.has-sidebar .printable,
.has-sidebar .stat {
    box-shadow: var(--shadow);
    transition: transform 0.25s var(--lp-ease), box-shadow 0.25s ease, border-color 0.25s ease;
}

.has-sidebar .card:hover,
.has-sidebar .link-card:hover,
.has-sidebar .printable:hover {
    transform: translateY(-4px);
    border-color: #e3cdee;
    box-shadow: var(--lp-shadow-soft);
}

.has-sidebar .card:hover .icon-tile,
.has-sidebar .link-card:hover .icon-tile {
    background: var(--accent);
    color: #fff;
}

.has-sidebar .icon-tile {
    border-radius: 14px;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.has-sidebar .card {
    padding: 22px;
}

.has-sidebar .card h2 {
    font-size: 18px;
}

.has-sidebar .stat:first-child {
    border-color: #ead9f2;
    background: linear-gradient(135deg, var(--lp-lavender), var(--lp-peach));
}

.has-sidebar .stat-value {
    font-weight: 900;
}

.has-sidebar .printable img {
    transition: transform 0.6s var(--lp-ease);
}

.has-sidebar .printable:hover img {
    transform: scale(1.03);
}

.has-sidebar .prompt-body {
    border-radius: 0 16px 16px 0;
    background: linear-gradient(90deg, var(--accent-soft), #fff8f2);
}

/* Buttons glow like the home page call to action */

.btn-primary {
    box-shadow: 0 8px 20px -10px rgba(142, 68, 173, 0.75);
    transition: transform 0.2s var(--lp-ease), box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px -10px rgba(142, 68, 173, 0.8);
}

/* Light glass sidebar */

.has-sidebar .sidebar {
    border-right: 1px solid #f0e4f5;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(251, 246, 253, 0.92));
}

.has-sidebar .sidebar .brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.has-sidebar .side-link {
    height: 40px;
    border-radius: 12px;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s var(--lp-ease);
}

.has-sidebar .side-link:hover {
    background: rgba(142, 68, 173, 0.08);
    color: var(--accent-dark);
    transform: translateX(2px);
}

.has-sidebar .side-link.active {
    background: var(--accent);
    box-shadow: 0 8px 18px -10px rgba(142, 68, 173, 0.9);
    color: #fff;
}

.has-sidebar .side-link.active .icon {
    color: #fff;
}

.has-sidebar .sidebar-week {
    border: 0;
    background: linear-gradient(135deg, var(--lp-lavender), var(--lp-peach));
}

.has-sidebar .avatar {
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), #b768d8);
}

.has-sidebar .app-topbar {
    border-bottom-color: #f0e4f5;
    background: rgba(255, 250, 245, 0.85);
}

.has-sidebar .site-footer {
    border-top-color: #f0e4f5;
}

/* Onboarding inside the split layout */

.auth-panel .steps {
    margin-bottom: 18px;
}

.auth-panel .step legend {
    font-size: 18px;
}

@media (prefers-reduced-motion: reduce) {
    .ph-photo,
    .ph-orb {
        animation: none;
    }

    .has-sidebar .card,
    .has-sidebar .link-card,
    .has-sidebar .printable,
    .has-sidebar .side-link,
    .btn-primary {
        transition: none;
    }
}

/* Logo tile inside the brand keeps a white heart (beats ".brand span") */

.brand .pub-logo {
    color: #fff;
}

/* ==========================================================================
   Pricing
   ========================================================================== */

.price-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    gap: 18px;
}

.price-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 28px 24px;
    border: 1px solid #f0e4f5;
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--shadow);
    transition: transform 0.3s var(--lp-ease), box-shadow 0.3s ease, border-color 0.3s ease;
}

.price-card:hover {
    transform: translateY(-6px);
    border-color: #e3cdee;
    box-shadow: var(--lp-shadow-soft);
}

.price-card.is-featured {
    border: 0;
    background: linear-gradient(160deg, var(--accent) 0%, #6d2f8a 100%);
    box-shadow: 0 24px 48px -20px rgba(109, 47, 138, 0.7);
    color: #fff;
    transform: translateY(-10px);
}

.price-card.is-featured:hover {
    transform: translateY(-14px);
}

.price-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 999px;
    background: #fff3d6;
    box-shadow: var(--shadow);
    color: #8a5a00;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    white-space: nowrap;
    transform: translateX(-50%);
}

.price-badge .icon {
    width: 13px;
    height: 13px;
}

.price-card h3 {
    margin: 4px 0 2px;
    font-size: 20px;
}

.price-for {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 14px;
}

.price-amount {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin: 0;
}

.price-amount strong {
    font-size: 44px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
}

.price-amount span {
    color: var(--muted);
    font-weight: 700;
}

.price-total {
    min-height: 22px;
    margin: 10px 0 12px;
    color: #52525b;
    font-size: 14px;
}

.price-total s {
    margin-left: 4px;
    color: #a1a1aa;
}

.price-save {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--good-soft);
    color: var(--good);
    font-size: 13px;
    font-weight: 700;
}

.price-save .icon {
    width: 14px;
    height: 14px;
}

.price-save-muted {
    background: var(--secondary);
    color: var(--muted);
}

.price-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 22px 0 24px;
    padding: 18px 0 0;
    border-top: 1px solid #f0e4f5;
    list-style: none;
    font-size: 14px;
}

.price-features li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.price-features .icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    color: var(--good);
}

.price-cta {
    width: 100%;
    margin-top: auto;
}

/* Featured (most popular) card colours */

.price-card.is-featured .price-for,
.price-card.is-featured .price-amount span,
.price-card.is-featured .price-total {
    color: rgba(255, 255, 255, 0.82);
}

.price-card.is-featured .price-total s {
    color: rgba(255, 255, 255, 0.55);
}

.price-card.is-featured .price-save {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.price-card.is-featured .price-features {
    border-top-color: rgba(255, 255, 255, 0.2);
}

.price-card.is-featured .price-features .icon {
    color: #f3d9a4;
}

.price-card.is-featured .btn-primary.price-cta {
    border-color: #fff;
    background: #fff;
    box-shadow: 0 10px 22px -12px rgba(0, 0, 0, 0.5);
    color: var(--accent-dark);
}

.price-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    max-width: 720px;
    margin: 36px auto 0;
    color: var(--muted);
    font-size: 14px;
    text-align: center;
}

.price-note .icon {
    flex-shrink: 0;
    color: var(--good);
}

/* Chosen plan on the sign-up page */

.chosen-plan {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: -8px 0 22px;
    padding: 14px 16px;
    border: 1px solid #ead9f2;
    border-radius: 16px;
    background: var(--accent-soft);
}

.chosen-plan strong {
    display: block;
    color: var(--accent-dark);
}

.chosen-plan small {
    color: var(--muted);
    font-size: 13px;
}

@media (max-width: 1080px) {
    .price-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 30px;
    }

    .price-card.is-featured {
        transform: none;
    }

    .price-card.is-featured:hover {
        transform: translateY(-6px);
    }
}

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

@media (prefers-reduced-motion: reduce) {
    .price-card {
        transition: none;
    }
}

/* Free trial: pricing banner, sidebar card, disabled plan buttons */

.trial-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: fit-content;
    max-width: 100%;
    margin: -16px auto 36px;
    padding: 12px 20px;
    border: 1px solid #bbf7d0;
    border-radius: 999px;
    background: #fff;
    box-shadow: var(--shadow);
    color: #3f3f46;
    font-size: 15px;
}

.trial-banner strong {
    color: var(--good);
}

.sidebar-trial {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid #bbf7d0;
    border-radius: 14px;
    background: var(--good-soft);
    color: #166534;
    text-decoration: none;
    transition: transform 0.2s var(--lp-ease), box-shadow 0.2s ease;
}

.sidebar-trial:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lift);
}

.sidebar-trial .icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.sidebar-trial strong {
    display: block;
    font-size: 14px;
}

.sidebar-trial small {
    color: #3f6b4f;
    font-size: 12px;
}

.sidebar-trial.is-ended {
    border-color: #fde68a;
    background: #fffbeb;
    color: #8a5a00;
}

.sidebar-trial.is-ended small {
    color: #8a5a00;
}

.btn.is-disabled {
    cursor: default;
    opacity: 0.75;
}

.btn.is-disabled:hover {
    transform: none;
}

@media (max-width: 560px) {
    .trial-banner {
        border-radius: 16px;
        text-align: left;
    }
}

/* Brand logo (client logo suite) */

.brand-logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

.brand-logo img {
    display: block;
    width: auto;
    max-width: 100%;
}

.sidebar-top .brand-logo img {
    max-width: 170px;
}

.lp-footer-logo {
    padding: 10px 16px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 20px -12px rgba(0, 0, 0, 0.5);
}

@media (max-width: 420px) {
    .pub-brand img {
        height: 36px;
    }
}

/* ==========================================================================
   FAQ: intro card + one-at-a-time accordion
   ========================================================================== */

:root {
    interpolate-size: allow-keywords;
}

.faq-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 40px;
    align-items: start;
}

.faq-intro {
    position: sticky;
    top: 96px;
    padding: 32px;
    overflow: hidden;
    border: 1px solid #f0e4f5;
    border-radius: 28px;
    background: linear-gradient(160deg, #ffffff 0%, var(--lp-lavender) 60%, var(--lp-peach) 100%);
    box-shadow: var(--lp-shadow-soft);
}

.faq-intro h2 {
    margin: 0 0 12px;
    font-size: clamp(28px, 3.2vw, 38px);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.025em;
}

.faq-intro > p {
    margin: 0 0 24px;
    color: #52525b;
    font-size: 17px;
}

.faq-help {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: var(--shadow);
}

.faq-help-icon {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--accent);
    color: #fff;
}

.faq-help strong {
    display: block;
}

.faq-help span {
    color: var(--muted);
    font-size: 14px;
}

.faq-intro-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    position: relative;
    overflow: hidden;
    border: 1px solid #f0e4f5;
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow);
}

.faq-item::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 4px;
    background: var(--accent);
    transform: scaleY(0);
    transition: transform 0.3s var(--lp-ease);
}

.faq-item:hover {
    border-color: #e3cdee;
}

.faq-item[open] {
    border-color: #e3cdee;
    box-shadow: var(--lp-shadow-soft);
}

.faq-item[open]::before {
    transform: scaleY(1);
}

.faq-item summary {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    list-style: none;
    cursor: pointer;
}

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

.faq-item summary:focus-visible {
    outline: 0;
    box-shadow: inset 0 0 0 3px var(--ring);
    border-radius: 20px;
}

.faq-q-icon {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent);
    transition: background-color 0.25s ease, color 0.25s ease;
}

.faq-item[open] .faq-q-icon {
    background: var(--accent);
    color: #fff;
}

.faq-q {
    flex: 1;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
}

.faq-toggle {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--secondary);
    color: var(--muted);
    transition: transform 0.3s var(--lp-ease), background-color 0.25s ease, color 0.25s ease;
}

.faq-toggle .icon {
    width: 16px;
    height: 16px;
}

.faq-item[open] .faq-toggle {
    background: var(--accent-soft);
    color: var(--accent);
    transform: rotate(45deg);
}

.faq-a p {
    margin: 0;
    padding: 0 22px 20px 74px;
    color: #52525b;
    line-height: 1.7;
}

.faq-a a {
    color: var(--accent);
    font-weight: 700;
}

/* Smooth open and close where the browser supports animating <details> content */

.faq-item::details-content {
    block-size: 0;
    overflow: hidden;
    transition: block-size 0.35s var(--lp-ease), content-visibility 0.35s allow-discrete;
}

.faq-item[open]::details-content {
    block-size: auto;
}

@media (max-width: 900px) {
    .faq-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .faq-intro {
        position: static;
    }
}

@media (max-width: 520px) {
    .faq-intro {
        padding: 24px;
    }

    .faq-item summary {
        padding: 16px;
    }

    .faq-a p {
        padding: 0 18px 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .faq-item::before,
    .faq-toggle,
    .faq-item::details-content {
        transition: none;
    }
}

/* Pointer to the separate staff login on the parent login page */

.auth-staff {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.auth-staff .icon {
    width: 14px;
    height: 14px;
}

.auth-staff a {
    color: var(--accent);
    font-weight: 700;
}

.auth-staff.is-highlighted {
    padding: 10px 12px;
    border: 1px solid #fde68a;
    border-radius: 12px;
    background: #fffbeb;
    color: #8a5a00;
    font-size: 14px;
}
