﻿/* ==========================================================================
   Marksy landing page. Type steps, spacing table and radii follow the
   landing page skill. Thai needs taller lines than the skill's 1.0, so
   headings use 1.25 inside their step.
   ========================================================================== */
#landing { --lp-h1a: #000000; --lp-h1b: #666666; position: fixed; inset: 0; z-index: 500; overflow-y: auto; overflow-x: hidden; background: var(--paper); color: var(--ink); font-family: var(--f-ui); font-size: 16px; line-height: 24px; scroll-behavior: auto; -webkit-font-smoothing: antialiased; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) #landing { --lp-h1a: #FFFFFF; --lp-h1b: #9B9B9B; } }
:root[data-theme="dark"] #landing { --lp-h1a: #FFFFFF; --lp-h1b: #9B9B9B; }
#landing[hidden] { display: none !important; }
html.lp-on, html.lp-on body { overflow: hidden; }
#landing *, #landing *::before, #landing *::after { box-sizing: border-box; }
#landing a { color: inherit; text-decoration: none; }
#landing ul, #landing ol { list-style: none; margin: 0; padding: 0; }
#landing p, #landing h1, #landing h2, #landing h3 { margin: 0; }
#landing p { text-wrap: pretty; }
#landing h1, #landing h2, #landing h3 { text-wrap: balance; }
.lp-wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.lp-ic { flex-shrink: 0; }

/* text styles */
.lp-h1 { font-size: 36px; line-height: 44px; font-weight: 600; letter-spacing: -.01em; max-width: 680px; background: linear-gradient(90deg, var(--lp-h1a), var(--lp-h1b)); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.lp-h2 { font-size: 30px; line-height: 40px; font-weight: 600; letter-spacing: -.01em; max-width: 680px; }
.lp-h3 { text-wrap: balance; font-size: 24px; line-height: 36px; font-weight: 600; letter-spacing: -.01em; max-width: 680px; }
.lp-h5 { font-size: 20px; line-height: 28px; font-weight: 600; }
.lp-h6 { font-size: 18px; line-height: 28px; font-weight: 600; }
.lp-lead { font-size: 18px; line-height: 28px; color: var(--ink-2); max-width: 680px; }
@media (min-width: 768px) {
  .lp-h1 { font-size: 60px; line-height: 76px; }
  .lp-h2 { font-size: 36px; line-height: 48px; }
  .lp-h3 { font-size: 36px; line-height: 48px; }
}
@media (min-width: 1024px) { .lp-h2 { font-size: 48px; line-height: 60px; } .lp-h3 { font-size: 48px; line-height: 64px; max-width: 880px; } }

/* buttons */
.lp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 8px 12px; border-radius: 8px; font-size: 16px; line-height: 24px; font-weight: 600; white-space: nowrap; background: var(--card); color: var(--ink); border: 1px solid var(--line-2); transition: background .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease); }
.lp-btn:hover { border-color: var(--ink-3); }
.lp-btn:active { transform: scale(.98); }
.lp-btn.primary { background: var(--leaf); color: var(--leaf-ink); border-color: transparent; }
.lp-btn.primary:hover { background: var(--leaf-hover); }
.lp-btn.lg { height: 48px; padding: 8px 24px; font-size: 18px; line-height: 28px; border-radius: 12px; }
.lp-btn.sm { height: 32px; font-size: 14px; line-height: 20px; }
#landing a:focus-visible, #landing button:focus-visible, #landing summary:focus-visible { outline: 2px solid var(--leaf); outline-offset: 2px; }
.lp-skip { position: absolute; left: 16px; top: -64px; z-index: 20; padding: 8px 12px; border-radius: 8px; background: var(--ink); color: var(--paper) !important; font-weight: 600; }
.lp-skip:focus { top: 16px; }

/* floating nav */
.lp-nav-wrap { position: sticky; top: 0; z-index: 30; display: flex; justify-content: center; padding: 16px max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px)); pointer-events: none; }
.lp-nav { pointer-events: auto; display: flex; align-items: center; gap: 24px; padding: 8px 8px 8px 16px; border-radius: 9999px; background: color-mix(in srgb, var(--card) 72%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: box-shadow .5s var(--ease), background .5s var(--ease); }
#landing.scrolled .lp-nav { box-shadow: var(--shadow); background: color-mix(in srgb, var(--card) 86%, transparent); }
.lp-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 18px; line-height: 28px; letter-spacing: -.02em; }
.lp-mark { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--leaf); color: var(--leaf-ink); font-size: 16px; font-weight: 700; }
.lp-links { display: none; gap: 4px; }
.lp-links a { display: block; padding: 4px 12px; border-radius: 9999px; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ink-2); transition: background .3s var(--ease), color .3s var(--ease); }
.lp-links a:hover { background: var(--paper-2); color: var(--ink); }
.lp-nav-cta { display: none; border-radius: 9999px; }
.lp-burger { width: 40px; height: 40px; border-radius: 9999px; position: relative; margin-left: 8px; display: grid; place-items: center; }
.lp-burger:hover { background: var(--paper-2); }
.lp-burger span { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .5s var(--ease); }
.lp-burger span:first-child { transform: translateY(-4px); }
.lp-burger span:last-child { transform: translateY(4px); }
.menu-open .lp-burger span:first-child { transform: rotate(45deg); }
.menu-open .lp-burger span:last-child { transform: rotate(-45deg); }
.lp-menu { position: fixed; inset: 0; z-index: 25; display: flex; align-items: center; background: color-mix(in srgb, var(--paper) 94%, transparent); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility .5s; padding: 96px max(24px, env(safe-area-inset-left, 0px)) 48px; }
.menu-open .lp-menu { opacity: 1; visibility: visible; }
.lp-menu ul { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.lp-menu li { opacity: 0; transform: translateY(24px); transition: opacity .5s var(--ease), transform .5s var(--ease); transition-delay: 0s; }
.menu-open .lp-menu li { opacity: 1; transform: none; transition-delay: calc(min(var(--i) * 60ms, 400ms)); }
.lp-menu li a:not(.lp-btn) { display: block; padding: 8px 0; font-size: 30px; line-height: 40px; font-weight: 600; letter-spacing: -.01em; }
.lp-menu .lp-btn { margin-top: 16px; width: 100%; height: 48px; }
@media (min-width: 900px) {
  .lp-links { display: flex; }
  .lp-nav-cta { display: inline-flex; }
  .lp-burger, .lp-menu { display: none; }
}

/* hero */
.lp-hero { display: grid; gap: 48px; padding-top: 48px; padding-bottom: 64px; align-items: center; }
.lp-hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; min-width: 0; }
.lp-pill { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 9999px; background: var(--leaf-soft); color: var(--leaf); font-size: 14px; line-height: 20px; font-weight: 600; }
.lp-cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.lp-proof { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ink-2); }
.lp-proof .lp-ic { color: var(--leaf); }
.lp-hero-art { min-width: 0; }
.lp-map-card { padding: 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 16px; }
.lp-map-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.lp-map-head b { font-size: 16px; line-height: 24px; font-weight: 600; }
.lp-map-head span { font-size: 12px; line-height: 16px; color: var(--ink-3); }
.lp-map { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; padding: 12px; border-radius: 12px; background: var(--ground); }
.st { position: relative; display: grid; place-items: center; aspect-ratio: 1; min-width: 0; border-radius: 8px; border: 1px solid transparent; font-style: normal; transition: transform .5s var(--ease); }
.lp-map .st:hover { transform: translateY(-2px); }
.st span { font-family: var(--f-mono); font-size: 12px; line-height: 16px; font-weight: 500; }
.st.s0 { background: var(--st-free); border-color: var(--st-free-line); color: var(--ink-3); }
.st.s1 { background: var(--st-pending); color: var(--lantern-ink); }
.st.s2 { background: var(--st-paid); color: var(--st-paid-ink); }
.st.s3 { background: var(--st-closed); color: var(--ink-3); }
.lp-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 12px; line-height: 16px; color: var(--ink-2); }
.lp-legend li { display: inline-flex; align-items: center; gap: 8px; }
.lp-legend .st { width: 16px; aspect-ratio: 1; border-radius: 4px; }
@media (max-width: 420px) { .lp-map { gap: 4px; padding: 8px; } .st span { font-size: 12px; } .lp-map .st span { display: none; } }
@media (min-width: 960px) { .lp-hero { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); padding-top: 80px; padding-bottom: 96px; } }

/* sections */
.lp-sec { padding-top: 48px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 32px; }
@media (min-width: 768px) { .lp-sec { padding-top: 80px; padding-bottom: 80px; gap: 48px; } }
.lp-card { padding: 24px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; min-width: 0; transition: border-color .3s var(--ease), transform .5s var(--ease); }
.lp-card p { color: var(--ink-2); font-size: 16px; line-height: 24px; }
.lp-card.ben:hover, .lp-steps .lp-card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.lp-strip { padding-top: 0; padding-bottom: 0; }
.lp-strip ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 16px; border-radius: 16px; background: var(--paper-2); }
.lp-strip li { display: flex; align-items: center; gap: 8px; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink-2); }
.lp-strip .lp-ic { color: var(--leaf); }
@media (min-width: 768px) { .lp-strip ul { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 16px 24px; } }
.lp-two { display: grid; gap: 16px; }
@media (min-width: 768px) { .lp-two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lp-card.on { background: var(--leaf-soft); border-color: color-mix(in srgb, var(--leaf) 30%, transparent); }
.lp-list { display: flex; flex-direction: column; gap: 12px; }
.lp-list li { position: relative; padding-left: 24px; color: var(--ink-2); }
.lp-list li::before { content: ""; position: absolute; left: 0; top: 8px; width: 8px; height: 8px; border-radius: 9999px; background: var(--leaf); }
.lp-list.x li::before { background: var(--ink-3); }
.lp-bens { display: grid; gap: 16px; }
@media (min-width: 640px) { .lp-bens { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .lp-bens { grid-template-columns: repeat(6, minmax(0, 1fr)); } .lp-bens .ben { grid-column: span 2; } .lp-bens .ben:nth-child(4), .lp-bens .ben:nth-child(5) { grid-column: span 3; } }
.lp-ico { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--leaf-soft); color: var(--leaf); }
.lp-steps { display: grid; gap: 16px; }
@media (min-width: 768px) { .lp-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.lp-num { width: 40px; height: 40px; border-radius: 9999px; display: grid; place-items: center; background: var(--ink); color: var(--paper); font-family: var(--f-mono); font-size: 16px; font-weight: 600; }

/* tagline reveal */
.lp-tag { padding-top: 48px; padding-bottom: 48px; background: var(--paper-2); }
@media (min-width: 768px) { .lp-tag { padding-top: 96px; padding-bottom: 96px; } }
.lp-w { color: var(--ink); opacity: .3; transition: opacity .5s var(--ease); }
.lp-w.on { opacity: 1; }

/* organizers */
.lp-org { display: grid; gap: 32px; padding: 24px; border-radius: 24px; background: var(--card); border: 1px solid var(--line); align-items: center; }
.lp-org > div { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.lp-org-list { display: flex; flex-direction: column; gap: 12px; }
.lp-org-list li { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 12px; background: var(--paper); }
.lp-org-list .lp-ic { color: var(--leaf); margin-top: 2px; }
.lp-org-list span { display: flex; flex-direction: column; font-size: 14px; line-height: 20px; color: var(--ink-2); }
.lp-org-list b { font-size: 16px; line-height: 24px; color: var(--ink); font-weight: 600; }
@media (min-width: 900px) { .lp-org { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); padding: 48px; gap: 48px; } }

/* faq */
.lp-faq { display: flex; flex-direction: column; gap: 8px; max-width: 800px; }
.lp-faq details { border-radius: 12px; background: var(--card); border: 1px solid var(--line); transition: border-color .3s var(--ease); }
.lp-faq details[open] { border-color: var(--line-2); }
.lp-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px; font-size: 16px; line-height: 24px; font-weight: 600; border-radius: 12px; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary:hover { background: var(--card-2); }
.lp-chev { display: grid; color: var(--ink-3); transform: rotate(90deg); transition: transform .5s var(--ease); }
details[open] .lp-chev { transform: rotate(-90deg); }
.lp-faq details p { padding: 0 16px 16px; color: var(--ink-2); max-width: 680px; }

/* final */
.lp-final { padding-top: 48px; padding-bottom: 96px; }
.lp-final-card { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; padding: 32px 24px; border-radius: 24px; background: var(--night); color: #F2F2EE; }
.lp-final-card .lp-h2 { color: #F2F2EE; }
.lp-final-card .lp-lead { color: #C2C6C0; }
.lp-final-card .lp-btn.primary { background: #4FB57F; color: #06130C; }
.lp-final-card .lp-btn.primary:hover { background: #68C794; }
@media (min-width: 768px) { .lp-final-card { padding: 64px; } }

.lp-foot { border-top: 1px solid var(--line); padding-top: 32px; padding-bottom: 48px; }
.lp-foot .lp-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.lp-foot ul { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; line-height: 20px; color: var(--ink-3); }
.lp-foot span[aria-disabled] { opacity: .7; cursor: not-allowed; }
.lp-foot small { width: 100%; font-size: 12px; line-height: 16px; color: var(--ink-3); }
@media (min-width: 768px) { .lp-foot small { width: auto; margin-left: auto; } }

/* reveals: rise 32px and fade, once. Only armed when JS can observe */
#landing.armed .rv { opacity: 0; transform: translateY(32px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
#landing.armed .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  #landing.armed .rv { transform: none; transition: opacity .3s linear; }
  .lp-w { opacity: 1 !important; transition: none; }
  .lp-menu li, .lp-burger span, .lp-chev, .st { transition: none; }
}

