/* =========================================================================
   TinyWins — Marketing site styles
   Shared by index.html, privacy.html, terms.html
   Brand palette + spacing match the iOS app's `TWColors` + `TWSpacing`.
   ========================================================================= */

:root {
    /* Brand colors — mirror TinyWins/DesignSystem/TWColors.swift */
    --tw-primary: #7C6FE6;
    --tw-primary-soft: #A89BEE;
    --tw-primary-deep: #5B4FCC;
    --tw-growth: #7AB89E;
    --tw-reward: #F5B947;
    --tw-connection: #E89484;

    --tw-surface: #FAF6EE;
    --tw-surface-warm: #FCF1E3;
    --tw-card: #FFFFFF;

    --tw-text-primary: #2A2A2A;
    --tw-text-secondary: #767676;
    --tw-text-tertiary: #B4B2A9;

    --tw-border: rgba(0, 0, 0, 0.08);
    --tw-border-strong: rgba(0, 0, 0, 0.14);

    /* Layout tokens */
    --tw-radius-chip: 8px;
    --tw-radius-card: 12px;
    --tw-radius-button: 14px;
    --tw-radius-feature: 20px;

    --tw-shadow-sm: 0 2px 8px rgba(124, 111, 230, 0.06);
    --tw-shadow-md: 0 8px 24px rgba(124, 111, 230, 0.10);
    --tw-shadow-lg: 0 16px 40px rgba(124, 111, 230, 0.15);

    --tw-max-width: 1200px;
    --tw-content-max: 880px;

    /* Typography ramp */
    --tw-font: -apple-system, BlinkMacSystemFont, "SF Pro Display",
               "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue",
               Arial, sans-serif;
    --tw-font-rounded: -apple-system, BlinkMacSystemFont, "SF Pro Rounded",
                       "SF Pro Display", "Segoe UI", Roboto, sans-serif;
}

/* ---------- Reset + base ---------- */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--tw-font);
    font-size: 16px;
    line-height: 1.55;
    color: var(--tw-text-primary);
    background: var(--tw-surface);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

a { color: var(--tw-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

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

button { font: inherit; cursor: pointer; }

::selection {
    background: var(--tw-primary);
    color: #fff;
}

/* ---------- Layout helpers ---------- */

.container {
    max-width: var(--tw-max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.container--narrow {
    max-width: var(--tw-content-max);
}

.section {
    padding: 80px 0;
}

.section--tight { padding: 48px 0; }
.section--loose { padding: 120px 0; }

.section--cream { background: var(--tw-surface); }
.section--card  { background: var(--tw-card); }

/* ---------- Typography ---------- */

.tw-display {
    font-family: var(--tw-font-rounded);
    font-weight: 800;
    font-size: clamp(40px, 6vw, 64px);
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--tw-text-primary);
}

.tw-title {
    font-family: var(--tw-font-rounded);
    font-weight: 700;
    font-size: clamp(28px, 3.5vw, 40px);
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.tw-headline {
    font-weight: 700;
    font-size: 22px;
    line-height: 1.3;
}

.tw-body-large {
    font-size: 18px;
    line-height: 1.55;
    color: var(--tw-text-secondary);
}

.tw-body {
    font-size: 16px;
    line-height: 1.6;
    color: var(--tw-text-secondary);
}

.tw-caption {
    font-size: 13px;
    line-height: 1.5;
    color: var(--tw-text-tertiary);
}

.tw-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    font-size: 12px;
    color: var(--tw-primary);
}

.tw-mascot {
    font-size: 1.2em;
    line-height: 1;
}

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

.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(250, 246, 238, 0.85);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid var(--tw-border);
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    max-width: var(--tw-max-width);
    margin: 0 auto;
}

.nav__brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--tw-font-rounded);
    font-weight: 800;
    font-size: 20px;
    color: var(--tw-primary);
    text-decoration: none;
    letter-spacing: -0.01em;
}

.nav__brand:hover { text-decoration: none; }

.nav__links {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 14px;
    font-weight: 600;
}

.nav__links a {
    color: var(--tw-text-primary);
}

.nav__cta {
    background: var(--tw-primary);
    color: #fff !important;
    padding: 10px 18px;
    border-radius: var(--tw-radius-button);
    font-weight: 700;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.nav__cta:hover {
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: var(--tw-shadow-md);
}

@media (max-width: 720px) {
    .nav__links a:not(.nav__cta) { display: none; }
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: var(--tw-radius-button);
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    border: none;
    white-space: nowrap;
}

.btn--primary {
    background: var(--tw-primary);
    color: #fff;
    box-shadow: var(--tw-shadow-md);
}
.btn--primary:hover {
    background: var(--tw-primary-deep);
    transform: translateY(-2px);
    box-shadow: var(--tw-shadow-lg);
    text-decoration: none;
    color: #fff;
}

.btn--secondary {
    background: rgba(124, 111, 230, 0.10);
    color: var(--tw-primary);
}
.btn--secondary:hover {
    background: rgba(124, 111, 230, 0.18);
    text-decoration: none;
}

.btn--ghost {
    color: var(--tw-text-primary);
    background: transparent;
}
.btn--ghost:hover { color: var(--tw-primary); text-decoration: none; }

.btn--large {
    padding: 16px 28px;
    font-size: 17px;
}

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

.hero {
    padding: 80px 0 60px;
    overflow: hidden;
    position: relative;
}

.hero__inner {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 64px;
    align-items: center;
}

@media (max-width: 880px) {
    .hero__inner {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }
    .hero__cta-row { justify-content: center; }
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(124, 111, 230, 0.10);
    color: var(--tw-primary);
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 24px;
}

.hero__headline { margin-bottom: 24px; }

.hero__sub {
    font-size: 20px;
    line-height: 1.55;
    color: var(--tw-text-secondary);
    margin-bottom: 32px;
    max-width: 540px;
}

@media (max-width: 880px) {
    .hero__sub { margin-left: auto; margin-right: auto; }
}

.hero__cta-row {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.hero__hint {
    font-size: 13px;
    color: var(--tw-text-tertiary);
}

/* ---------- Phone mockup ---------- */

.phone {
    position: relative;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    aspect-ratio: 9 / 19.5;
    background: #111;
    border-radius: 44px;
    padding: 14px;
    box-shadow:
        0 30px 80px -20px rgba(124, 111, 230, 0.40),
        0 0 0 1px rgba(0, 0, 0, 0.85);
    transition: transform 0.6s cubic-bezier(.2,.8,.2,1);
}

.phone:hover { transform: translateY(-6px) rotate(-1deg); }

.phone__screen {
    width: 100%;
    height: 100%;
    border-radius: 32px;
    overflow: hidden;
    position: relative;
    background: var(--tw-surface);
}

.phone__notch {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 28px;
    background: #111;
    border-radius: 999px;
    z-index: 3;
}

/* ---------- Screenshot placeholder ---------- */
/*
   Image placeholders are clean CSS-styled cards with the right gradients +
   emojis so the layout reads well before real screenshots replace them.
   Marked with [data-placeholder] so they're easy to find + swap later.
*/

.shot {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(160deg, var(--tw-surface) 0%, var(--tw-surface-warm) 100%);
    display: flex;
    flex-direction: column;
    padding: 56px 18px 18px;
}

.shot__header {
    font-size: 11px;
    font-weight: 700;
    color: var(--tw-primary);
    margin-bottom: 12px;
}

.shot__title {
    font-family: var(--tw-font-rounded);
    font-weight: 700;
    font-size: 20px;
    line-height: 1.2;
    margin-bottom: 12px;
    color: var(--tw-text-primary);
}

.shot__card {
    background: var(--tw-card);
    border-radius: var(--tw-radius-card);
    padding: 14px;
    margin-bottom: 10px;
    box-shadow: 0 1px 0 var(--tw-border);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--tw-text-primary);
    font-weight: 600;
}

.shot__card span.shot__emoji {
    font-size: 22px;
    width: 32px;
    text-align: center;
    flex-shrink: 0;
}

.shot__coin {
    margin-left: auto;
    background: rgba(245, 185, 71, 0.18);
    color: #b07a08;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 999px;
    font-weight: 700;
}

.shot__progress {
    height: 8px;
    background: rgba(124, 111, 230, 0.15);
    border-radius: 999px;
    overflow: hidden;
    margin-top: 8px;
}

.shot__progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--tw-primary) 0%, var(--tw-primary-soft) 100%);
    border-radius: 999px;
}

.shot__badge--placeholder {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--tw-text-tertiary);
    background: rgba(255, 255, 255, 0.7);
    padding: 3px 8px;
    border-radius: 999px;
    font-weight: 600;
}

/* Floating decorative emojis around the phone */
.hero__visual {
    position: relative;
}

.float-emoji {
    position: absolute;
    font-size: 38px;
    z-index: 4;
    animation: float-y 4.5s ease-in-out infinite;
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.10));
}

.float-emoji--coin { top: 6%; right: -2%; animation-delay: 0.4s; }
.float-emoji--owl  { bottom: 14%; left: -8%; animation-delay: 1s; }
.float-emoji--star { top: 36%; left: -6%; font-size: 28px; animation-delay: 1.6s; }

@keyframes float-y {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-14px); }
}

/* ---------- Trust strip ---------- */

.trust {
    padding: 32px 0 16px;
    text-align: center;
    color: var(--tw-text-tertiary);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

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

.section-title {
    text-align: center;
    margin-bottom: 56px;
}

.section-title__eyebrow {
    display: block;
    color: var(--tw-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 12px;
}

.section-title__body {
    color: var(--tw-text-secondary);
    font-size: 18px;
    max-width: 620px;
    margin: 16px auto 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.feature {
    background: var(--tw-card);
    border-radius: var(--tw-radius-feature);
    padding: 28px;
    border: 1px solid var(--tw-border);
    transition: transform 0.25s cubic-bezier(.2,.8,.2,1), box-shadow 0.25s ease;
}

.feature:hover {
    transform: translateY(-4px);
    box-shadow: var(--tw-shadow-md);
}

.feature__icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 16px;
}

.feature__icon--primary    { background: rgba(124, 111, 230, 0.14); }
.feature__icon--growth     { background: rgba(122, 184, 158, 0.18); }
.feature__icon--reward     { background: rgba(245, 185, 71, 0.18); }
.feature__icon--connection { background: rgba(232, 148, 132, 0.18); }
.feature__icon--info       { background: rgba(168, 155, 238, 0.20); }
.feature__icon--coral      { background: rgba(232, 148, 132, 0.22); }

.feature__title {
    font-weight: 700;
    font-size: 19px;
    color: var(--tw-text-primary);
    margin-bottom: 8px;
}

.feature__body {
    color: var(--tw-text-secondary);
    font-size: 15px;
    line-height: 1.55;
}

.feature__tag {
    display: inline-block;
    margin-top: 14px;
    background: rgba(124, 111, 230, 0.10);
    color: var(--tw-primary);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ---------- Differentiator (alternating rows) ---------- */

.spotlight {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.spotlight + .spotlight { margin-top: 96px; }

.spotlight--reverse .spotlight__copy { order: 2; }

@media (max-width: 880px) {
    .spotlight, .spotlight--reverse {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .spotlight--reverse .spotlight__copy { order: initial; }
}

.spotlight__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(122, 184, 158, 0.14);
    color: #3f8666;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 16px;
}

.spotlight__eyebrow--reward     { background: rgba(245, 185, 71, 0.18); color: #a8770a; }
.spotlight__eyebrow--connection { background: rgba(232, 148, 132, 0.18); color: #b85a48; }

.spotlight__title {
    font-family: var(--tw-font-rounded);
    font-size: clamp(28px, 3.4vw, 36px);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
}

.spotlight__body {
    color: var(--tw-text-secondary);
    font-size: 17px;
    margin-bottom: 20px;
    max-width: 480px;
}

.spotlight__bullets {
    list-style: none;
    display: grid;
    gap: 12px;
}

.spotlight__bullets li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--tw-text-primary);
    font-weight: 500;
}

.spotlight__bullets li::before {
    content: "✓";
    color: var(--tw-growth);
    background: rgba(122, 184, 158, 0.18);
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 13px;
    margin-top: 2px;
}

.spotlight__visual {
    background: linear-gradient(135deg, var(--tw-surface-warm) 0%, var(--tw-surface) 100%);
    border-radius: var(--tw-radius-feature);
    padding: 40px;
    border: 1px solid var(--tw-border);
    aspect-ratio: 4 / 5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spotlight__visual--reward     { background: linear-gradient(135deg, rgba(245, 185, 71, 0.20), rgba(232, 148, 132, 0.15)); }
.spotlight__visual--connection { background: linear-gradient(135deg, rgba(232, 148, 132, 0.18), rgba(124, 111, 230, 0.10)); }
.spotlight__visual--growth     { background: linear-gradient(135deg, rgba(122, 184, 158, 0.18), rgba(124, 111, 230, 0.10)); }

.spotlight__phone {
    width: 220px;
    height: auto;
    aspect-ratio: 9 / 19.5;
}

/* ---------- How it works ---------- */

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    counter-reset: step;
}

.step {
    background: var(--tw-card);
    border-radius: var(--tw-radius-feature);
    padding: 32px 24px;
    text-align: left;
    border: 1px solid var(--tw-border);
    position: relative;
}

.step__num {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: var(--tw-primary);
    color: #fff;
    font-weight: 800;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    box-shadow: 0 6px 14px rgba(124, 111, 230, 0.35);
}

.step__title {
    font-weight: 700;
    font-size: 18px;
    color: var(--tw-text-primary);
    margin-bottom: 8px;
}

.step__body {
    color: var(--tw-text-secondary);
    font-size: 15px;
    line-height: 1.55;
}

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

.pricing {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.tier {
    background: var(--tw-card);
    border-radius: var(--tw-radius-feature);
    padding: 32px 28px;
    border: 1px solid var(--tw-border);
    text-align: left;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tier:hover { transform: translateY(-4px); box-shadow: var(--tw-shadow-md); }

.tier--featured {
    border: 2px solid var(--tw-primary);
    transform: scale(1.02);
    background: linear-gradient(180deg, rgba(124, 111, 230, 0.05) 0%, transparent 60%);
    position: relative;
}

.tier--featured::before {
    content: "Most popular";
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--tw-primary);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 999px;
    letter-spacing: 0.04em;
}

.tier__name {
    font-weight: 700;
    font-size: 16px;
    color: var(--tw-primary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}

.tier__price {
    font-family: var(--tw-font-rounded);
    font-size: 44px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--tw-text-primary);
}

.tier__cadence {
    color: var(--tw-text-secondary);
    font-size: 15px;
    margin-bottom: 4px;
}

.tier__save {
    display: inline-block;
    background: rgba(122, 184, 158, 0.18);
    color: #3f8666;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 999px;
    margin-bottom: 16px;
}

.tier__features {
    list-style: none;
    margin: 20px 0 24px;
    display: grid;
    gap: 10px;
}

.tier__features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--tw-text-primary);
    font-size: 14px;
    font-weight: 500;
}

.tier__features li::before {
    content: "✓";
    color: var(--tw-growth);
    font-weight: 800;
    flex-shrink: 0;
}

.tier__cta {
    width: 100%;
    text-align: center;
    background: var(--tw-primary);
    color: #fff;
}

.tier--secondary .tier__cta {
    background: rgba(124, 111, 230, 0.12);
    color: var(--tw-primary);
    box-shadow: none;
}

.pricing__legal {
    margin-top: 28px;
    font-size: 12px;
    color: var(--tw-text-tertiary);
    text-align: center;
    line-height: 1.6;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

/* ---------- Testimonials ---------- */

.testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.testimonial {
    background: var(--tw-card);
    border-radius: var(--tw-radius-feature);
    padding: 28px;
    border: 1px solid var(--tw-border);
}

.testimonial__quote {
    font-size: 17px;
    line-height: 1.6;
    color: var(--tw-text-primary);
    margin-bottom: 18px;
    font-weight: 500;
}

.testimonial__attr {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial__avatar {
    width: 38px;
    height: 38px;
    background: rgba(124, 111, 230, 0.16);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.testimonial__who {
    font-weight: 700;
    font-size: 14px;
}
.testimonial__role {
    font-size: 13px;
    color: var(--tw-text-tertiary);
}

/* ---------- FAQ ---------- */

.faq {
    max-width: var(--tw-content-max);
    margin: 0 auto;
    display: grid;
    gap: 12px;
}

.faq__item {
    background: var(--tw-card);
    border: 1px solid var(--tw-border);
    border-radius: var(--tw-radius-card);
    padding: 0;
    overflow: hidden;
}

.faq__summary {
    list-style: none;
    cursor: pointer;
    padding: 20px 22px;
    font-weight: 700;
    font-size: 16px;
    color: var(--tw-text-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.faq__summary::-webkit-details-marker { display: none; }

.faq__summary::after {
    content: "+";
    color: var(--tw-primary);
    font-size: 22px;
    font-weight: 600;
    transition: transform 0.2s ease;
}

.faq__item[open] .faq__summary::after { content: "−"; }

.faq__body {
    padding: 0 22px 22px;
    color: var(--tw-text-secondary);
    font-size: 15px;
    line-height: 1.6;
}

/* ---------- CTA banner ---------- */

.cta-banner {
    background: linear-gradient(135deg, var(--tw-primary) 0%, var(--tw-primary-deep) 100%);
    color: #fff;
    border-radius: 32px;
    padding: 64px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: "🦉";
    position: absolute;
    top: 18px;
    left: 32px;
    font-size: 60px;
    opacity: 0.4;
}

.cta-banner::after {
    content: "🪙";
    position: absolute;
    bottom: 18px;
    right: 36px;
    font-size: 80px;
    opacity: 0.35;
}

.cta-banner__title {
    font-family: var(--tw-font-rounded);
    font-size: clamp(28px, 3.6vw, 40px);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
}

.cta-banner__body {
    color: rgba(255, 255, 255, 0.85);
    font-size: 18px;
    margin-bottom: 28px;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}

.cta-banner .btn--primary {
    background: #fff;
    color: var(--tw-primary);
}

.cta-banner .btn--primary:hover {
    background: rgba(255, 255, 255, 0.92);
    color: var(--tw-primary-deep);
}

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

.footer {
    background: var(--tw-card);
    border-top: 1px solid var(--tw-border);
    padding: 56px 0 32px;
    color: var(--tw-text-secondary);
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

@media (max-width: 720px) {
    .footer__grid { grid-template-columns: 1fr 1fr; gap: 28px; }
    .footer__brand { grid-column: 1 / -1; }
}

.footer__brand-name {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--tw-font-rounded);
    font-weight: 800;
    font-size: 20px;
    color: var(--tw-primary);
    margin-bottom: 12px;
}

.footer__tagline {
    color: var(--tw-text-tertiary);
    font-size: 14px;
    max-width: 280px;
    line-height: 1.6;
}

.footer__group-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--tw-text-primary);
    margin-bottom: 14px;
}

.footer__list {
    list-style: none;
    display: grid;
    gap: 10px;
}

.footer__list a {
    color: var(--tw-text-secondary);
    font-size: 14px;
}

.footer__list a:hover { color: var(--tw-primary); text-decoration: none; }

.footer__bottom {
    border-top: 1px solid var(--tw-border);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: var(--tw-text-tertiary);
}

/* ---------- Legal pages (privacy.html, terms.html) ---------- */

.legal {
    padding: 64px 0 96px;
}

.legal__container {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 24px;
}

.legal__breadcrumb {
    color: var(--tw-text-tertiary);
    font-size: 13px;
    margin-bottom: 20px;
}

.legal__title {
    font-family: var(--tw-font-rounded);
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--tw-text-primary);
}

.legal__updated {
    color: var(--tw-text-secondary);
    font-size: 14px;
    margin-bottom: 32px;
}

.legal__intro {
    font-size: 18px;
    color: var(--tw-text-primary);
    background: var(--tw-card);
    border-radius: var(--tw-radius-card);
    border: 1px solid var(--tw-border);
    padding: 22px 24px;
    margin-bottom: 40px;
    line-height: 1.65;
}

.legal__intro strong { color: var(--tw-primary); }

.legal__toc {
    background: var(--tw-card);
    border-radius: var(--tw-radius-card);
    border: 1px solid var(--tw-border);
    padding: 22px 24px;
    margin-bottom: 48px;
}

.legal__toc-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--tw-primary);
    margin-bottom: 12px;
}

.legal__toc ol {
    list-style: decimal;
    padding-left: 22px;
    columns: 2;
    gap: 24px;
}

@media (max-width: 580px) {
    .legal__toc ol { columns: 1; }
}

.legal__toc li {
    padding: 4px 0;
    color: var(--tw-text-secondary);
    font-size: 14px;
}

.legal__toc a { color: var(--tw-text-secondary); }
.legal__toc a:hover { color: var(--tw-primary); text-decoration: none; }

.legal__body {
    font-size: 16px;
    line-height: 1.75;
    color: var(--tw-text-primary);
}

.legal__body h2 {
    font-family: var(--tw-font-rounded);
    font-size: 24px;
    font-weight: 800;
    color: var(--tw-text-primary);
    margin: 56px 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(124, 111, 230, 0.18);
    scroll-margin-top: 80px;
}

.legal__body h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--tw-text-primary);
    margin: 28px 0 8px;
}

.legal__body p { margin-bottom: 16px; color: var(--tw-text-secondary); }

.legal__body strong { color: var(--tw-text-primary); font-weight: 700; }

.legal__body ul, .legal__body ol {
    margin: 12px 0 16px 20px;
    padding-left: 8px;
}

.legal__body li {
    color: var(--tw-text-secondary);
    margin-bottom: 8px;
}

.legal__body a {
    color: var(--tw-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal__callout {
    background: rgba(124, 111, 230, 0.06);
    border-left: 4px solid var(--tw-primary);
    padding: 16px 20px;
    border-radius: 0 var(--tw-radius-card) var(--tw-radius-card) 0;
    margin: 24px 0;
    color: var(--tw-text-primary);
}

.legal__callout--coral {
    background: rgba(232, 148, 132, 0.08);
    border-color: var(--tw-connection);
}

.legal__callout--growth {
    background: rgba(122, 184, 158, 0.10);
    border-color: var(--tw-growth);
}

.legal__back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 56px;
    color: var(--tw-primary);
    font-weight: 700;
    font-size: 14px;
}

/* ---------- Subtle entrance animation ---------- */

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(16px);
        animation: reveal 0.6s ease forwards;
    }
    .reveal--delay-1 { animation-delay: 0.1s; }
    .reveal--delay-2 { animation-delay: 0.2s; }
    .reveal--delay-3 { animation-delay: 0.3s; }
}

@keyframes reveal {
    to { opacity: 1; transform: none; }
}
