/* Landing page styles. Loaded after styles.css, on the landing page only: the dashboard
   and login pages never load this file, and every class here carries the lp- prefix so
   nothing leaks into them. Mobile first; landing-responsive.css holds the wide layout. */

/* Kanit covers Thai and Latin alike. Tokens live on the page body so the dashboard keeps
   its own palette. */
body.lp-page {
  --orange: #f87002;
  --orange-hi: #ff8a1f;
  --orange-deep: #c44a00;
  --ink: #1c1510;
  --ink-2: #2a2019;
  --paper: #fff8f0;
  --cream: #ffecd6;
  --blue: #0948c9;
  --blue-deep: #06318c;
  --yellow: #ffd23f;
  --white: #ffffff;
  --on-ink: #f6ece2;
  --on-ink-2: #cbb9a8;
  --on-paper-2: #6b5a4c;
  --line: #ecdccb;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: 20px;
  --max: 1160px;
  font-family: 'Kanit', 'Noto Sans Thai', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
.lp-page ::selection { background: var(--yellow); color: var(--ink); }
.lp-page :focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.lp-hero :focus-visible, .lp-last :focus-visible { outline-color: var(--ink); }
.lp-feed :focus-visible, .lp-board :focus-visible, .lp-foot :focus-visible { outline-color: var(--yellow); }
:where(.lp-page) img, :where(.lp-page) video { display: block; max-width: 100%; }
:where(.lp-page) h1, :where(.lp-page) h2, :where(.lp-page) h3, :where(.lp-page) p, :where(.lp-page) ol, :where(.lp-page) ul, :where(.lp-page) dl, :where(.lp-page) dd, :where(.lp-page) blockquote { margin: 0; padding: 0; }
:where(.lp-page) ol, :where(.lp-page) ul { list-style: none; }
:where(.lp-page) a { color: inherit; text-underline-offset: 0.18em; }
:where(.lp-page) button { font: inherit; color: inherit; }

:where(.lp-page) h1, :where(.lp-page) h2 { font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; color: inherit; }
:where(.lp-page) h2 { font-size: clamp(2.05rem, 8.6vw, 3.5rem); line-height: 1.02; }
:where(.lp-page) h3 { font-size: 1.35rem; font-weight: 700; line-height: 1.15; }
/* The element rules above use :where() so the lp- class rules further down outrank them.
   Thai stacks vowels and tone marks above and below the line, so it needs more leading
   and no negative tracking. */
:where(.lp-page):lang(th) h1, :where(.lp-page):lang(th) h2 { letter-spacing: 0; }
:where(.lp-page):lang(th) h2 { line-height: 1.22; }
body.lp-page:lang(th) { line-height: 1.6; }

.lp-wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.lp-ico { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Buttons */
.lp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 60px; padding: 0 30px;
  border-radius: 999px; border: 0;
  font-size: 1.2rem; font-weight: 700; text-decoration: none; white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.2s;
}
.lp-btn .lp-ico { transition: transform 0.25s var(--ease); }
.lp-btn:hover .lp-ico { transform: translateX(4px); }
.lp-btn:active { transform: translateY(2px) scale(0.985); }
.lp-btn-ink { background: var(--ink); color: var(--white); box-shadow: 0 14px 28px rgba(28, 21, 16, 0.32); }
.lp-btn-ink:hover { background: #000; box-shadow: 0 18px 34px rgba(28, 21, 16, 0.4); transform: translateY(-2px); }
.lp-btn-orange { background: var(--orange-deep); color: var(--white); box-shadow: 0 12px 26px rgba(196, 74, 0, 0.34); }
.lp-btn-orange:hover { background: #a83f00; transform: translateY(-2px); }

/* ── Ticker ─────────────────────────────────────────────── */
.lp-tick { background: var(--ink); color: var(--on-ink); overflow: hidden; height: 38px; display: flex; align-items: center; }
.lp-tick-track { display: flex; gap: 34px; white-space: nowrap; width: max-content; padding-left: 34px; animation: lp-slide 46s linear infinite; font-size: 14px; }
.lp-tick-track span { display: inline-flex; align-items: center; gap: 34px; font-weight: 500; }
.lp-tick-track span::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--yellow); }
@keyframes lp-slide { to { transform: translateX(-50%); } }

/* ── Hero ───────────────────────────────────────────────── */
.lp-hero { background: var(--orange); position: relative; overflow: hidden; padding: 14px var(--gutter) 0; }
.lp-hero::before { /* one wide sun-disc behind the phone, part of the field rather than decoration */
  content: ''; position: absolute; width: 150vw; aspect-ratio: 1; left: 50%; bottom: -105vw; translate: -50% 0;
  border-radius: 50%; background: var(--orange-hi);
}
/* Below 400px the logo alone carries the brand: the label would run under the language links. */
@media (max-width: 400px) { .lp-brand span { display: none; } }
.lp-bar {
  position: relative; z-index: 2; max-width: var(--max); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--paper); border-radius: 18px; padding: 6px 12px 6px 16px;
  box-shadow: 0 10px 24px rgba(120, 48, 0, 0.22);
}
.lp-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.lp-brand img { height: 26px; width: auto; }
.lp-brand span { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-paper-2); }
.lp-bar-nav { display: flex; align-items: center; gap: 10px; }
/* Country dropdown: the current flag, then both countries by name. */
.lp-country { position: relative; }
.lp-country summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px; border-radius: 999px; transition: background-color 0.18s; }
.lp-country summary::-webkit-details-marker { display: none; }
.lp-country summary:hover, .lp-country[open] summary { background: var(--cream); }
.lp-country-caret { width: 16px; height: 16px; color: var(--on-paper-2); transition: transform 0.25s var(--ease); }
.lp-country[open] .lp-country-caret { transform: rotate(180deg); }
.lp-country ul { position: absolute; right: 0; top: calc(100% + 8px); z-index: 5; min-width: 190px; padding: 6px; border-radius: 16px; background: var(--white); box-shadow: 0 18px 40px rgba(28, 21, 16, 0.22), 0 2px 6px rgba(28, 21, 16, 0.1); }
.lp-country li a { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 12px; border-radius: 11px; font-size: 16px; font-weight: 500; text-decoration: none; color: var(--ink); }
.lp-country li a:hover { background: var(--paper); }
.lp-country li a.is-on { background: var(--cream); font-weight: 700; }
.lp-flag { width: 28px; height: 19px; border-radius: 4px; box-shadow: 0 0 0 1px rgba(28, 21, 16, 0.18); flex: none; }
.lp-login { font-weight: 600; text-decoration: none; white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; }
.lp-login:hover { color: var(--orange-deep); }

.lp-hero-grid { position: relative; z-index: 1; max-width: var(--max); margin: 0 auto; display: grid; gap: 36px; padding-top: 34px; }
:where(.lp-page) h1 { font-size: clamp(3.5rem, 16.5vw, 6rem); line-height: 0.92; font-weight: 900; }
:where(.lp-page):lang(th) h1 { font-size: clamp(3.1rem, 14.5vw, 5.4rem); line-height: 1.14; }
/* The programme's name above the headline, in the brand lockup's small capitals. */
.lp-kicker { display: block; margin-bottom: 14px; font-size: 13px; line-height: 1.3; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); }
:where(.lp-page):lang(th) .lp-kicker { letter-spacing: 0.04em; }
.lp-hl { display: inline-block; position: relative; z-index: 0; padding: 0 0.1em; margin: 0.04em -0.1em 0; }
.lp-hl::before { content: ''; position: absolute; inset: 0.1em 0 0.02em; background: var(--yellow); z-index: -1; transform: rotate(-1.6deg) scaleX(0); transform-origin: left center; border-radius: 6px; animation: lp-swipe 0.7s 0.35s var(--ease) forwards; }
@keyframes lp-swipe { to { transform: rotate(-1.6deg) scaleX(1); } }
.lp-lede { margin-top: 22px; font-size: 1.2rem; line-height: 1.42; max-width: 30ch; font-weight: 400; }
.lp-lede strong { font-weight: 700; }
.lp-cta-row { margin-top: 26px; display: grid; gap: 12px; justify-items: start; }
.lp-cta-row .lp-btn { width: 100%; max-width: 360px; }
.lp-cta-note { font-size: 15px; color: #3b2410; font-weight: 500; }

/* Lock-screen phone: the payout arriving is the product demo */
.lp-hero-phone { position: relative; justify-self: center; width: min(330px, 88vw); height: 400px; }
.lp-phone {
  position: absolute; inset: 0 0 -60px 0;
  background: var(--blue-deep);
  background-image: radial-gradient(120% 70% at 50% 0%, #0f5ae6 0%, var(--blue) 45%, var(--blue-deep) 100%);
  border: 9px solid var(--ink); border-bottom: 0; border-radius: 46px 46px 0 0;
  padding: 44px 12px 0; color: var(--white);
  box-shadow: 0 -8px 40px rgba(120, 48, 0, 0.35);
}
.lp-phone-notch { position: absolute; top: 12px; left: 50%; translate: -50% 0; width: 92px; height: 24px; border-radius: 999px; background: var(--ink); }
.lp-phone-time { text-align: center; font-size: 4.2rem; line-height: 1; font-weight: 300; letter-spacing: -0.02em; }
.lp-phone-date { text-align: center; font-size: 15px; font-weight: 500; opacity: 0.86; margin-top: 2px; }
.lp-notifs { margin-top: 18px; display: grid; gap: 8px; }
.lp-notif:nth-child(n + 2) { margin-right: 74px; }
.lp-notif {
  background: #fdf9f4; color: var(--ink); border-radius: 18px; padding: 11px 12px;
  display: grid; grid-template-columns: 38px 1fr; gap: 10px; align-items: center;
  box-shadow: 0 8px 18px rgba(3, 20, 60, 0.3);
  transform-origin: top center;
}
.lp-notif.is-enter { animation: lp-drop 0.6s var(--ease) both; }
.lp-notif.is-leave { animation: lp-fade 0.35s ease-out forwards; }
@keyframes lp-drop { from { opacity: 0; transform: translateY(-26px) scale(0.94); } }
@keyframes lp-fade { to { opacity: 0; transform: scale(0.96); } }
.lp-notif-ico { width: 38px; height: 38px; border-radius: 10px; background: #0c7a4b; color: var(--white); display: grid; place-items: center; }
.lp-notif-ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.lp-notif p { font-size: 13px; line-height: 1.3; color: #5b4a3c; }
.lp-notif .lp-n-top { display: flex; justify-content: space-between; gap: 8px; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.06em; color: #7a6858; }
.lp-notif .lp-n-title { font-size: 15.5px; font-weight: 700; color: var(--ink); line-height: 1.2; }
/* The mascot is cut at the thighs and rises from the section's bottom edge. */
.lp-hero-fox { position: absolute; right: -46px; bottom: -4px; width: 156px; height: auto; z-index: 2; filter: drop-shadow(0 12px 16px rgba(3, 20, 60, 0.4)); }

/* ── Proof + creator wall ───────────────────────────────── */
.lp-feed { background: var(--ink); color: var(--on-ink); padding: 44px 0 72px; position: relative; z-index: 2; }
.lp-proof { padding: 0 var(--gutter); max-width: var(--max); margin: 0 auto; font-size: clamp(1.55rem, 6.4vw, 2.6rem); line-height: 1.14; font-weight: 700; letter-spacing: -0.01em; text-wrap: balance; }
.lp-proof-num { color: var(--yellow); }
.lp-proof-next { display: block; margin-top: 14px; font-size: 1rem; font-weight: 500; letter-spacing: 0; color: var(--on-ink-2); }
.lp-cd { color: var(--on-ink); font-weight: 600; white-space: nowrap; }
.lp-proof-top { display: block; margin-top: 6px; font-size: 0.62em; font-weight: 600; color: var(--on-ink-2); letter-spacing: 0; }
.lp-proof-top .lp-proof-num { color: var(--on-ink); }
.lp-feed-head { padding: 0 var(--gutter); max-width: var(--max); margin: 64px auto 0; }
.lp-feed-head p { margin-top: 14px; color: var(--on-ink-2); max-width: 46ch; }

.lp-rail { margin-top: 28px; display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--gutter) 12px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.lp-rail::-webkit-scrollbar { display: none; }
.lp-clip { position: relative; flex: none; width: min(62vw, 250px); aspect-ratio: 9 / 16; border-radius: 20px; overflow: hidden; scroll-snap-align: center; background: var(--ink-2); border: 0; padding: 0; cursor: pointer; }
.lp-clip img, .lp-clip video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lp-clip video { opacity: 0; transition: opacity 0.35s ease-out; }
.lp-clip.is-playing video { opacity: 1; }
.lp-clip::after { content: ''; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, rgba(12, 8, 5, 0.82)); pointer-events: none; }
.lp-clip-handle { position: absolute; left: 14px; bottom: 12px; z-index: 1; font-size: 15px; font-weight: 600; color: var(--white); }
.lp-clip-snd { position: absolute; top: 10px; right: 10px; z-index: 1; width: 40px; height: 40px; border-radius: 50%; background: rgba(12, 8, 5, 0.62); display: grid; place-items: center; color: var(--white); }
.lp-clip-snd svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.lp-clip-snd .lp-snd-on { display: none; }
.lp-clip.is-sound .lp-clip-snd { background: var(--yellow); color: var(--ink); }
.lp-clip.is-sound .lp-clip-snd .lp-snd-on { display: block; }
.lp-clip.is-sound .lp-clip-snd .lp-snd-off { display: none; }

.lp-stills { margin-top: 20px; display: grid; gap: 10px; overflow: hidden; }
.lp-stills-row { display: flex; gap: 10px; width: max-content; animation: lp-slide 70s linear infinite; }
.lp-stills-row img { width: 78px; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 12px; opacity: 0.9; }

/* ── Earnings slider ────────────────────────────────────── */
.lp-earn { background: var(--paper); padding: 76px 0 84px; }
.lp-earn-grid { display: grid; gap: 28px; }
.lp-presets { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.lp-presets button { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--ink); background: transparent; font-weight: 600; font-size: 15px; cursor: pointer; transition: background-color 0.18s, color 0.18s, transform 0.25s var(--ease); }
.lp-presets button:hover { background: var(--cream); }
.lp-presets button:active { transform: scale(0.96); }
.lp-presets button[aria-pressed='true'] { background: var(--ink); color: var(--white); }

.lp-earn-panel { background: var(--white); border-radius: 28px; padding: 24px 20px 26px; box-shadow: 0 24px 50px rgba(120, 72, 20, 0.14), 0 2px 6px rgba(120, 72, 20, 0.08); }
.lp-earn-friends { font-size: 1.15rem; font-weight: 600; }
.lp-earn-friends output { font-size: 2.1rem; font-weight: 800; letter-spacing: -0.02em; margin-right: 4px; }
.lp-range-wrap { position: relative; margin-top: 4px; }
.lp-range { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 48px; margin: 0; background: transparent; cursor: pointer; --p: 13%; }
.lp-range::-webkit-slider-runnable-track { height: 16px; border-radius: 999px; background: linear-gradient(90deg, var(--orange-deep) var(--p), var(--line) var(--p)); box-shadow: inset 0 0 0 1.5px rgba(107, 90, 76, 0.6); }
.lp-range::-moz-range-track { height: 16px; border-radius: 999px; background: var(--line); box-shadow: inset 0 0 0 1.5px rgba(107, 90, 76, 0.6); }
.lp-range::-moz-range-progress { height: 16px; border-radius: 999px; background: var(--orange-deep); }
.lp-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 38px; height: 38px; margin-top: -11px; border-radius: 50%; background: var(--white); border: 5px solid var(--ink); box-shadow: 0 6px 14px rgba(28, 21, 16, 0.28); transition: transform 0.2s var(--ease); }
.lp-range::-moz-range-thumb { width: 28px; height: 28px; border-radius: 50%; background: var(--white); border: 5px solid var(--ink); box-shadow: 0 6px 14px rgba(28, 21, 16, 0.28); }
.lp-range:active::-webkit-slider-thumb { transform: scale(1.12); }
.lp-notch { position: absolute; top: 16px; width: 4px; height: 16px; margin-left: -2px; border-radius: 2px; background: rgba(28, 21, 16, 0.28); pointer-events: none; }

.lp-levels { margin-top: 10px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.lp-levels li { border-radius: 14px; padding: 10px 10px 11px; background: var(--paper); color: var(--on-paper-2); display: grid; line-height: 1.2; transition: background-color 0.3s, color 0.3s, transform 0.5s var(--ease); }
.lp-levels b { font-size: 15px; font-weight: 700; color: var(--ink); }
.lp-levels span { font-size: 12.5px; }
.lp-levels em { font-style: normal; font-weight: 700; font-size: 15px; margin-top: 4px; white-space: nowrap; }
.lp-levels li.is-on { background: var(--ink); color: var(--on-ink-2); }
.lp-levels li.is-on b { color: var(--white); }
.lp-levels li.is-on em { color: var(--yellow); }
.lp-levels li.is-pop { animation: lp-pop 0.6s var(--ease); }
@keyframes lp-pop { 30% { transform: scale(1.09) rotate(-2deg); } }

.lp-earn-out { margin-top: 22px; padding-top: 20px; border-top: 2px dashed var(--line); }
.lp-earn-total { font-size: clamp(3.4rem, 17vw, 5rem); font-weight: 900; line-height: 0.95; letter-spacing: -0.03em; color: var(--blue); }
.lp-earn-total small { display: block; margin-top: 6px; font-size: 1.05rem; font-weight: 500; line-height: 1.3; letter-spacing: 0; color: var(--on-paper-2); }
.lp-earn-week { margin-top: 10px; font-size: 1.1rem; min-height: 3.2em; }
.lp-earn-week.is-off { visibility: hidden; }
.lp-earn-week b { font-weight: 700; }
.lp-earn-math { margin-top: 4px; font-size: 15px; color: var(--on-paper-2); min-height: 3em; }
.lp-earn-next[hidden] { display: none; }
.lp-earn-next { margin-top: 14px; display: inline-block; padding: 7px 14px; border-radius: 16px; background: var(--yellow); font-size: 15px; font-weight: 600; }
.lp-earn-panel .lp-btn { margin-top: 22px; width: 100%; }
.lp-earn-panel .lp-cta-note { margin-top: 12px; }
.lp-earn-friend { margin-top: 14px; font-size: 14.5px; color: var(--on-paper-2); }
.lp-earn-friend b { color: var(--ink); font-weight: 700; }
.lp-earn-friend small { display: block; margin-top: 4px; font-size: 12.5px; }

/* ── Leaderboard ────────────────────────────────────────── */
.lp-board { background: var(--blue); color: var(--white); padding: 76px 0 84px; }
.lp-board-grid { display: grid; gap: 30px; }
.lp-board-head p { margin-top: 14px; color: #d3e0ff; max-width: 40ch; }
.lp-rows { display: grid; gap: 6px; }
.lp-row { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 12px 16px 12px 10px; border-radius: 16px; background: var(--blue-deep); }
.lp-row-count { font-size: 1.9rem; font-weight: 800; line-height: 1; text-align: center; color: #9fbcff; }
.lp-row-who { line-height: 1.2; min-width: 0; }
.lp-row-who b { display: block; font-weight: 600; font-size: 1.1rem; }
.lp-row-who span { font-size: 13.5px; color: #c4d5ff; }
.lp-row-amt { text-align: right; line-height: 1.2; }
.lp-row-amt b { display: block; font-weight: 800; font-size: 1.2rem; }
.lp-row-amt span { font-size: 13.5px; color: #c4d5ff; }
.lp-row.is-first { background: var(--yellow); color: var(--ink); padding-block: 18px; }
.lp-row.is-first .lp-row-count { color: var(--ink); font-size: 2.2rem; }
.lp-row.is-first .lp-row-who span, .lp-row.is-first .lp-row-amt span { color: #5a4300; }
.lp-row.is-first .lp-row-amt b { font-size: 1.55rem; }
.lp-page a.lp-row.is-you { background: transparent; border: 2px dashed #7fa4ff; text-decoration: none; color: var(--white); transition: background-color 0.2s, border-color 0.2s; }
.lp-page a.lp-row.is-you:hover { background: var(--blue-deep); border-color: var(--yellow); }
/* The closing row is a link: its action sits under the text so neither is squeezed. */
.lp-page a.lp-row.is-you { grid-template-columns: 64px minmax(0, 1fr); row-gap: 6px; }
.lp-row.is-you .lp-row-amt { grid-column: 2; text-align: left; }
.lp-row.is-you .lp-row-amt b { color: var(--yellow); font-size: 1rem; display: inline-flex; align-items: center; gap: 6px; }

/* ── Stories as statements ──────────────────────────────── */
.lp-months { background: var(--cream); padding: 76px 0 84px; overflow: hidden; }
.lp-slips { margin: 30px calc(var(--gutter) * -1) 0; padding: 6px var(--gutter) 20px; display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.lp-slips::-webkit-scrollbar { display: none; }
.lp-slip { flex: none; width: min(82vw, 340px); scroll-snap-align: center; }
.lp-slip-paper { background: var(--white); padding: 20px 20px 24px; border-radius: 6px 6px 0 0; box-shadow: 0 18px 30px rgba(120, 72, 20, 0.16);
  --tooth: 9px;
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - var(--tooth)) no-repeat, conic-gradient(from -45deg at 50% 100%, #0000 90deg, #000 0) bottom / calc(var(--tooth) * 2) var(--tooth) repeat-x;
  mask: linear-gradient(#000 0 0) top / 100% calc(100% - var(--tooth)) no-repeat, conic-gradient(from -45deg at 50% 100%, #0000 90deg, #000 0) bottom / calc(var(--tooth) * 2) var(--tooth) repeat-x;
}
.lp-slip:nth-child(1) .lp-slip-paper { transform: rotate(-1.2deg); }
.lp-slip:nth-child(2) .lp-slip-paper { transform: rotate(0.9deg); }
.lp-slip:nth-child(3) .lp-slip-paper { transform: rotate(-0.6deg); }
.lp-slip-top { display: flex; justify-content: space-between; gap: 12px; white-space: nowrap; font-size: 12.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-paper-2); }
.lp-slip-amt { margin-top: 10px; font-size: 3.1rem; font-weight: 900; line-height: 1; letter-spacing: -0.03em; color: var(--blue); }
.lp-slip dl { margin-top: 14px; border-top: 2px dashed var(--line); padding-top: 10px; display: grid; gap: 4px; font-size: 15px; }
.lp-slip dl div { display: flex; justify-content: space-between; gap: 12px; }
.lp-slip dt { color: var(--on-paper-2); }
.lp-slip dd { font-weight: 600; }
.lp-slip blockquote { margin-top: 22px; font-size: 1.12rem; line-height: 1.42; font-weight: 500; }
.lp-slip-who { margin-top: 12px; font-size: 15px; color: #6a4a2c; }
.lp-slip-who b { color: var(--ink); font-weight: 700; margin-right: 6px; }

/* ── How it works + kit ─────────────────────────────────── */
.lp-how { background: var(--paper); padding: 76px 0 84px; }
.lp-how-grid { display: grid; gap: 64px; }
.lp-how-grid > div { min-width: 0; }
.lp-steps { margin-top: 26px; counter-reset: step; display: grid; }
.lp-steps li { counter-increment: step; display: grid; grid-template-columns: 54px minmax(0, 1fr); column-gap: 14px; padding: 18px 0; border-top: 2px solid var(--line); }
.lp-steps li:last-child { border-bottom: 2px solid var(--line); }
.lp-steps li::before { content: counter(step); grid-row: span 3; font-size: 3.2rem; font-weight: 900; line-height: 0.9; color: var(--orange-deep); }
.lp-steps p { margin-top: 4px; color: var(--on-paper-2); max-width: 46ch; grid-column: 2; }
.lp-week { display: flex; gap: 6px; margin-top: 12px !important; }
.lp-week span { flex: 0 1 34px; min-width: 0; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 600; background: var(--cream); color: #6a4a2c; }
.lp-week .is-on { background: var(--orange-deep); color: var(--white); transform: scale(1.18); box-shadow: 0 6px 12px rgba(196, 74, 0, 0.35); }

.lp-kit-fan { margin: 34px auto 0; position: relative; height: 290px; width: min(100%, 340px); }
.lp-kit-fan img, .lp-kit-code { position: absolute; width: min(150px, 42%); aspect-ratio: 9 / 16; object-fit: cover; border-radius: 16px; box-shadow: 0 16px 30px rgba(120, 72, 20, 0.24); top: 10px; }
.lp-kit-fan img:nth-child(1) { left: 22px; transform: rotate(-9deg); }
.lp-kit-fan img:nth-child(2) { left: 50%; margin-left: -75px; transform: rotate(2deg) translateY(-6px); z-index: 1; }
.lp-kit-code { right: 24px; transform: rotate(10deg); background: var(--orange); color: var(--ink); display: grid; align-content: center; justify-items: center; gap: 6px; padding: 14px; z-index: 2; text-align: center; }
.lp-kit-code p { font-size: 14px; font-weight: 600; line-height: 1.2; }
.lp-kit-code b { font-size: 1.7rem; font-weight: 900; letter-spacing: 0.04em; line-height: 1.1; }
.lp-kit-fan-mascot img { object-fit: contain; background: var(--cream); padding: 14px; }
.lp-kit-list { margin-top: 30px; display: grid; gap: 12px; font-size: 1.1rem; font-weight: 500; }
.lp-kit-list li { display: flex; gap: 12px; align-items: center; }
.lp-kit-list .lp-ico { color: var(--white); background: var(--orange-deep); border-radius: 50%; padding: 5px; width: 28px; height: 28px; stroke-width: 3.2; }

/* ── What FINN is ───────────────────────────────────────── */
.lp-about { background: var(--cream); padding: 64px 0 68px; }
.lp-about-grid { display: grid; gap: 34px; }
.lp-about-grid > div { min-width: 0; }
.lp-about-body { margin-top: 16px; font-size: 1.2rem; line-height: 1.45; font-weight: 500; max-width: 34ch; }
.lp-about-pitch { margin-top: 14px; color: #6a4a2c; max-width: 40ch; }
.lp-about-pitch a { display: flex; width: fit-content; align-items: center; gap: 6px; min-height: 44px; margin-top: 2px; font-weight: 700; color: var(--ink); }
.lp-about-pitch a .lp-ico { transition: transform 0.25s var(--ease); }
.lp-about-pitch a:hover .lp-ico { transform: translateX(4px); }
/* The pay period as one bar: worked-for salary in blue, the part available today in yellow. */
.lp-about-facts { margin-top: 18px; font-size: 1.05rem; }
.lp-about-facts li { align-items: flex-start; }
.lp-about-facts .lp-ico { margin-top: 1px; }
.lp-pay { --today: 62%; --from: 36%; align-self: center; background: var(--white); border-radius: 24px; padding: 22px 20px 24px; box-shadow: 0 18px 36px rgba(120, 72, 20, 0.12); }
.lp-pay-story { font-size: 1.05rem; line-height: 1.5; margin-bottom: 22px; }
.lp-pay-story b { font-weight: 700; }
.lp-pay-flag { position: relative; height: 34px; }
.lp-pay-flag span { position: absolute; left: var(--today); translate: -50% 0; padding: 3px 10px; border-radius: 999px; background: var(--ink); color: var(--white); font-size: 13.5px; font-weight: 600; line-height: 1.3; white-space: nowrap; }
.lp-pay-flag span::after { content: ''; position: absolute; left: 50%; top: 100%; width: 2px; height: 10px; margin-left: -1px; background: var(--ink); }
.lp-pay-bar { position: relative; height: 54px; border-radius: 16px; background: var(--paper); overflow: hidden; box-shadow: inset 0 0 0 2px var(--line); }
.lp-pay-earned, .lp-pay-now { position: absolute; top: 0; bottom: 0; }
.lp-pay-earned { left: 0; width: var(--today); background: var(--blue); }
.lp-pay-now { left: var(--from); width: calc(var(--today) - var(--from)); background: var(--yellow); }
.lp-pay-ends { margin-top: 8px; display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; color: #6a4a2c; }
.lp-pay-ends span:last-child { text-align: right; }
.lp-pay-legend { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 15px; font-weight: 500; }
.lp-pay-legend li { display: inline-flex; align-items: center; gap: 8px; }
.lp-pay-legend li::before { content: ''; width: 14px; height: 14px; border-radius: 4px; background: var(--blue); }
.lp-pay-legend .lp-pay-key-now::before { background: var(--yellow); box-shadow: inset 0 0 0 1.5px #b98f00; }

/* ── FAQ ────────────────────────────────────────────────── */
.lp-faq { background: var(--white); padding: 76px 0 84px; }
.lp-faq-grid { display: grid; gap: 26px; }
.lp-faq-list { border-top: 2px solid var(--ink); }
.lp-faq-list details { border-bottom: 2px solid var(--line); }
.lp-faq-list summary { list-style: none; cursor: pointer; padding: 18px 44px 18px 0; position: relative; font-size: 1.15rem; font-weight: 600; line-height: 1.25; }
.lp-faq-list summary::-webkit-details-marker { display: none; }
.lp-faq-list summary::after { content: ''; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -9px; border-right: 3px solid var(--orange-deep); border-bottom: 3px solid var(--orange-deep); transform: rotate(45deg); transition: transform 0.3s var(--ease); }
.lp-faq-list details[open] summary::after { transform: rotate(225deg); margin-top: -3px; }
.lp-faq-list summary:hover { color: var(--orange-deep); }
.lp-faq-list details p { padding: 0 0 20px; color: var(--on-paper-2); max-width: 62ch; }

/* ── Final CTA ──────────────────────────────────────────── */
.lp-last { background: var(--orange); padding: 76px 0 0; overflow: hidden; }
.lp-last-grid { display: grid; gap: 10px; }
.lp-cd-big { margin: 26px 0 30px; display: flex; gap: 8px; }
.lp-cd-big span { flex: 1; max-width: 96px; background: var(--ink); color: var(--on-ink-2); border-radius: 16px; padding: 12px 4px 10px; text-align: center; font-size: 12.5px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; }
.lp-cd-big b { display: block; font-size: 2.3rem; font-weight: 800; line-height: 1; letter-spacing: -0.01em; color: var(--yellow); margin-bottom: 4px; text-transform: none; }
.lp-last .lp-btn { width: 100%; max-width: 360px; }
.lp-last .lp-cta-note { margin-top: 12px; }
.lp-last-fox { width: 230px; height: auto; justify-self: center; margin-bottom: -20px; }

/* ── Footer ─────────────────────────────────────────────── */
.lp-foot { background: var(--ink); color: var(--on-ink-2); padding: 34px 0 120px; font-size: 14px; }
.lp-foot-links { display: flex; flex-wrap: wrap; gap: 0 22px; margin-bottom: 12px; font-size: 16px; }
.lp-foot-links a { color: var(--on-ink); font-weight: 500; min-height: 44px; display: inline-flex; align-items: center; }
.lp-foot-links a:hover { color: var(--yellow); }
.lp-foot-mock { margin-top: 10px; color: #a08f80; }
.lp-foot-privacy { margin-top: 10px; font-size: 13px; }
.lp-foot-privacy a { color: var(--on-ink); }

/* ── Sticky apply bar ───────────────────────────────────── */
.lp-stick { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--ink); color: var(--on-ink); border-radius: 999px; padding: 8px 8px 8px 22px; box-shadow: 0 16px 36px rgba(28, 21, 16, 0.42); transform: translateY(140%); visibility: hidden; transition: transform 0.5s var(--ease), visibility 0.5s; }
.lp-stick.is-show { transform: none; visibility: visible; }
.lp-stick p { font-size: 14.5px; line-height: 1.2; font-weight: 600; color: var(--yellow); }
.lp-stick .lp-btn { min-height: 48px; padding: 0 22px; font-size: 1.05rem; box-shadow: none; }

#lp-confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 30; }

/* Thai script needs more size than Latin at the small end. */
.lp-page:lang(th) .lp-levels span, .lp-page:lang(th) .lp-row-who span, .lp-page:lang(th) .lp-row-amt span, .lp-page:lang(th) .lp-earn-friend small, .lp-page:lang(th) .lp-cd-big span, .lp-page:lang(th) .lp-n-top { font-size: 14px; }

/* Help line under the closing button. */
.lp-help { margin-top: 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 0 16px; font-size: 15px; font-weight: 500; color: #3b2410; }
.lp-help a { font-weight: 700; display: inline-flex; align-items: center; min-height: 44px; }
.lp-payday .lp-cd-big { display: none; }
.lp-payday h2 { margin-bottom: 28px; }
