/* Loodi legal pages — Classic Yard palette, light & dark. */

:root {
    --bg: #f5efe3;
    --surface: #fffdf7;
    --text: #2b2118;
    --muted: #7a6a58;
    --accent: #d3404a;
    --border: #e3d8c4;
    --red: #d3404a;
    --green: #1f8a4c;
    --yellow: #f2b517;
    --blue: #2a70b0;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #17110c;
        --surface: #211913;
        --text: #f0e8da;
        --muted: #a8988a;
        --border: #3a2e22;
    }
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

main {
    max-width: 720px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}

header.site {
    text-align: center;
    padding-top: 40px;
}

.tokens {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 12px;
}

.token {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
}

.token.red { background: var(--red); }
.token.green { background: var(--green); }
.token.yellow { background: var(--yellow); }
.token.blue { background: var(--blue); }

h1 {
    font-size: 2rem;
    margin: 0.2em 0 0.4em;
}

h2 {
    font-size: 1.25rem;
    margin-top: 2em;
}

p.tagline {
    color: var(--muted);
    margin-top: 0;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 28px 32px;
    margin-top: 28px;
}

a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

a:hover {
    text-decoration: underline;
}

ul {
    padding-left: 1.2em;
}

li {
    margin: 0.4em 0;
}

.meta {
    color: var(--muted);
    font-size: 0.9rem;
}

footer {
    text-align: center;
    color: var(--muted);
    font-size: 0.85rem;
    padding: 24px;
}

nav.crumbs {
    margin-bottom: 8px;
    font-size: 0.9rem;
}

/* ---------- Landing page (index.html only, scoped to body.home) ---------- */

body.home {
    position: relative;
    overflow-x: hidden;
}

/* Board-colored ribbon across the very top of the page. */
body.home .board-stripes {
    height: 6px;
    background: linear-gradient(
        90deg,
        var(--red) 0 25%,
        var(--green) 25% 50%,
        var(--yellow) 50% 75%,
        var(--blue) 75% 100%
    );
}

body.home .hero {
    text-align: center;
    padding: 64px 24px 8px;
    background:
        radial-gradient(ellipse 80% 60% at 50% -10%,
            color-mix(in srgb, var(--yellow) 14%, transparent),
            transparent 70%);
}

body.home .tokens {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin-bottom: 18px;
}

body.home .token {
    width: 26px;
    height: 26px;
    animation: token-bob 2.6s ease-in-out infinite;
}

body.home .token.green  { animation-delay: 0.2s; }
body.home .token.yellow { animation-delay: 0.4s; }
body.home .token.blue   { animation-delay: 0.6s; }

@keyframes token-bob {
    0%, 100% { transform: translateY(0); }
    30%      { transform: translateY(-8px); }
}

@media (prefers-reduced-motion: reduce) {
    body.home .token { animation: none; }
}

.wordmark {
    font-size: clamp(3rem, 10vw, 4.5rem);
    letter-spacing: -0.02em;
    margin: 0;
    background: linear-gradient(120deg, var(--red), var(--yellow) 55%, var(--green));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

body.home .tagline {
    font-size: 1.15rem;
    max-width: 480px;
    margin: 10px auto 0;
}

.badge {
    display: inline-block;
    margin-top: 18px;
    padding: 8px 18px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* CSS dice — a pair showing 6 and 5. */
.dice {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin: 34px 0 6px;
}

.die {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    width: 54px;
    height: 54px;
    padding: 9px;
    border-radius: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
    transform: rotate(-8deg);
}

.die + .die {
    transform: rotate(7deg) translateY(4px);
}

.die i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text);
    place-self: center;
}

/* Six: two columns of three pips. */
.die i:nth-child(1) { grid-area: 1 / 1; }
.die i:nth-child(2) { grid-area: 2 / 1; }
.die i:nth-child(3) { grid-area: 3 / 1; }
.die i:nth-child(4) { grid-area: 1 / 3; }
.die i:nth-child(5) { grid-area: 2 / 3; }
.die i:nth-child(6) { grid-area: 3 / 3; }

/* Five: four corners plus center. */
.die.five i:nth-child(1) { grid-area: 1 / 1; }
.die.five i:nth-child(2) { grid-area: 1 / 3; }
.die.five i:nth-child(3) { grid-area: 2 / 2; }
.die.five i:nth-child(4) { grid-area: 3 / 1; }
.die.five i:nth-child(5) { grid-area: 3 / 3; }

body.home main {
    max-width: 860px;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.feature {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 24px 26px;
    border-top: 4px solid var(--border);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.feature:nth-child(1) { border-top-color: var(--red); }
.feature:nth-child(2) { border-top-color: var(--green); }
.feature:nth-child(3) { border-top-color: var(--yellow); }
.feature:nth-child(4) { border-top-color: var(--blue); }

.feature:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 1.8rem;
    display: block;
}

.feature h2 {
    font-size: 1.1rem;
    margin: 0.5em 0 0.3em;
}

.feature p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.support-card {
    text-align: center;
    margin-top: 40px;
}

.support-card h2 {
    margin-top: 0;
}

.button {
    display: inline-block;
    margin-top: 6px;
    padding: 12px 26px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--accent) 40%, transparent);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.button:hover {
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 50%, transparent);
}

.footer-links {
    margin-bottom: 8px;
}

.footer-links a {
    margin: 0 8px;
}
