/* Landing: a piggy bank under a candy-pink sky. Scoped to #landing (.L). State classes: .is-in after
   load. Script: src/home.js. Ink is plum (#2b0f1e), the brand pinks run #ffd0e3 -> #ff6fa8, gold is the floor. */
.L { --ink: #2b0f1e; --pink: #ff6fa8; --pink-2: #ff9cc6; --gold: #ffc94a;
  position: relative; min-height: 100vh; min-height: 100svh; color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden;
  background: radial-gradient(120% 80% at 70% 10%, #fff6fa 0%, #ffe1ee 38%, #ffc4dd 72%, #ffa8cb 100%); }
.L *, .L *::before, .L *::after { box-sizing: border-box; margin: 0; padding: 0; }
.L a { color: inherit; text-decoration: none; }
.L-hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; overflow: hidden; isolation: isolate; }
.L-fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; opacity: 0; transition: opacity 1.4s ease .3s; }
.L.is-in .L-fx { opacity: 1; }

/* clouds: soft white blobs that drift */
.L-clouds { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.L-clouds i { position: absolute; border-radius: 999px; background: #fff; filter: blur(2px); opacity: .7; }
.L-clouds i::before, .L-clouds i::after { content: ""; position: absolute; background: inherit; border-radius: 999px; }
.L-clouds i:nth-child(1) { width: 220px; height: 56px; left: 6%; top: 22%; animation: drift 46s linear infinite; }
.L-clouds i:nth-child(2) { width: 300px; height: 70px; right: -4%; top: 12%; opacity: .55; animation: drift 62s linear infinite reverse; }
.L-clouds i:nth-child(3) { width: 180px; height: 44px; left: 42%; top: 8%; opacity: .5; animation: drift 54s linear infinite; }
.L-clouds i:nth-child(4) { width: 260px; height: 60px; left: -6%; bottom: 14%; opacity: .45; animation: drift 70s linear infinite reverse; }
.L-clouds i::before { width: 46%; height: 150%; left: 16%; top: -62%; }
.L-clouds i::after { width: 34%; height: 120%; right: 18%; top: -44%; }
@keyframes drift { from { transform: translateX(-30px); } 50% { transform: translateX(30px); } to { transform: translateX(-30px); } }

/* top bar */
.L-top { display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: 1240px; margin: 0 auto; padding: 22px 32px; position: relative; z-index: 2; }
.L-left { display: flex; align-items: center; gap: 38px; }
.L-right { display: flex; align-items: center; gap: 10px; }
.L-brand { display: inline-flex; align-items: center; gap: 10px; font-family: Fredoka, Inter, sans-serif; font-weight: 700; font-size: 24px; letter-spacing: -.01em; }
.L-logo { display: block; width: 40px; height: 40px; transition: transform .45s cubic-bezier(.34,1.42,.64,1); }
.L-brand:hover .L-logo { transform: rotate(-8deg) scale(1.06); }
.L-nav { display: flex; gap: 28px; }
.L-nav a { font-size: 14.5px; font-weight: 600; color: rgba(43,15,30,.72); transition: color .2s ease; }
.L-nav a:hover { color: var(--ink); }
.L-connect { font: inherit; font-size: 14px; font-weight: 700; color: #fff; background: var(--ink); border: 0; border-radius: 999px; padding: 11px 19px; cursor: pointer; display: inline-block; box-shadow: 0 3px 0 rgba(43,15,30,.25); transition: transform .2s ease, box-shadow .2s ease; }
.L-connect:hover { transform: translateY(-1.5px); box-shadow: 0 5px 0 rgba(43,15,30,.25); }
.L-connect:active { transform: translateY(1px); box-shadow: 0 1px 0 rgba(43,15,30,.25); }
.L .snd { width: 40px; height: 40px; border-radius: 999px; border: 2px solid rgba(43,15,30,.14); background: rgba(255,255,255,.6); color: var(--ink); display: inline-grid; place-items: center; cursor: pointer; transition: background .2s ease, transform .2s ease; }
.L .snd:hover { background: #fff; transform: translateY(-1px); }
.L .acct-pill { background: #fff; color: var(--ink); border: 2px solid rgba(43,15,30,.12); }

/* centre */
.L-center { flex: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 24px; width: 100%; max-width: 1240px; margin: 0 auto; padding: 8px 32px 72px; }
.L-kicker { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: rgba(43,15,30,.62); background: rgba(255,255,255,.6); border: 2px solid rgba(43,15,30,.08); padding: 7px 14px; border-radius: 999px; }
.L-kicker .dot { width: 8px; height: 8px; border-radius: 99px; background: var(--pink); box-shadow: 0 0 0 4px rgba(255,111,168,.25); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(255,111,168,0); } }
.L-title { margin-top: 22px; font-family: Fredoka, Inter, sans-serif; font-weight: 700; font-size: clamp(46px, 6.2vw, 88px); line-height: .98; letter-spacing: -.02em; color: var(--ink); text-shadow: 0 5px 0 rgba(255,111,168,.45); }
.L-title span { display: block; }
.L-title span:last-child { color: #e2337e; }
.L-lede { margin-top: 24px; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.55; color: rgba(43,15,30,.78); max-width: 520px; text-wrap: pretty; }
.L-ctas { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }
.L-btn { display: inline-flex; align-items: center; font-size: 16px; font-weight: 700; border-radius: 999px; padding: 15px 26px; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.L-btn-primary { background: var(--ink); color: #fff !important; box-shadow: 0 4px 0 #e2337e; }
.L-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 0 #e2337e; }
.L-btn-primary:active { transform: translateY(2px); box-shadow: 0 1px 0 #e2337e; }
.L-btn-ghost { background: rgba(255,255,255,.72); color: var(--ink); border: 2px solid rgba(43,15,30,.12); }
.L-btn-ghost:hover { background: #fff; transform: translateY(-2px); }
.L-steps { list-style: none; margin-top: 36px; display: flex; gap: 10px; flex-wrap: wrap; max-width: 600px; }
.L-steps li { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border-radius: 18px; background: rgba(255,255,255,.55); border: 2px solid rgba(43,15,30,.07); min-width: 150px; flex: 1; }
.L-steps b { font-family: Fredoka, Inter, sans-serif; font-weight: 700; font-size: 22px; line-height: 1.1; }
.L-steps li:nth-child(2) b { color: #e2337e; }
.L-steps li:nth-child(3) b { color: #c27d00; }
.L-steps span { font-size: 13px; color: rgba(43,15,30,.66); line-height: 1.35; }

/* the pig */
.L-pig { position: relative; display: grid; justify-items: center; }
.L-pigbtn { display: block; width: min(100%, 560px); border: 0; background: none; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; border-radius: 40px; }
.L-pigbtn svg { display: block; width: 100%; height: auto; overflow: visible; }
.L-pigbtn:focus-visible { outline: 3px solid var(--ink); outline-offset: 6px; }
.pb-pig, .pb-coin { transform-box: fill-box; }
.pb-pig { transform-origin: 50% 100%; }
.pb-coin { transform-origin: center; }
.pb-eye { transition: transform .25s ease-out; }
.pb-tail { transform-box: fill-box; transform-origin: 100% 100%; animation: wag 2.6s ease-in-out infinite; }
@keyframes wag { 0%, 70%, 100% { transform: rotate(0); } 78% { transform: rotate(-9deg); } 86% { transform: rotate(6deg); } 93% { transform: rotate(-3deg); } }
.pb-ear { transform-box: fill-box; transform-origin: 20% 100%; animation: ear 5s ease-in-out infinite 1.2s; }
@keyframes ear { 0%, 90%, 100% { transform: rotate(0); } 94% { transform: rotate(-10deg); } 97% { transform: rotate(4deg); } }
.L-pigbtn:hover .pb-pig { animation: bob 1.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-6px); } }
.L-hint { margin-top: -6px; font-family: Fredoka, Inter, sans-serif; font-size: 15px; font-weight: 600; color: rgba(43,15,30,.5); transform: rotate(-3deg); transition: opacity .4s ease; }
.L-pig.tapped .L-hint { opacity: 0; }
.L-bank { position: absolute; top: 4%; right: 4%; z-index: 1; padding: 10px 14px; border-radius: 16px; background: #fff; border: 2px solid rgba(43,15,30,.1); box-shadow: 0 4px 0 rgba(43,15,30,.08); font-size: 12.5px; color: rgba(43,15,30,.62); line-height: 1.3; transform: rotate(3deg); }
.L-bank b { display: block; font-family: Fredoka, Inter, sans-serif; font-size: 22px; font-weight: 700; color: var(--ink); }
.L-bank b small { font-size: 13px; color: #c27d00; margin-left: 3px; }

/* footer */
.L-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 32px 22px; font-size: 12.5px; color: rgba(43,15,30,.55); }
.SeamFooter-links { display: flex; gap: 8px; }
.SeamFooter-btn { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,.6); color: var(--ink); font-weight: 600; }
.L .ca-chip { background: #fff; color: var(--ink); border: 2px solid rgba(43,15,30,.12); }

/* entrance */
.L-top, .L-kicker, .L-title span, .L-lede, .L-ctas, .L-steps, .L-pig { opacity: 0; transform: translateY(16px); transition: opacity .9s cubic-bezier(.16,1,.3,1), transform .9s cubic-bezier(.16,1,.3,1); }
.L.is-in .L-top, .L.is-in .L-kicker, .L.is-in .L-title span, .L.is-in .L-lede, .L.is-in .L-ctas, .L.is-in .L-steps, .L.is-in .L-pig { opacity: 1; transform: none; }
.L.is-in .L-top { transition-delay: .05s; }
.L.is-in .L-kicker { transition-delay: .15s; }
.L.is-in .L-title span:nth-child(1) { transition-delay: .25s; }
.L.is-in .L-title span:nth-child(2) { transition-delay: .36s; }
.L.is-in .L-lede { transition-delay: .5s; }
.L.is-in .L-ctas { transition-delay: .62s; }
.L.is-in .L-steps { transition-delay: .74s; }
.L-pig { transform: translateY(30px) scale(.92); transition-duration: 1.1s; transition-timing-function: cubic-bezier(.34,1.3,.64,1); }
.L.is-in .L-pig { transition-delay: .3s; }
.gs .L-title span, .gs .L-lede { opacity: 1; transform: none; transition: none; }
.L .sw-mask, .L .sl-mask { padding: .04em 0 .18em; margin: -.04em 0 -.18em; }

/* coin bursts (sfx.js), shared with the dashboard */
/* .fx-coin lives in app.css (fixed position, viewport coordinates) */

@media (max-width: 900px) {
  .L-center { grid-template-columns: 1fr; text-align: center; padding: 4px 20px 48px; gap: 8px; }
  .L-copy { display: flex; flex-direction: column; align-items: center; }
  .L-lede { margin-left: auto; margin-right: auto; }
  .L-ctas, .L-steps { justify-content: center; }
  .L-pig { order: -1; }
  .L-pigbtn { width: min(78vw, 380px); }
  .L-bank { top: 0; right: 0; }
}
@media (max-width: 640px) {
  .L-top { padding: 16px 16px; }
  .L-nav { display: none; }
  .L-brand { font-size: 21px; }
  .L-steps li { min-width: 0; padding: 10px 12px; }
  .L-steps b { font-size: 18px; }
  .L-foot { flex-direction: column; padding: 0 16px 18px; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .L-clouds i, .pb-tail, .pb-ear, .L-kicker .dot { animation: none !important; }
  .L-top, .L-kicker, .L-title span, .L-lede, .L-ctas, .L-steps, .L-pig { transition: none !important; opacity: 1 !important; transform: none !important; }
}
