/* ==========================================================================
   Creator Link Studio — public landing page (logged-out surface)
   Kinetic editorial brand experience. No product UI is depicted anywhere.
   Prefix: ld-  |  BEM kebab  |  bright identity only
   ========================================================================== */

:root {
    --ld-violet: #5b4be0;
    --ld-violet7: #4636c4;
    --ld-violet-l: #8273f8;
    --ld-vsoft: rgba(91, 75, 224, .09);
    --ld-brand: linear-gradient(140deg, #8273f8, #5b4be0);
    --ld-ink: #1d1d1f;
    --ld-t2: #46464e;
    --ld-muted: #6e6e73;
    --ld-faint: #94949c;
    --ld-line: rgba(20, 18, 40, .1);
    --ld-hair: rgba(20, 18, 40, .14);
    --ld-bg: #eef0f4;
    --ld-ring: 0 0 0 3px rgba(91, 75, 224, .28);
    --ld-font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", sans-serif;
    --ld-ease: cubic-bezier(.19, .8, .22, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body.ld {
    margin: 0;
    color: var(--ld-ink);
    background-color: var(--ld-bg);
    font-family: var(--ld-font);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.ld-wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 56px); }

/* Subtle grain over everything (pure SVG turbulence, no requests) */
.ld-grain {
    position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .05; mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
    animation: ld-grainmove 1.1s steps(5) infinite;
}
@keyframes ld-grainmove {
    from { background-position: 0 0; }
    to { background-position: 160px 160px; }
}

/* Visually hidden */
.ld-sr {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
    clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

/* Skip link */
.ld-skip {
    position: absolute; left: 16px; top: -60px; z-index: 300;
    background: var(--ld-ink); color: #fff; font-size: .85rem; font-weight: 600;
    padding: .6rem 1rem; border-radius: 6px; text-decoration: none; transition: top .15s;
}
.ld-skip:focus-visible { top: 12px; outline: none; box-shadow: var(--ld-ring); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.ld-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    border: 0; cursor: pointer; text-decoration: none; font-family: inherit;
    font-size: .95rem; font-weight: 600; letter-spacing: -.005em; line-height: 1; white-space: nowrap;
    padding: .9rem 1.5rem; border-radius: 10px;
    transition: background .15s, color .15s, box-shadow .15s, transform .12s;
}
.ld-btn:focus-visible { outline: none; box-shadow: var(--ld-ring); }
.ld-btn--primary { background: var(--ld-violet); color: #fff; box-shadow: 0 12px 28px -12px rgba(91, 75, 224, .8); }
.ld-btn--primary:hover { background: var(--ld-violet7); color: #fff; transform: translateY(-1px); }
.ld-btn--primary:active { transform: translateY(0); }
.ld-btn--quiet { background: transparent; color: var(--ld-ink); padding: .9rem 1rem; }
.ld-btn--quiet:hover { color: var(--ld-violet7); }
.ld-btn--big { font-size: 1.05rem; padding: 1.1rem 1.9rem; }
.ld-btn--onviolet { background: #fff; color: var(--ld-violet7); box-shadow: 0 12px 28px -14px rgba(20, 12, 60, .6); }
.ld-btn--onviolet:hover { background: #f3f1ff; color: var(--ld-violet7); transform: translateY(-1px); }

/* Text link */
.ld-tlink { color: var(--ld-violet7); font-weight: 600; text-decoration: none; border-radius: 3px; cursor: pointer; }
.ld-tlink:hover { color: var(--ld-violet); }
.ld-tlink:focus-visible { outline: none; box-shadow: var(--ld-ring); }

/* --------------------------------------------------------------------------
   Top navigation — the mark as a precise signature
   -------------------------------------------------------------------------- */
.ld-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(238, 240, 244, .82);
    -webkit-backdrop-filter: blur(14px) saturate(1.15); backdrop-filter: blur(14px) saturate(1.15);
    border-bottom: 1px solid rgba(20, 18, 40, .06);
}
.ld-nav__inner { height: 72px; display: flex; align-items: center; gap: .8rem; }
.ld-brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--ld-ink); text-decoration: none; }
.ld-brand__mark {
    position: relative; width: 30px; height: 30px; border-radius: 8px; flex: none;
    background: var(--ld-brand); box-shadow: 0 6px 16px -6px rgba(91, 75, 224, .65);
}
.ld-brand__mark::before {
    content: ""; position: absolute; inset: 7px; border-radius: 50%;
    border: 2px solid #fff; border-right-color: transparent; transform: rotate(-42deg);
}
.ld-brand__mark::after {
    content: ""; position: absolute; top: 6px; right: 6px; width: 4px; height: 4px;
    border-radius: 50%; background: #fff;
}
.ld-brand__name { font-weight: 600; font-size: 1.05rem; letter-spacing: -.02em; white-space: nowrap; }
.ld-nav__actions { display: flex; align-items: center; gap: .4rem; margin-left: auto; }

/* --------------------------------------------------------------------------
   Hero — full-viewport kinetic type
   Base styles below ARE the final frame; keyframes only add the entrance.
   -------------------------------------------------------------------------- */
.ld-kx {
    position: relative; overflow: hidden;
    min-height: 100svh; display: flex; flex-direction: column;
    padding-top: 72px;
    --mx: 68%; --my: 38%; --rx: 0deg; --ry: 0deg;
}
.ld-kx__atmo { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.ld-kx__atmo::before {
    content: ""; position: absolute; inset: 0;
    background:
        linear-gradient(115deg, transparent 52%, rgba(124, 108, 246, .16) 72%, rgba(124, 108, 246, .04) 90%),
        radial-gradient(1200px 800px at 82% 30%, rgba(124, 108, 246, .24), transparent 62%),
        radial-gradient(1000px 720px at 8% 92%, rgba(124, 108, 246, .16), transparent 60%),
        radial-gradient(880px 600px at 30% 10%, rgba(255, 255, 255, .92), transparent 64%);
}
/* the light that follows the visitor — a violet-cored pearl spotlight gliding after the cursor */
.ld-kx__atmo::after {
    content: ""; position: absolute; inset: -10%;
    background:
        radial-gradient(620px 620px at var(--mx) var(--my), rgba(124, 108, 246, .32), rgba(124, 108, 246, .1) 46%, transparent 72%),
        radial-gradient(240px 240px at var(--mx) var(--my), rgba(255, 255, 255, .8), transparent 70%);
    will-change: background;
}

/* controlled refraction lines crossing the canvas */
.ld-kx__refract {
    position: absolute; z-index: 1; pointer-events: none;
    width: 160vw; height: 3px; left: -30vw; top: 32%;
    background: linear-gradient(90deg, transparent 8%, rgba(255, 255, 255, .9) 36%, rgba(130, 115, 248, .8) 58%, transparent 90%);
    transform: rotate(-14deg); opacity: .55;
    box-shadow: 0 0 24px 2px rgba(130, 115, 248, .35);
}
.ld-kx__refract--b {
    top: 58%; height: 2px; opacity: .3;
    background: linear-gradient(90deg, transparent 12%, rgba(130, 115, 248, .7) 44%, rgba(255, 255, 255, .8) 66%, transparent 92%);
    box-shadow: 0 0 18px 1px rgba(130, 115, 248, .28);
}

.ld-kx__stage { position: relative; z-index: 5; flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 3.5rem 0 2.5rem; }

.ld-kx__type {
    line-height: .84; font-weight: 800; letter-spacing: -.045em; text-transform: uppercase;
    transform: perspective(1500px) rotateX(var(--rx)) rotateY(var(--ry));
    transform-style: preserve-3d; will-change: transform;
}
.ld-kx__line { display: block; white-space: nowrap; }
/* letters that dodge the cursor */
.ld-mag { display: inline-block; will-change: transform; transition: transform .22s ease-out; }

/* CREATE. — assembles from fragments (each letter enters from its own vector) */
.ld-kx__line--create {
    font-size: clamp(4.2rem, 12.5vw, 11.5rem);
    margin-left: -.045em;              /* crops the C against the left edge of the canvas padding */
    color: var(--ld-ink);
}
.ld-kx__frag { display: inline-block; animation: ld-frag .62s var(--ld-ease) both; animation-delay: var(--fd, 0s); }
@keyframes ld-frag {
    from { opacity: 0; transform: translate(var(--fx, 0), var(--fy, 0)) rotate(var(--fr, 0deg)); }
    to { opacity: 1; transform: none; }
}
.ld-kx__frag:nth-child(1) { --fx: -.5em; --fy: .2em; --fr: -18deg; --fd: .02s; }
.ld-kx__frag:nth-child(2) { --fx: .1em; --fy: -.55em; --fr: 12deg; --fd: .1s; }
.ld-kx__frag:nth-child(3) { --fx: -.2em; --fy: .5em; --fr: 9deg; --fd: .16s; }
.ld-kx__frag:nth-child(4) { --fx: .45em; --fy: -.25em; --fr: -14deg; --fd: .22s; }
.ld-kx__frag:nth-child(5) { --fx: -.35em; --fy: -.45em; --fr: 20deg; --fd: .28s; }
.ld-kx__frag:nth-child(6) { --fx: .3em; --fy: .45em; --fr: -9deg; --fd: .34s; }
.ld-kx__frag:nth-child(7) { --fx: .6em; --fy: .1em; --fr: 16deg; --fd: .4s; }

/* SHARE. — expands outward across the viewport */
.ld-kx__line--share {
    font-size: clamp(4.2rem, 12.5vw, 11.5rem);
    text-align: right; margin-right: -.35em;   /* the period crosses the right boundary */
    color: var(--ld-ink);
    animation: ld-expand .6s var(--ld-ease) .78s both;
}
@keyframes ld-expand {
    from { opacity: 0; letter-spacing: .35em; transform: scale(.86); }
    to { opacity: 1; letter-spacing: -.045em; transform: none; }
}

/* EARN. — resolves in concentrated violet light at a decisive scale */
.ld-kx__earnrow { position: relative; display: flex; align-items: baseline; gap: 2.5vw; }
.ld-kx__line--earn {
    position: relative; z-index: 2;
    font-size: clamp(6rem, 19vw, 17.5rem);
    background: linear-gradient(110deg, #8273f8, #5b4be0 22%, #b0a4ff 42%, #4636c4 62%, #6d5ce8 82%, #8273f8);
    background-size: 240% 100%;
    -webkit-background-clip: text; background-clip: text; color: transparent;
    animation:
        ld-resolve .6s var(--ld-ease) 1.38s both,
        ld-earnflow 8s linear 2.1s infinite;
    filter: drop-shadow(0 18px 44px rgba(91, 75, 224, .35));
}
/* the particle incarnation of EARN. (canvas injected by landing.js) */
.ld-kx__dust { position: absolute; z-index: 2; pointer-events: none; }
/* light flows through the letterforms, forever */
@keyframes ld-earnflow {
    from { background-position: 0% 50%; }
    to { background-position: 240% 50%; }
}
@keyframes ld-resolve {
    from { opacity: 0; transform: scale(1.32) translateY(.06em); filter: blur(16px) drop-shadow(0 18px 44px rgba(91, 75, 224, 0)); }
    to { opacity: 1; transform: none; filter: blur(0) drop-shadow(0 18px 44px rgba(91, 75, 224, .35)); }
}
/* the light itself — layered core + wide lavender halo */
.ld-kx__bloom {
    position: absolute; z-index: 1; pointer-events: none;
    width: 44vw; height: 44vw; max-width: 640px; max-height: 640px;
    left: -6vw; top: 50%; transform: translateY(-52%);
    background:
        radial-gradient(circle at 48% 46%, rgba(91, 75, 224, .38), transparent 34%),
        radial-gradient(circle, rgba(124, 108, 246, .42), rgba(124, 108, 246, .16) 44%, transparent 68%);
    animation:
        ld-bloom .9s var(--ld-ease) 1.42s both,
        ld-breathe 6s ease-in-out 2.4s infinite alternate;
}
@keyframes ld-bloom {
    0% { opacity: 0; transform: translateY(-52%) scale(.6); }
    55% { opacity: 1; }
    100% { opacity: .85; transform: translateY(-52%) scale(1); }
}
@keyframes ld-breathe {
    from { opacity: .85; transform: translateY(-52%) scale(1); }
    to { opacity: 1; transform: translateY(-52%) scale(1.07); }
}
/* diagonal beam of lavender light sweeping behind EARN — soft-edged, never a box */
.ld-kx__beam {
    position: absolute; z-index: 0; pointer-events: none;
    right: -14vw; top: -30%;
    width: 74vw; height: 130%;
    background: linear-gradient(90deg, transparent 4%, rgba(130, 115, 248, .28) 34%, rgba(255, 255, 255, .5) 56%, rgba(91, 75, 224, .22) 76%, transparent 96%);
    transform: rotate(-14deg); transform-origin: 70% 50%;
    filter: blur(34px); border-radius: 999px;
    animation: ld-beam .8s var(--ld-ease) 1.3s both;
}
@keyframes ld-beam {
    from { opacity: 0; transform: rotate(-14deg) scaleX(.4); }
    to { opacity: 1; transform: rotate(-14deg) scaleX(1); }
}

/* Keep it all connected. */
.ld-kx__tag {
    margin: 3.2rem 0 0; font-size: clamp(1.5rem, 3vw, 2.5rem); font-weight: 600;
    letter-spacing: -.03em; color: var(--ld-ink);
    animation: ld-rise .6s var(--ld-ease) 1.98s both;
}
@keyframes ld-rise {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: none; }
}

/* Value statement */
.ld-kx__foot { margin-top: 2.4rem; animation: ld-rise .6s var(--ld-ease) 2.16s both; }
.ld-kx__value { margin: 0; max-width: 46ch; font-size: 1.12rem; line-height: 1.6; color: var(--ld-t2); }

/* --------------------------------------------------------------------------
   Editorial acts
   -------------------------------------------------------------------------- */
.ld-act {
    position: relative; overflow: hidden;
    padding: clamp(5rem, 9vw, 8rem) 0 clamp(5.5rem, 9vw, 8.5rem);
    border-top: 1px solid var(--ld-hair);
}
/* alternating ground: paper against pearl */
.ld-act--alt { background: linear-gradient(180deg, #f8f8fb, #f3f3f7); }
/* the act before the violet band keeps its original spacing (the band brings its own) */
.ld-act:has(+ .ld-band) { padding-bottom: 0; }

.ld-eyebrow {
    display: block; font-size: .78rem; font-weight: 700; letter-spacing: .22em;
    text-transform: uppercase; color: var(--ld-violet7); margin-bottom: 1.4rem;
}
.ld-h {
    margin: 0; font-weight: 800; letter-spacing: -.04em; line-height: .95;
    font-size: clamp(2.6rem, 6.4vw, 5.6rem); color: var(--ld-ink);
}
.ld-h em { font-style: normal; color: var(--ld-violet); }
.ld-lede { margin: 1.6rem 0 0; font-size: 1.14rem; line-height: 1.65; color: var(--ld-t2); max-width: 54ch; }

/* ghost display glyph cropped by the viewport (outline type, atmospheric) */
.ld-ghost {
    position: absolute; z-index: 0; pointer-events: none; user-select: none;
    font-weight: 800; line-height: 1; letter-spacing: -.04em;
    color: transparent; -webkit-text-stroke: 2px rgba(91, 75, 224, .22);
}

/* Act — Presence */
.ld-act--presence .ld-ghost { font-size: clamp(18rem, 42vw, 38rem); right: -6vw; top: -4rem; }
.ld-act--presence .ld-act__body { position: relative; z-index: 1; max-width: 720px; }
.ld-runline {
    margin: 2.6rem 0 0; font-weight: 700; letter-spacing: -.02em; line-height: 1.5;
    font-size: clamp(1.15rem, 2.2vw, 1.7rem); color: var(--ld-ink); max-width: 30ch;
    /* markup has no spaces between spans — flex-wrap provides the break opportunities */
    display: flex; flex-wrap: wrap; align-items: baseline;
}
.ld-runline span { white-space: nowrap; }
.ld-runline .ld-dot { color: var(--ld-violet); margin: 0 .35em; }

/* Presence constellation — links and fans converging on the handle */
.ld-net { position: absolute; z-index: 0; pointer-events: none; right: 3vw; top: 5rem; width: min(44vw, 560px); height: auto; }

/* Act — Publish: status ladder with state orbs */
.ld-ladder { margin: 3rem 0 0; }
.ld-ladder__step {
    display: flex; align-items: center; gap: 1.6rem; padding: 1.3rem 0;
    border-top: 1px solid var(--ld-hair);
}
.ld-ladder__orb { position: relative; width: 40px; height: 40px; flex: none; border-radius: 50%; }
.ld-ladder__orb--draft {
    border: 2px solid rgba(20, 18, 40, .3);
    background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .95), rgba(124, 108, 246, .14));
}
.ld-ladder__orb--sched { background: conic-gradient(var(--ld-violet) 0 132deg, #e6e4f2 132deg 360deg); }
.ld-ladder__orb--sched::after { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: var(--ld-bg); }
.ld-ladder__orb--live {
    background: linear-gradient(140deg, #8273f8, #4636c4);
    box-shadow: 0 12px 28px -8px rgba(91, 75, 224, .8), 0 0 0 7px rgba(91, 75, 224, .12);
}
.ld-ladder__step:last-child { border-bottom: 1px solid var(--ld-hair); }
.ld-ladder__word { font-weight: 700; letter-spacing: -.025em; font-size: clamp(1.4rem, 2.4vw, 2.1rem); line-height: 1.1; }
.ld-ladder__step--live .ld-ladder__word { color: var(--ld-violet); }
.ld-ladder__note { margin-left: auto; font-size: .98rem; color: var(--ld-muted); text-align: right; max-width: 34ch; }

/* Act — Access: three words, one decision — each with its aperture */
.ld-access { margin-top: 3rem; }
.ld-access__row { display: flex; align-items: center; gap: 1.6rem; padding: 1.1rem 0; border-top: 1px solid var(--ld-hair); }
.ld-access__ap { position: relative; width: 44px; height: 44px; flex: none; border-radius: 50%; }
.ld-access__ap--open {
    border: 2px solid rgba(91, 75, 224, .6);
    background: radial-gradient(circle, rgba(124, 108, 246, .18), transparent 62%);
}
.ld-access__ap--open::after { content: ""; position: absolute; inset: 10px; border-radius: 50%; border: 1.5px solid rgba(91, 75, 224, .35); }
.ld-access__ap--member {
    border: 2px solid rgba(91, 75, 224, .6);
    background: radial-gradient(circle, rgba(91, 75, 224, .1), transparent 70%);
}
.ld-access__ap--member::after { content: ""; position: absolute; inset: 11px; border-radius: 50%; background: rgba(91, 75, 224, .4); }
.ld-access__ap--lock {
    background: linear-gradient(140deg, #6d5ce8, #3b2da8);
    box-shadow: 0 12px 26px -10px rgba(91, 75, 224, .8);
}
.ld-access__ap--lock::after {
    content: ""; position: absolute; left: 50%; top: 11px; bottom: 11px; width: 3px;
    transform: translateX(-50%); border-radius: 2px; background: rgba(255, 255, 255, .9);
}
.ld-access__row:last-child { border-bottom: 1px solid var(--ld-hair); }
.ld-access__word { font-weight: 700; letter-spacing: -.025em; font-size: clamp(1.5rem, 2.6vw, 2.3rem); line-height: 1.1; color: var(--ld-ink); }
.ld-access__row--ppv .ld-access__word { color: var(--ld-violet); }
.ld-access__note { margin-left: auto; font-size: .98rem; color: var(--ld-muted); text-align: right; max-width: 30ch; }

/* Act — Earn: full-bleed violet color field (bright, not dark) */
.ld-band {
    position: relative; overflow: hidden;
    margin-top: clamp(6rem, 11vw, 10rem);
    background:
        radial-gradient(900px 480px at 85% 0%, rgba(255, 255, 255, .28), transparent 60%),
        radial-gradient(700px 420px at 8% 100%, rgba(28, 16, 90, .25), transparent 62%),
        linear-gradient(130deg, #8273f8, #5b4be0 52%, #4636c4);
    color: #fff;
}
.ld-band__inner { position: relative; z-index: 1; padding: clamp(4.5rem, 8vw, 7.5rem) 0; }
.ld-band__art { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.ld-coin {
    position: absolute; border-radius: 50%;
    background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .95), rgba(255, 255, 255, .35) 46%, rgba(255, 255, 255, .07) 72%);
    border: 1px solid rgba(255, 255, 255, .55);
    box-shadow: 0 24px 54px -22px rgba(20, 12, 70, .55), inset 0 0 26px rgba(255, 255, 255, .25);
    animation: ld-float 7s ease-in-out infinite alternate;
}
.ld-coin--a { width: 160px; height: 160px; right: 10%; top: 12%; }
.ld-coin--b { width: 86px; height: 86px; right: 25%; top: 54%; animation-duration: 9s; animation-delay: .8s; }
.ld-coin--c { width: 54px; height: 54px; right: 6%; top: 62%; animation-duration: 6s; animation-delay: .3s; }
.ld-coin--d { width: 34px; height: 34px; right: 33%; top: 20%; animation-duration: 8s; animation-delay: 1.4s; }
@keyframes ld-float {
    from { transform: translateY(-10px); }
    to { transform: translateY(14px); }
}
.ld-band__wave { position: absolute; left: -2%; right: -2%; bottom: -6px; width: 104%; height: 190px; opacity: .6; }
.ld-band .ld-eyebrow { color: rgba(255, 255, 255, .85); }
.ld-band .ld-h { color: #fff; }
.ld-band .ld-lede { color: rgba(255, 255, 255, .88); }
.ld-band__facts {
    display: flex; gap: 3.5rem 4.5rem; flex-wrap: wrap; margin: 3.2rem 0 0;
}
.ld-fact { max-width: 30ch; }
.ld-fact__n { display: block; font-weight: 800; letter-spacing: -.03em; font-size: clamp(1.7rem, 3.4vw, 2.7rem); line-height: 1.1; }
.ld-fact__t { display: block; margin-top: .5rem; font-size: .95rem; line-height: 1.55; color: rgba(255, 255, 255, .82); }
.ld-band__cta { margin-top: 3rem; }

/* Act — Plans: editorial three-column spread led by the platform-fee numerals */
.ld-tiers {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 3.6rem; border-top: 2px solid var(--ld-ink);
}
.ld-tier { padding: 2.4rem 2.2rem 2.6rem 0; min-width: 0; }
.ld-tier + .ld-tier { border-left: 1px solid var(--ld-hair); padding-left: 2.2rem; }
.ld-tier--reco {
    background: linear-gradient(180deg, rgba(91, 75, 224, .08), rgba(91, 75, 224, .015) 70%);
    box-shadow: inset 0 3px 0 var(--ld-violet);
    padding-right: 2.2rem;
}
.ld-tier__name { margin: 0; font-size: 1.45rem; font-weight: 800; letter-spacing: -.025em; color: var(--ld-ink); }
.ld-tier__flag {
    display: inline-block; vertical-align: super; margin-left: .55rem;
    font-size: .62rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--ld-violet7);
}
.ld-tier__tag { margin: .45rem 0 0; font-size: .98rem; color: var(--ld-muted); }
.ld-tier__fee {
    margin: 2.2rem 0 0; font-weight: 800; line-height: .85; letter-spacing: -.05em;
    font-size: clamp(4.2rem, 7.6vw, 7.2rem); color: var(--ld-ink);
}
.ld-tier__fee span { font-size: .45em; letter-spacing: -.02em; }
.ld-tier__fee--ghost { color: transparent; -webkit-text-stroke: 2.5px var(--ld-ink); }
.ld-tier__fee--violet {
    background: linear-gradient(120deg, #8273f8, #4636c4);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ld-tier__feelabel {
    display: block; margin-top: .7rem; font-size: .72rem; font-weight: 700;
    letter-spacing: .2em; text-transform: uppercase; color: var(--ld-muted);
}
/* what you keep, drawn as light (fills on reveal) */
.ld-tier__keep { margin-top: 1.5rem; }
.ld-tier__keep-label { display: block; font-size: .8rem; font-weight: 700; color: var(--ld-ink); margin-bottom: .5rem; }
.ld-tier__keep-bar { display: block; height: 10px; border-radius: 999px; background: rgba(20, 18, 40, .08); overflow: hidden; }
.ld-tier__keep-fill {
    display: block; height: 100%; width: 0; border-radius: 999px;
    background: linear-gradient(90deg, #8273f8, #5b4be0);
    box-shadow: 0 0 14px rgba(91, 75, 224, .5);
    transition: width 1.1s var(--ld-ease) .35s;
}
.ld-reveal.is-in .ld-tier__keep-fill { width: var(--keep, 0%); }
@media (prefers-reduced-motion: reduce) {
    .ld-tier__keep-fill { width: var(--keep, 0%); }
}
.ld-tier__list { list-style: none; margin: 1.9rem 0 0; padding: 0; }
.ld-tier__list li {
    padding: .62rem 0; border-top: 1px solid var(--ld-hair);
    font-size: .95rem; line-height: 1.5; color: var(--ld-t2);
}
.ld-tier__list strong { color: var(--ld-ink); font-weight: 700; }
.ld-tiers__cta { display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap; margin-top: 3rem; }
.ld-tiers__note { margin: 0; font-size: .92rem; color: var(--ld-muted); max-width: 44ch; }

/* Act — Trust: structural lattice backdrop */
.ld-act--trust::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(4px 4px at 62% 24%, rgba(91, 75, 224, .55), transparent 60%),
        radial-gradient(3px 3px at 78% 58%, rgba(91, 75, 224, .45), transparent 60%),
        radial-gradient(3px 3px at 48% 72%, rgba(91, 75, 224, .4), transparent 60%),
        radial-gradient(4px 4px at 88% 34%, rgba(91, 75, 224, .5), transparent 60%),
        repeating-linear-gradient(90deg, rgba(91, 75, 224, .07) 0 1px, transparent 1px 92px),
        repeating-linear-gradient(0deg, rgba(91, 75, 224, .07) 0 1px, transparent 1px 74px);
    -webkit-mask-image: radial-gradient(75% 85% at 68% 42%, #000, transparent 76%);
    mask-image: radial-gradient(75% 85% at 68% 42%, #000, transparent 76%);
}

/* Act — Trust */
.ld-trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.5rem 3rem; margin-top: 3.4rem; }
.ld-trust__item { max-width: 26ch; }
/* trust emblems: the brand's ring-and-dot geometry, four constructions */
.ld-trust__sig {
    position: relative; display: block; width: 92px; height: 92px; margin-bottom: 1.3rem; border-radius: 50%;
    background:
        radial-gradient(circle at 32% 26%, rgba(255, 255, 255, .35), transparent 55%),
        linear-gradient(140deg, #8273f8, #5b4be0 55%, #4636c4);
    box-shadow: 0 22px 44px -18px rgba(91, 75, 224, .75), inset 0 0 22px rgba(255, 255, 255, .12);
}
.ld-trust__sig::before, .ld-trust__sig::after { content: ""; position: absolute; border-radius: 50%; }
/* closed ring: complete, verified */
.ld-trust__sig--seal::before { inset: 22px; border: 3px solid #fff; }
/* double ring: two factors */
.ld-trust__sig--dual::before { inset: 16px; border: 2.5px solid rgba(255, 255, 255, .95); }
.ld-trust__sig--dual::after { inset: 30px; border: 2.5px solid rgba(255, 255, 255, .75); }
/* ring + dot: the badge */
.ld-trust__sig--badge::before { inset: 20px; border: 3px solid #fff; }
.ld-trust__sig--badge::after { inset: 38px; background: #fff; }
/* open ring: always under review */
.ld-trust__sig--watch::before {
    inset: 22px; border: 3px solid #fff; border-right-color: transparent; transform: rotate(-42deg);
}
.ld-trust__sig--watch::after { top: 20px; right: 24px; width: 7px; height: 7px; background: #fff; }
.ld-trust__k {
    display: block; font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
    color: var(--ld-violet7); margin-bottom: .55rem;
}
.ld-trust__t { font-size: .98rem; line-height: 1.6; color: var(--ld-t2); }

/* Act — FAQ: editorial spread with the interrogative glyph */
.ld-ghost--q { font-size: clamp(18rem, 32vw, 30rem); left: -3vw; top: 32%; -webkit-text-stroke-color: rgba(91, 75, 224, .16); }
.ld-faqgrid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 3rem 5rem; align-items: start; position: relative; z-index: 1; }
.ld-faq { border-top: 2px solid var(--ld-ink); }
.ld-faq details { border-bottom: 1px solid var(--ld-hair); transition: background .25s, box-shadow .25s, padding .25s var(--ld-ease); }
.ld-faq details[open] {
    box-shadow: inset 3px 0 0 var(--ld-violet);
    background: linear-gradient(90deg, rgba(91, 75, 224, .06), transparent 62%);
    padding-left: 1.4rem;
}
.ld-faq summary {
    cursor: pointer; list-style: none; display: flex; align-items: baseline; gap: 1.3rem;
    padding: 1.6rem 0; color: var(--ld-ink);
}
.ld-faq summary::-webkit-details-marker { display: none; }
.ld-faq__n { flex: none; width: 2.4rem; font-size: .95rem; font-weight: 800; letter-spacing: .06em; color: var(--ld-violet); }
.ld-faq__q { font-size: clamp(1.15rem, 2vw, 1.55rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.25; transition: color .15s; }
.ld-faq summary:hover .ld-faq__q { color: var(--ld-violet7); }
.ld-faq summary::after {
    content: "+"; margin-left: auto; font-weight: 600; color: var(--ld-violet);
    font-size: 1.7rem; line-height: 1; transition: transform .25s var(--ld-ease);
}
.ld-faq details[open] summary::after { transform: rotate(45deg); }
.ld-faq details[open] .ld-faq__q { color: var(--ld-violet7); }
.ld-faq summary:focus-visible { outline: none; box-shadow: var(--ld-ring); border-radius: 4px; }
.ld-faq__a { margin: 0; padding: 0 2.5rem 1.7rem 3.7rem; font-size: 1.02rem; line-height: 1.65; color: var(--ld-t2); max-width: 58ch; }

/* Final conversion */
.ld-fin { position: relative; overflow: hidden; text-align: center; padding: clamp(7rem, 13vw, 12rem) 0; }
.ld-fin__atmo {
    position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(820px 520px at 50% 62%, rgba(124, 108, 246, .3), transparent 64%),
        radial-gradient(640px 400px at 50% 24%, rgba(255, 255, 255, .85), transparent 68%);
}
.ld-fin__rays {
    position: absolute; inset: -25%; pointer-events: none;
    background: repeating-conic-gradient(from 8deg at 50% 58%, rgba(124, 108, 246, .1) 0deg 5deg, transparent 5deg 17deg);
    -webkit-mask-image: radial-gradient(46% 46% at 50% 58%, #000 28%, transparent 72%);
    mask-image: radial-gradient(46% 46% at 50% 58%, #000 28%, transparent 72%);
    animation: ld-rays 70s linear infinite;
}
@keyframes ld-rays { to { transform: rotate(360deg); } }
.ld-fin__inner { position: relative; }
.ld-fin__words {
    margin: 0; font-weight: 800; letter-spacing: -.045em; line-height: .9; text-transform: uppercase;
    font-size: clamp(3rem, 8.6vw, 7.6rem);
}
.ld-fin__words em { font-style: normal; background: linear-gradient(120deg, #8273f8, #4636c4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ld-fin__tag { margin: 1.6rem 0 0; font-size: clamp(1.3rem, 2.6vw, 2rem); font-weight: 600; letter-spacing: -.025em; color: var(--ld-ink); }
.ld-fin__cta { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-top: 2.8rem; }

/* Footer */
.ld-foot { border-top: 1px solid var(--ld-line); }
.ld-foot__inner { display: flex; align-items: center; gap: 1rem; padding: 1.8rem 0; flex-wrap: wrap; }
.ld-foot__note { margin-left: auto; font-size: .85rem; color: var(--ld-muted); }

/* --------------------------------------------------------------------------
   Reveal-on-scroll (one-time)
   -------------------------------------------------------------------------- */
.ld-reveal { opacity: 0; transform: translateY(36px); transition: opacity .7s ease, transform .7s var(--ld-ease); }
.ld-reveal.is-in { opacity: 1; transform: none; }
.ld-reveal--late { transition-delay: .14s; }
.ld-reveal--later { transition-delay: .28s; }
.ld-reveal--last { transition-delay: .42s; }

/* --------------------------------------------------------------------------
   Auth modal — wraps the existing sign-in / register / MFA / forgot panels
   -------------------------------------------------------------------------- */
.ld-auth { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 24px; }
.ld-auth[hidden] { display: none; }
.ld-auth__veil { position: absolute; inset: 0; background: rgba(28, 22, 58, .5); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.ld-auth__dialog {
    position: relative; width: 100%; max-width: 520px; max-height: calc(100vh - 48px); overflow-y: auto; overflow-x: hidden;
    background: #eef0f4; border-radius: 14px;
    box-shadow: inset 0 3px 0 var(--ld-violet), 0 50px 110px -34px rgba(30, 22, 80, .65);
    padding: 46px 46px 40px;
}
/* the page's atmosphere, inside the dialog */
.ld-auth__dialog::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(420px 300px at 88% -5%, rgba(124, 108, 246, .22), transparent 62%),
        radial-gradient(380px 300px at -5% 105%, rgba(124, 108, 246, .14), transparent 60%),
        radial-gradient(360px 240px at 30% 10%, rgba(255, 255, 255, .9), transparent 66%);
}
.ld-auth__dialog::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .05; mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}
.ld-auth__dialog > * { position: relative; z-index: 1; }
.ld-auth__mark { display: block; margin-bottom: 1.6rem; }
.ld-auth__close {
    position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border: 1px solid var(--ld-line); cursor: pointer;
    border-radius: 50%; background: #fff; color: var(--ld-t2); font-size: 1rem; line-height: 1;
    display: flex; align-items: center; justify-content: center; transition: border-color .15s, color .15s; z-index: 2;
}
.ld-auth__close:hover { border-color: var(--ld-violet); color: var(--ld-violet7); }
.ld-auth__close:focus-visible { outline: none; box-shadow: var(--ld-ring); }

.cos-form-title { font-size: 1.9rem; font-weight: 800; letter-spacing: -.035em; margin: 0 0 .45rem; color: var(--ld-ink); }
.cos-help { color: var(--ld-muted); font-size: .95rem; margin: 0 0 1.7rem; }
.cos-submit {
    display: block; width: 100%; height: 54px; margin-top: 1.6rem; cursor: pointer; border: 0; border-radius: 10px;
    background: var(--ld-violet); color: #fff;
    font-family: inherit; font-size: 1rem; font-weight: 600; letter-spacing: -.005em;
    box-shadow: 0 12px 28px -12px rgba(91, 75, 224, .8);
    transition: transform .12s ease, box-shadow .15s ease, background .15s;
}
.cos-submit:hover { background: var(--ld-violet7); transform: translateY(-1px); }
.cos-submit:active { transform: translateY(0); }
.cos-submit:focus-visible { outline: none; box-shadow: var(--ld-ring); }
.cos-links { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: 1.5rem; font-size: .92rem; }
.cos-link { color: var(--ld-t2); font-weight: 600; text-decoration: none; cursor: pointer; transition: color .15s; border-radius: 3px; }
.cos-link:hover { color: var(--ld-ink); }
.cos-link:focus-visible { outline: none; box-shadow: var(--ld-ring); }
.cos-link.accent { color: var(--ld-violet); }
.cos-link.accent:hover { color: var(--ld-violet7); }
.ld-auth .form-control {
    border-radius: 10px; border: 1px solid rgba(20, 18, 40, .16); background: #fff;
    font-family: inherit; transition: border-color .15s, box-shadow .15s;
}
.ld-auth .form-control:focus { border-color: var(--ld-violet); box-shadow: 0 0 0 3px rgba(91, 75, 224, .2); background: #fff; }
.ld-auth .form-floating > label { color: var(--ld-muted); }

body.ld-auth-open { overflow: hidden; }

/* --------------------------------------------------------------------------
   Reduced motion — the final frame, immediately
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .ld-reveal { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   Responsive art direction
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
    /* these share the .ld-wrap element but zero its side padding via shorthand — restore the gutter */
    .ld-kx__stage, .ld-band__inner, .ld-foot__inner { padding-left: clamp(20px, 4vw, 56px); padding-right: clamp(20px, 4vw, 56px); }
    .ld-kx__line--share { margin-right: -.2em; }
    .ld-kx__beam { width: 96vw; right: -24vw; }
    .ld-ladder__note, .ld-access__note { display: none; }
    .ld-ladder__sub, .ld-access__sub { display: block; }
    .ld-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ld-faqgrid { grid-template-columns: 1fr; gap: 2.2rem; }
    .ld-ghost--q { font-size: clamp(12rem, 45vw, 20rem); left: auto; right: -10vw; top: -2rem; }
    .ld-tiers { grid-template-columns: 1fr; }
    .ld-tier { padding: 2rem 1.4rem 2.2rem; }
    .ld-tier + .ld-tier { border-left: 0; padding-left: 1.4rem; border-top: 1px solid var(--ld-hair); }
    /* .ld-tier.ld-tier--reco so this outranks the `.ld-tier + .ld-tier` padding reset above */
    .ld-tier.ld-tier--reco { box-shadow: inset 3px 0 0 var(--ld-violet); padding-left: 1.4rem; padding-right: 1.4rem; }
    .ld-tier__fee { font-size: clamp(3.6rem, 15vw, 5.4rem); }
}
@media (min-width: 901px) {
    .ld-ladder__sub, .ld-access__sub { display: none; }
}

@media (max-width: 640px) {
    .ld-nav__inner { height: 68px; }
    .ld-brand { gap: .45rem; }
    .ld-brand__name { font-size: .92rem; }
    .ld-nav .ld-wrap { padding: 0 14px; }
    .ld-nav__inner { gap: .5rem; }
    .ld-nav__actions { gap: .1rem; }
    .ld-nav__actions .ld-btn--quiet { padding: .6rem .45rem; font-size: .82rem; }
    .ld-nav__actions .ld-btn--primary { padding: .62rem .7rem; font-size: .82rem; }
    .ld-hide-sm { display: none; }
    .ld-wrap, .ld-kx__stage, .ld-band__inner, .ld-foot__inner { padding-left: 22px; padding-right: 22px; }
    .ld-kx { min-height: auto; padding-top: 68px; }
    .ld-kx__stage { padding-top: 2.5rem; padding-bottom: 3.5rem; }
    .ld-kx__line--create { margin-left: 0; }
    .ld-kx__line--share { margin-right: 0; }
    .ld-kx__type { line-height: .88; }
    .ld-kx__line--create { font-size: clamp(3.4rem, 17vw, 5.4rem); }
    .ld-kx__line--share { font-size: clamp(3.4rem, 17vw, 5.4rem); }
    .ld-kx__line--earn { font-size: clamp(4.6rem, 26vw, 7.6rem); }
    .ld-kx__tag { margin-top: 2.2rem; }
    .ld-act--presence .ld-ghost { font-size: clamp(14rem, 90vw, 22rem); right: -18vw; top: -2rem; -webkit-text-stroke-width: 1.5px; }
    .ld-net { width: 78vw; right: -8vw; top: 2rem; opacity: .7; }
    .ld-ladder__orb { width: 36px; height: 36px; }
    .ld-ladder__orb--sched::after { inset: 6px; }
    .ld-access__ap { width: 42px; height: 42px; }
    .ld-access__ap--open::after { inset: 10px; }
    .ld-access__ap--member::after { inset: 11px; }
    .ld-access__ap--lock::after { top: 10px; bottom: 10px; }
    .ld-coin--b, .ld-coin--d { display: none; }
    .ld-coin--a { width: 110px; height: 110px; right: -20px; }
    .ld-trust { grid-template-columns: 1fr; gap: 2rem; }
    .ld-trust__item { display: grid; grid-template-columns: 64px 1fr; grid-template-rows: auto auto; column-gap: 1.1rem; max-width: none; }
    .ld-trust__sig { grid-row: 1 / 3; width: 64px; height: 64px; margin-bottom: 0; }
    .ld-trust__sig--seal::before { inset: 15px; }
    .ld-trust__sig--dual::before { inset: 11px; }
    .ld-trust__sig--dual::after { inset: 21px; }
    .ld-trust__sig--badge::before { inset: 14px; }
    .ld-trust__sig--badge::after { inset: 26px; }
    .ld-trust__sig--watch::before { inset: 15px; }
    .ld-trust__sig--watch::after { top: 13px; right: 16px; width: 5px; height: 5px; }
    .ld-band__facts { gap: 2.2rem; }
    .ld-fin__cta .ld-btn--big { width: 100%; }
    .ld-auth { padding: 0; align-items: stretch; }
    .ld-auth__dialog { max-width: none; max-height: none; height: 100%; border-radius: 0; padding: 64px 24px 32px; }
    .ld-foot__inner { flex-direction: column; align-items: flex-start; gap: .6rem; }
    .ld-foot__note { margin-left: 0; }
}

@media (max-width: 379px) {
    .ld-brand__name { display: none; }
}
