﻿/* ============================================================
   public_landing.css
   Single accent colour: #FF5C00. Everything else is neutral and
   inherits the theme variables defined in base.html.
   Fraunces is loaded from base.html (no blocking @import here).
   ============================================================ */

#landing {
    /* ---- accent (the only one) ---- */
    --lp-accent: #FF5C00;
    --lp-accent-hover: #FF7A2E;
    --lp-accent-text: #C2410C;
    /* darker shade of the same hue for small text on light bg */
    --lp-accent-dim: rgba(255, 92, 0, 0.10);
    --lp-accent-line: rgba(255, 92, 0, 0.38);
    --lp-accent-glow: rgba(255, 92, 0, 0.22);

    /* ---- type ---- */
    --lp-serif: 'Fraunces', Georgia, serif;
    --lp-sans: var(--font-body, 'Poppins', sans-serif);
    --lp-mono: 'IBM Plex Mono', ui-monospace, monospace;

    /* ---- neutrals, inherited from base.html ---- */
    --lp-bg: var(--bg);
    --lp-alt: var(--surface-2);
    --lp-card: var(--card-bg);
    --lp-text: var(--text);
    --lp-body: var(--text-secondary);
    --lp-muted: var(--text-muted);
    --lp-border: var(--border);

    --lp-radius: 14px;
    --lp-max: none;

    color: var(--lp-text);
    font-family: var(--lp-sans);
    background: var(--lp-bg);
    overflow-x: hidden;
}

html.dark #landing {
    --lp-accent-text: #FF6A1F;
}

#landing *,
#landing *::before,
#landing *::after {
    box-sizing: border-box;
}

#landing :focus-visible {
    outline: 2px solid var(--lp-accent);
    outline-offset: 3px;
}

#landing ::selection {
    background: var(--lp-accent);
    color: #fff;
}

#landing .lp-wrap {
    width: 100%;
    max-width: var(--lp-max);
    margin: 0 auto;
    padding: 0 5%;
}

#landing .lp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--lp-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--lp-muted);
}

#landing .lp-eyebrow::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--lp-accent);
    flex-shrink: 0;
}

/* ============================================================
   HERO
   ============================================================ */

#landing .lp-hero {
    position: relative;
    padding: 88px 0 0;
    overflow: hidden;
    background:
        radial-gradient(60% 80% at 88% 8%, var(--lp-accent-dim), transparent 62%),
        var(--lp-bg);
    border-bottom: 1px solid var(--lp-border);
}

#landing .lp-dots {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.07;
    background-image: radial-gradient(circle, var(--lp-text) 1px, transparent 1px);
    background-size: 22px 22px;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
    mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}

html.dark #landing .lp-dots {
    opacity: 0.12;
}

#landing .lp-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 0.85fr 1.35fr;
    gap: 48px;
    align-items: center;
    padding-bottom: 96px;
}

#landing .lp-hero-title {
    font-family: var(--lp-serif);
    font-size: clamp(42px, 5.4vw, 72px);
    font-weight: 600;
    line-height: 1.04;
    letter-spacing: -0.01em;
    color: var(--lp-text);
    margin: 22px 0 26px;
}

#landing .lp-hero-title em {
    font-style: italic;
    font-weight: 500;
    color: var(--lp-accent);
}

#landing .lp-hero-sub {
    max-width: 470px;
    margin-bottom: 40px;
    font-size: 17px;
    line-height: 1.7;
    color: var(--lp-body);
}

#landing .lp-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 48px;
}

/* ---- buttons ---- */

#landing .lp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 52px;
    padding: 0 28px;
    border: 1.5px solid transparent;
    border-radius: 10px;
    font-family: var(--lp-sans);
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.01em;
    white-space: nowrap;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

#landing .lp-btn svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
}

#landing .lp-btn-primary {
    background: var(--lp-accent);
    border-color: var(--lp-accent);
    color: #fff;
    box-shadow: 0 10px 26px -10px var(--lp-accent-glow), 0 0 0 0 transparent;
}

#landing .lp-btn-primary:hover {
    background: var(--lp-accent-hover);
    border-color: var(--lp-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 16px 32px -12px var(--lp-accent-glow);
}

#landing .lp-btn-outline {
    background: transparent;
    border-color: var(--lp-text);
    color: var(--lp-text);
}

#landing .lp-btn-outline:hover {
    background: var(--lp-text);
    color: var(--lp-bg);
    transform: translateY(-2px);
}

#landing .lp-btn-block {
    width: 100%;
}

/* ---- ledger ---- */

#landing .lp-ledger {
    display: flex;
    align-items: stretch;
    max-width: 500px;
    padding-top: 1.1rem;
    border-top: 1px solid var(--lp-border);
}

#landing .lp-ledger-item {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0 1.4rem;
}

#landing .lp-ledger-item:first-child {
    padding-left: 0;
}

#landing .lp-ledger-item+.lp-ledger-item {
    border-left: 1px solid var(--lp-border);
}

#landing .lp-ledger-value {
    font-family: var(--lp-mono);
    font-size: clamp(1.4rem, 2.3vw, 1.95rem);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    color: var(--lp-text);
}

#landing .lp-ledger-value.is-accent {
    color: var(--lp-accent);
}

#landing .lp-ledger-label {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.8rem;
    color: var(--lp-muted);
}

#landing .lp-ledger-pulse {
    flex: none;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--lp-accent);
    animation: lp-pulse 2.4s ease-out infinite;
}

@keyframes lp-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 92, 0, 0.5);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(255, 92, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 92, 0, 0);
    }
}

#landing .lp-hero-note {
    margin-top: 14px;
    font-family: var(--lp-mono);
    font-size: 11.5px;
    color: var(--lp-muted);
}

/* ---- hero artwork ---- */

#landing .lp-hero-art {
    display: block;
    width: 118%;
    max-width: none;
    height: auto;
    margin-left: -9%;
    pointer-events: none;
}

#landing .lp-art-dark {
    display: none;
}

html.dark #landing .lp-art-dark {
    display: block;
}

html.dark #landing .lp-art-light {
    display: none;
}

/* ============================================================
   SECTION SCAFFOLD
   ============================================================ */

#landing .lp-section {
    padding: 104px 0;
    background: var(--lp-bg);
}

#landing .lp-section-alt {
    background: var(--lp-alt);
    border-top: 1px solid var(--lp-border);
    border-bottom: 1px solid var(--lp-border);
}

#landing .lp-head {
    margin-bottom: 56px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--lp-border);
}

#landing .lp-title {
    max-width: 640px;
    margin-top: 14px;
    font-family: var(--lp-serif);
    font-size: clamp(30px, 3.6vw, 46px);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.01em;
    color: var(--lp-text);
}

/* ============================================================
   AD FORMATS
   ============================================================ */

#landing .lp-formats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

#landing .lp-card {
    position: relative;
    overflow: hidden;
    padding: 36px 32px 32px;
    background: var(--lp-card);
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

#landing .lp-card:hover {
    transform: translateY(-4px);
    border-color: var(--lp-accent-line);
    box-shadow: 0 24px 48px -28px var(--lp-accent-glow);
}

#landing .lp-card-ghost {
    position: absolute;
    top: -20px;
    right: 0;
    font-family: var(--lp-serif);
    font-size: 120px;
    font-weight: 600;
    line-height: 1;
    color: var(--lp-text);
    opacity: 0.04;
    pointer-events: none;
    user-select: none;
}

#landing .lp-card-num {
    position: relative;
    display: block;
    margin-bottom: 20px;
    font-family: var(--lp-mono);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.14em;
    color: var(--lp-accent-text);
}

#landing .lp-card-name {
    position: relative;
    margin-bottom: 12px;
    font-family: var(--lp-serif);
    font-size: 23px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--lp-text);
}

#landing .lp-card-desc {
    position: relative;
    font-size: 14px;
    line-height: 1.65;
    color: var(--lp-body);
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */

#landing .lp-steps {
    display: flex;
    flex-direction: column;
}

#landing .lp-step {
    display: grid;
    grid-template-columns: 100px 1fr 1.3fr;
    gap: 32px;
    align-items: start;
    padding: 32px 0;
    border-top: 1px solid var(--lp-border);
}

#landing .lp-step:last-child {
    border-bottom: 1px solid var(--lp-border);
}

#landing .lp-step-num {
    font-family: var(--lp-serif);
    font-size: 40px;
    font-style: italic;
    font-weight: 500;
    line-height: 1;
    color: var(--lp-accent);
}

#landing .lp-step-title {
    font-family: var(--lp-serif);
    font-size: 22px;
    font-weight: 600;
    color: var(--lp-text);
}

#landing .lp-step-desc {
    max-width: 480px;
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--lp-body);
}

/* ============================================================
   CONTROL CARDS (targeting, payment facts)
   ============================================================ */

#landing .lp-controls {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    overflow: hidden;
    background: var(--lp-border);
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius);
}

#landing .lp-controls-2 {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 2rem;
}

#landing .lp-control {
    padding: 34px 28px;
    background: var(--lp-card);
}

#landing .lp-control-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-bottom: 22px;
    border-radius: 50%;
    border: 1.5px solid var(--lp-accent-line);
    background: var(--lp-accent-dim);
    color: var(--lp-accent-text);
}

#landing .lp-control-icon svg {
    width: 18px;
    height: 18px;
}

#landing .lp-control-title {
    margin-bottom: 10px;
    font-family: var(--lp-serif);
    font-size: 18.5px;
    font-weight: 600;
    color: var(--lp-text);
}

#landing .lp-control-desc {
    font-size: 13.5px;
    line-height: 1.65;
    color: var(--lp-body);
}

#landing .lp-control-desc strong {
    color: var(--lp-text);
    font-weight: 600;
}

/* ============================================================
   ROLES
   ============================================================ */

#landing .lp-roles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    overflow: hidden;
    background: var(--lp-border);
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius);
}

#landing .lp-role {
    padding: 48px 42px;
    background: var(--lp-card);
    transition: background 0.3s ease;
}

#landing .lp-role-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-bottom: 24px;
    border-radius: 50%;
    border: 1.5px solid var(--lp-accent);
    font-family: var(--lp-serif);
    font-size: 17px;
    font-style: italic;
    color: var(--lp-accent-text);
}

#landing .lp-role.is-advertiser .lp-role-mark {
    background: var(--lp-accent);
    color: #fff;
}

#landing .lp-role-tag {
    margin-bottom: 16px;
    font-family: var(--lp-mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--lp-muted);
}

#landing .lp-role-title {
    max-width: 360px;
    margin-bottom: 16px;
    font-family: var(--lp-serif);
    font-size: 28px;
    font-weight: 600;
    line-height: 1.18;
    color: var(--lp-text);
}

#landing .lp-role-desc {
    max-width: 380px;
    margin-bottom: 28px;
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--lp-body);
}

#landing .lp-role-terms {
    list-style: none;
    margin: 0 0 32px;
    padding: 0;
    border-top: 1px solid var(--lp-border);
}

#landing .lp-role-terms li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid var(--lp-border);
    font-size: 13.5px;
    color: var(--lp-text);
}

#landing .lp-role-terms li span:first-child {
    color: var(--lp-muted);
}

#landing .lp-role-terms li span:last-child {
    font-family: var(--lp-mono);
    font-weight: 600;
}

/* ============================================================
   PAYMENTS
   ============================================================ */

#landing .lp-coins {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    overflow: hidden;
    margin-bottom: 28px;
    background: var(--lp-border);
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius);
}

#landing .lp-coin {
    padding: 26px 22px;
    background: var(--lp-card);
}

#landing .lp-coin-sym {
    margin-bottom: 10px;
    font-family: var(--lp-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--lp-accent-text);
}

#landing .lp-coin-name {
    font-family: var(--lp-serif);
    font-size: 19px;
    font-weight: 600;
    color: var(--lp-text);
}

#landing .lp-pay-note {
    padding-top: 8px;
    text-align: center;
    font-family: var(--lp-mono);
    font-size: 12px;
    color: var(--lp-muted);
}

#landing .lp-pay-note b {
    color: var(--lp-accent-text);
    font-weight: 600;
}

/* ============================================================
   FAQ
   ============================================================ */

#landing .lp-faq {
    max-width: 780px;
}

#landing .lp-faq-item {
    border-bottom: 1px solid var(--lp-border);
}

#landing .lp-faq-item:first-child {
    border-top: 1px solid var(--lp-border);
}

#landing .lp-faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 24px 4px;
    list-style: none;
    cursor: pointer;
    font-family: var(--lp-serif);
    font-size: 18px;
    font-weight: 600;
    color: var(--lp-text);
}

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

#landing .lp-faq-toggle {
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1.5px solid var(--lp-accent);
    color: var(--lp-accent-text);
    transition: transform 0.3s ease, background 0.3s ease;
}

#landing .lp-faq-toggle::before,
#landing .lp-faq-toggle::after {
    content: '';
    position: absolute;
    background: currentColor;
}

#landing .lp-faq-toggle::before {
    width: 11px;
    height: 1.5px;
}

#landing .lp-faq-toggle::after {
    width: 1.5px;
    height: 11px;
    transition: transform 0.3s ease;
}

#landing .lp-faq-item[open] .lp-faq-toggle {
    transform: rotate(180deg);
    background: var(--lp-accent-dim);
}

#landing .lp-faq-item[open] .lp-faq-toggle::after {
    transform: rotate(90deg);
}

#landing .lp-faq-answer {
    max-width: 620px;
    padding: 0 4px 26px;
    font-size: 14.5px;
    line-height: 1.75;
    color: var(--lp-body);
}

/* ============================================================
   FINAL CTA
   ============================================================ */

#landing .lp-final {
    padding: 128px 5% 104px;
    text-align: center;
    background:
        radial-gradient(50% 80% at 50% 100%, var(--lp-accent-dim), transparent 70%),
        var(--lp-bg);
}

#landing .lp-final-title {
    margin: 20px 0;
    font-family: var(--lp-serif);
    font-size: clamp(38px, 5.6vw, 62px);
    font-weight: 600;
    line-height: 1.08;
    color: var(--lp-text);
}

#landing .lp-final-title em {
    font-style: italic;
    color: var(--lp-accent);
}

#landing .lp-final-sub {
    max-width: 460px;
    margin: 0 auto 40px;
    font-size: 16px;
    line-height: 1.7;
    color: var(--lp-body);
}

#landing .lp-final-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-bottom: 26px;
}

#landing .lp-final-note {
    font-family: var(--lp-mono);
    font-size: 12px;
    color: var(--lp-muted);
}

/* ============================================================
   REVEAL (only hidden when JS is running)
   ============================================================ */

.js #landing .lp-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s cubic-bezier(.4, 0, .2, 1), transform 0.6s cubic-bezier(.4, 0, .2, 1);
}

.js #landing .lp-reveal.lp-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {

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

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 980px) {
    #landing .lp-hero-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    #landing .lp-hero-art {
        width: 100%;
        max-width: 720px;
        margin: 0 auto;
    }
}

@media (max-width: 900px) {

    #landing .lp-formats,
    #landing .lp-controls {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 800px) {
    #landing .lp-roles {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    #landing .lp-step {
        grid-template-columns: 60px 1fr;
    }

    #landing .lp-step-desc {
        grid-column: 2;
    }
}

@media (max-width: 720px) {

    /* artwork + ledger are hidden on phones; the header ticker carries the stats */
    #landing .lp-hero-art,
    #landing .lp-ledger,
    #landing .lp-hero-note {
        display: none !important;
    }

    #landing .lp-hero {
        padding: 52px 0 0;
    }

    #landing .lp-hero-grid {
        gap: 0;
        padding-bottom: 40px;
    }

    #landing .lp-hero-title {
        margin: 16px 0 18px;
    }

    #landing .lp-hero-sub {
        margin-bottom: 28px;
    }

    #landing .lp-hero-actions {
        margin-bottom: 0;
    }

    #landing .lp-section {
        padding: 56px 0;
    }

    #landing .lp-head {
        margin-bottom: 32px;
        padding-bottom: 20px;
    }

    #landing .lp-card {
        padding: 28px 24px 24px;
    }

    #landing .lp-step {
        padding: 24px 0;
    }

    #landing .lp-role {
        padding: 32px 24px;
    }

    #landing .lp-faq-item summary {
        padding: 18px 4px;
    }

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

    #landing .lp-final {
        padding: 64px 5% 56px;
    }
}

@media (max-width: 600px) {
    #landing .lp-formats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {

    #landing .lp-controls,
    #landing .lp-controls-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    #landing .lp-hero {
        padding: 40px 0 0;
    }

    #landing .lp-hero-actions {
        flex-direction: column;
    }

    #landing .lp-btn {
        width: 100%;
    }

    #landing .lp-section {
        padding: 44px 0;
    }

    #landing .lp-final {
        padding: 52px 5% 44px;
    }
}