/* lastrust.work: the LastRust partner site.
   Brand values come from lastrust.win (tokens.css: warm near-black layers, the yellow accent, lime for money;
   Benzin for the wordmark and the big headline, Exo 2 for the interface, Tektur for codes and numbers).
   Layout, type scale, spacing and motion follow the landing-page-design skill; where the two disagree, the brand wins. */

/* ---------- Fonts (same files as lastrust.win) ---------- */
@font-face{ font-family:"Exo 2"; font-style:normal; font-weight:400 700; font-display:swap;
  src:url("fonts/exo2-cyrillic.woff2") format("woff2"); unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face{ font-family:"Exo 2"; font-style:normal; font-weight:400 700; font-display:swap;
  src:url("fonts/exo2-latin.woff2") format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face{ font-family:"Tektur"; font-style:normal; font-weight:400 700; font-display:swap;
  src:url("fonts/tektur-cyrillic.woff2") format("woff2"); unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face{ font-family:"Tektur"; font-style:normal; font-weight:400 700; font-display:swap;
  src:url("fonts/tektur-latin.woff2") format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
/* Benzin Bold, subset to Latin, Cyrillic and punctuation (owner-supplied wordmark font of lastrust.win) */
@font-face{ font-family:"Benzin"; font-style:normal; font-weight:700; font-display:swap; src:url("fonts/benzin-bold.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root{
  --bg-0:#1a1611; --bg-1:#241f18; --bg-2:#2b251e; --bg-3:#332d25; --bg-4:#3d362d;
  --line:rgba(255,251,245,.06); --line-strong:rgba(255,251,245,.10);
  --text:#fffbf5; --text-soft:#d6ccbc; --text-2:#b8ac9a; --text-3:#8f8372;
  --accent:#ffc247; --accent-hover:#ffcd66; --accent-soft:rgba(255,194,71,.10); --accent-soft-2:rgba(255,194,71,.16);
  --accent-line:rgba(255,194,71,.30);
  --money:#b6ff47; --money-soft:rgba(182,255,71,.10);
  --ink:#1a1611;
  --glass:rgba(36,31,24,.78);
  --font-body:"Exo 2",system-ui,-apple-system,"Segoe UI",sans-serif;
  --font-display:"Tektur","Exo 2",system-ui,sans-serif;
  --font-brand:"Benzin","Exo 2",system-ui,sans-serif;
  /* Radii (lastrust.win: controls 12, panels 16, big panels 24; doubled for squircles at the end) */
  --r-sm:8px; --r-md:12px; --r-lg:16px; --r-xl:24px;
  --ease:cubic-bezier(.22,1,.36,1);
  --ease-float:cubic-bezier(.45,0,.55,1);
  --gutter:40px; --max:1240px; --nav-h:64px;
  color-scheme:dark;
}
@media (max-width:1023px){ :root{ --gutter:24px; } }
@media (max-width:639px){ :root{ --gutter:16px; } }

/* ---------- Base ---------- */
*,*::before,*::after{ box-sizing:border-box; }
/* The site's matte grain: soft-light keeps the warm base without a grey veil */
html{ -webkit-text-size-adjust:100%; background-color:var(--bg-0); background-image:url("img/grain.svg");
  background-size:512px 512px; background-blend-mode:soft-light; scroll-behavior:smooth; scroll-padding-top:96px; }
body{ margin:0; min-height:100vh; color:var(--text); font:400 16px/24px var(--font-body);
  -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale; overflow-x:clip; }
img,svg{ display:block; max-width:100%; }
h1,h2,h3,p{ margin:0; }
h1,h2,h3{ font-weight:700; text-wrap:balance; }
p,li,dd,summary{ text-wrap:pretty; }
ul,ol,dl,dd{ margin:0; padding:0; list-style:none; }
em{ font-style:normal; }
a{ color:var(--accent); text-decoration:none; transition:color .3s var(--ease); }
a:hover{ color:var(--text); }
button{ font:inherit; color:inherit; background:none; border:0; padding:0; cursor:pointer; -webkit-tap-highlight-color:transparent; }
:focus-visible{ outline:2px solid var(--accent); outline-offset:3px; }
::selection{ background:var(--accent); color:var(--ink); }
.icon{ width:20px; height:20px; flex:none; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.nowrap{ white-space:nowrap; }
.sr-only{ position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }
.container{ width:100%; max-width:calc(var(--max) + var(--gutter) * 2); margin-inline:auto; padding-inline:var(--gutter); }

.skip-link{ position:fixed; top:16px; left:16px; z-index:100; padding:8px 16px; border-radius:var(--r-md);
  background:var(--accent); color:var(--ink); font-weight:700; transform:translateY(-200%); transition:transform .3s var(--ease); }
.skip-link:focus{ transform:none; color:var(--ink); }

/* ---------- Buttons ---------- */
.btn{ display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:40px; padding:8px 16px;
  border-radius:var(--r-md); font:700 14px/20px var(--font-body); white-space:nowrap; text-decoration:none; user-select:none;
  transition:background-color .3s var(--ease),color .3s var(--ease),transform .3s var(--ease); }
.btn:active{ transform:scale(.98); }
.btn .icon{ width:20px; height:20px; }
.btn-lg{ min-height:56px; padding:16px 24px; font-size:16px; line-height:24px; }
.btn-primary{ background:var(--accent); color:var(--ink); }
.btn-primary:hover{ background:var(--accent-hover); color:var(--ink); }
.btn-secondary{ background:var(--accent-soft); color:var(--accent); }
.btn-secondary:hover{ background:var(--accent-soft-2); color:var(--accent); }
.btn-ghost{ background:rgba(255,251,245,.06); color:var(--text); }
.btn-ghost:hover{ background:rgba(255,251,245,.10); color:var(--text); }
.btn-ghost .icon{ width:16px; height:16px; color:var(--text-3); }

/* ---------- Shared type ---------- */
.kicker{ display:flex; align-items:center; gap:8px; font:700 12px/16px var(--font-body); letter-spacing:.12em;
  text-transform:uppercase; color:#b7a786; }
.kicker::before{ content:""; width:8px; height:8px; flex:none; border-radius:50%; background:var(--accent); box-shadow:0 0 0 4px rgba(255,194,71,.08); }
.kicker.has-icons::before{ display:none; }
.section{ padding-block:96px; }
.section-head{ display:grid; gap:16px; max-width:680px; margin-bottom:48px; }
.section-head h2{ font-size:36px; line-height:40px; letter-spacing:-.01em; }
.section-head h2 em, .cta-copy h2 em{ color:var(--accent); }
.section-sub{ font-size:18px; line-height:28px; color:var(--text-2); }

/* ---------- Navigation: a compact bar floating off the top edge ---------- */
.nav-wrap{ position:fixed; top:16px; left:0; right:0; z-index:50; display:flex; justify-content:center; padding-inline:var(--gutter); pointer-events:none; }
.nav{ pointer-events:auto; display:flex; align-items:center; gap:24px; min-height:var(--nav-h); padding:8px 8px 8px 16px;
  border-radius:var(--r-lg); background:rgba(26,22,17,.72); border:1px solid rgba(255,251,245,.08);
  -webkit-backdrop-filter:blur(16px) saturate(1.2); backdrop-filter:blur(16px) saturate(1.2); box-shadow:0 8px 24px rgba(0,0,0,.25); }
.brand{ display:flex; align-items:center; gap:8px; color:var(--text); }
.brand:hover{ color:var(--text); }
.brand img{ width:32px; height:32px; }
.brand-word{ font:700 18px/28px var(--font-brand); letter-spacing:.01em; }
.brand-tag{ padding:2px 8px; border-radius:999px; background:var(--accent-soft); color:var(--accent); font:600 12px/16px var(--font-body); }
.nav-links{ display:flex; gap:4px; }
.nav-links a{ position:relative; display:block; padding:8px 12px; border-radius:var(--r-sm); color:var(--text-2); font:600 14px/20px var(--font-body);
  transition:color .3s var(--ease),background-color .3s var(--ease); }
.nav-links a:hover{ color:var(--text); background:rgba(255,251,245,.05); }
.nav-links a[aria-current]{ color:var(--accent); }
.nav-links a::after{ content:""; position:absolute; left:50%; bottom:2px; width:4px; height:4px; margin-left:-2px; border-radius:50%;
  background:var(--accent); opacity:0; transform:scale(0); transition:opacity .3s var(--ease),transform .5s var(--ease); }
.nav-links a[aria-current]::after{ opacity:1; transform:none; }
.nav-toggle{ display:none; position:relative; width:40px; height:40px; border-radius:var(--r-md); background:rgba(255,251,245,.06); }
.nav-toggle span{ position:absolute; left:12px; right:12px; top:19px; height:2px; border-radius:2px; background:var(--text); transition:transform .5s var(--ease); }
.nav-toggle span:first-child{ transform:translateY(-4px); }
.nav-toggle span:last-child{ transform:translateY(4px); }
.nav-toggle[aria-expanded="true"] span:first-child{ transform:rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child{ transform:rotate(-45deg); }

/* Mobile menu: a full-height panel, links arrive one after another */
.menu{ position:fixed; inset:0; z-index:40; display:flex; flex-direction:column; justify-content:space-between; gap:32px;
  padding:112px var(--gutter) 32px; background:rgba(26,22,17,.94); -webkit-backdrop-filter:blur(24px); backdrop-filter:blur(24px);
  opacity:0; visibility:hidden; transition:opacity .5s var(--ease),visibility 0s step-end .5s; }
.menu.is-open{ opacity:1; visibility:visible; transition:opacity .5s var(--ease); }
.menu ul{ display:grid; gap:8px; }
.menu li, .menu .btn{ opacity:0; transform:translateY(24px); transition:opacity .5s var(--ease),transform .5s var(--ease); }
.menu.is-open li, .menu.is-open .btn{ opacity:1; transform:none; }
.menu.is-open li:nth-child(2){ transition-delay:60ms; }
.menu.is-open li:nth-child(3){ transition-delay:120ms; }
.menu.is-open li:nth-child(4){ transition-delay:180ms; }
.menu.is-open li:nth-child(5){ transition-delay:240ms; }
.menu.is-open .btn{ transition-delay:300ms; }
.menu a:not(.btn){ display:flex; align-items:center; gap:12px; padding-block:8px; color:var(--text); font:700 30px/36px var(--font-body); }
.menu a:not(.btn) .icon{ width:24px; height:24px; color:var(--text-3); }
.menu .btn{ width:100%; }
html.menu-open{ overflow:hidden; }

/* ---------- Hero ---------- */
.hero{ position:relative; overflow:clip; }
.hero-inner{ display:grid; grid-template-columns:minmax(0,1.04fr) minmax(0,.96fr); align-items:center; gap:32px;
  min-height:min(100svh,920px); padding-top:112px; }
.hero-copy{ position:relative; z-index:2; display:grid; justify-items:start; gap:24px; padding-block:48px 64px; }
.kicker-icons{ display:flex; gap:4px; }
.kicker-icons .icon{ width:16px; height:16px; color:var(--accent); }
.hero-title{ max-width:680px; font:700 48px/1.1 var(--font-brand); letter-spacing:-.02em; }
.hero-title .line{ display:block; }
/* The skill's light-to-grey heading gradient on the white line; the brand's yellow on the second */
.hero-title .line:first-child{ width:fit-content; background:linear-gradient(90deg,#fffbf5 0%,#bfb2a0 100%);
  -webkit-background-clip:text; background-clip:text; color:transparent; }
.hero-title .accent{ color:var(--accent); }
.hero-sub{ max-width:560px; font-size:18px; line-height:28px; color:var(--text-soft); }
.hero-actions{ display:flex; flex-wrap:wrap; align-items:center; gap:24px; margin-top:8px; }
.link-quiet{ display:inline-flex; align-items:center; gap:8px; min-height:40px; color:var(--text-2); font-weight:600; }
.link-quiet .icon{ width:16px; height:16px; transition:transform .5s var(--ease); }
.link-quiet:hover{ color:var(--text); }
.link-quiet:hover .icon{ transform:translateY(4px); }
.hero-note{ font-size:14px; line-height:20px; color:var(--text-3); }
.hero-note b{ color:var(--text-2); font-weight:600; }

.hero-art{ position:relative; align-self:end; height:clamp(560px,52vw,720px); }
.hero-glow{ position:absolute; left:50%; top:36%; width:72%; aspect-ratio:1; border-radius:50%; background:rgba(255,184,64,.13);
  filter:blur(72px); transform:translate(-50%,-50%); }
.hero-rings{ position:absolute; left:50%; top:38%; width:min(480px,86%); aspect-ratio:1; border-radius:50%; border:1px solid rgba(181,146,69,.19);
  transform:translate(-50%,-50%); box-shadow:0 0 0 32px rgba(181,146,69,.024),0 0 0 80px rgba(181,146,69,.016); }
.hero-rings::before,.hero-rings::after{ content:""; position:absolute; inset:32px; border-radius:50%; border:1px dashed rgba(181,146,69,.12); }
.hero-rings::after{ inset:80px; border-style:solid; border-color:rgba(181,146,69,.07); }
.hero-hazmat{ position:absolute; left:50%; bottom:0; height:100%; width:auto; max-width:none; transform:translateX(-50%);
  filter:drop-shadow(0 16px 24px rgba(0,0,0,.4));
  -webkit-mask-image:linear-gradient(180deg,#000 76%,transparent 99%); mask-image:linear-gradient(180deg,#000 76%,transparent 99%); }

/* Floating cards: the offer itself, drawn as the product UI */
.float-card{ position:absolute; z-index:2; display:grid; gap:4px; padding:12px 16px; border-radius:var(--r-lg);
  background:var(--glass); border:1px solid rgba(255,251,245,.08); -webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px);
  box-shadow:0 24px 64px rgba(0,0,0,.35); }
.fc-label{ display:flex; align-items:center; gap:8px; font:600 12px/16px var(--font-body); color:var(--text-3); }
.fc-label .icon{ width:16px; height:16px; color:var(--money); }
.fc-url{ display:flex; align-items:center; gap:8px; font:600 16px/24px var(--font-body); color:var(--text-soft); white-space:nowrap; }
.fc-url .icon{ width:16px; height:16px; color:var(--money); }
.fc-url b{ color:var(--accent); font-weight:700; }
.caret{ display:inline-block; width:2px; height:20px; margin-left:-6px; border-radius:1px; background:var(--accent); animation:caret 1s steps(2,jump-none) infinite; }
.fc-code{ font:700 24px/32px var(--font-display); letter-spacing:.06em; color:var(--text); transition:opacity .3s var(--ease); }
.fc-code.is-swap{ opacity:0; }
.fc-note{ display:flex; align-items:center; gap:4px; font-size:12px; line-height:16px; color:var(--accent); }
.fc-note .icon{ width:16px; height:16px; }
.fc-chip{ justify-self:start; padding:2px 8px; border-radius:999px; background:var(--accent-soft); color:var(--accent); font:600 12px/16px var(--font-body); }
.spark-mini{ width:160px; height:48px; }
.spark-line{ fill:none; stroke:var(--money); stroke-width:2.5; stroke-linecap:round; stroke-linejoin:round; }
.spark-area{ fill:var(--money-soft); stroke:none; }
.spark-dot{ fill:var(--money); }
.spark-dot-ring{ fill:rgba(182,255,71,.18); }
.card-url{ top:14%; left:-6%; }
.card-code{ bottom:18%; left:0; }
.card-income{ top:44%; right:-2%; }
.badge-platform{ position:absolute; z-index:2; display:grid; place-items:center; width:48px; height:48px; border-radius:50%;
  background:rgba(36,31,24,.84); border:1px solid rgba(255,251,245,.08); -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px);
  box-shadow:0 12px 32px rgba(0,0,0,.3); }
.badge-platform .icon{ width:24px; height:24px; }
.badge-platform.is-yt{ top:4%; right:18%; color:#ff4e45; }
.badge-platform.is-tt{ top:24%; right:2%; color:var(--text); }
.badge-platform.is-tw{ top:34%; left:6%; color:#a970ff; }

/* Entrance on load, then a slow float on the separate `translate` property so the two never fight */
.hero-copy > *{ animation:rise .8s var(--ease) both; }
.hero-copy > :nth-child(2){ animation-delay:60ms; }
.hero-copy > :nth-child(3){ animation-delay:120ms; }
.hero-copy > :nth-child(4){ animation-delay:180ms; }
.hero-copy > :nth-child(5){ animation-delay:240ms; }
.hero-hazmat{ animation:art-in 1s var(--ease) both; }
.hero-glow,.hero-rings{ animation:fade-in 1.2s var(--ease) both; }
.float-card,.badge-platform{ animation:pop-in .8s var(--ease) both, float 7s var(--ease-float) infinite; }
.card-url{ animation-delay:.35s,0s; }
.card-income{ animation-delay:.5s,-2.4s; }
.card-code{ animation-delay:.65s,-4.1s; }
.badge-platform.is-yt{ animation-delay:.7s,-1.2s; }
.badge-platform.is-tt{ animation-delay:.8s,-3.3s; }
.badge-platform.is-tw{ animation-delay:.9s,-5.2s; }
@keyframes rise{ from{ opacity:0; transform:translateY(24px); } }
@keyframes art-in{ from{ opacity:0; transform:translateX(-50%) translateY(32px); } }
@keyframes fade-in{ from{ opacity:0; } }
@keyframes pop-in{ from{ opacity:0; transform:translateY(16px) scale(.96); } }
@keyframes float{ 0%,100%{ translate:0 0; } 50%{ translate:0 -8px; } }
@keyframes caret{ 0%{ opacity:1; } 100%{ opacity:0; } }

/* ---------- Benefits (bento) ---------- */
.bento{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.card{ position:relative; display:flex; flex-direction:column; justify-content:space-between; gap:32px; min-height:320px; padding:32px;
  border-radius:var(--r-xl); background:var(--bg-1); overflow:hidden; }
.card.is-wide{ grid-column:span 2; flex-direction:row; align-items:center; }
.card.is-wide > *{ flex:1 1 0; min-width:0; }
.card-text{ display:grid; gap:12px; align-content:start; }
.card-icon{ display:grid; place-items:center; width:48px; height:48px; margin-bottom:4px; border-radius:var(--r-md); background:var(--accent-soft); color:var(--accent); }
.card-icon .icon{ width:24px; height:24px; }
.card-icon.is-money{ background:var(--money-soft); color:var(--money); }
.card h3{ font-size:20px; line-height:28px; }
.card p{ color:var(--text-2); }

/* Card A: a partner page, in miniature */
.mock-browser{ border-radius:var(--r-lg); background:var(--bg-0); border:1px solid var(--line-strong); overflow:hidden; box-shadow:0 24px 64px rgba(0,0,0,.3); }
.mock-bar{ display:flex; align-items:center; gap:12px; padding:8px 12px; background:var(--bg-2); }
.mock-dots{ display:flex; gap:4px; }
.mock-dots i{ width:8px; height:8px; border-radius:50%; background:var(--bg-4); }
.mock-url{ display:flex; align-items:center; gap:4px; min-width:0; flex:1; padding:4px 12px; border-radius:999px; background:var(--bg-1);
  font:600 12px/16px var(--font-body); color:var(--text-3); white-space:nowrap; overflow:hidden; }
.mock-url .icon{ width:12px; height:12px; color:var(--money); }
.mock-url b{ color:var(--accent); }
.mock-page{ position:relative; display:grid; align-content:center; gap:12px; min-height:232px; padding:24px; overflow:hidden; }
.mock-page > *{ position:relative; z-index:1; max-width:62%; }
.mock-kicker{ font:700 12px/16px var(--font-body); letter-spacing:.12em; color:var(--text-3); }
.mock-title{ font:700 18px/24px var(--font-brand); }
.mock-title em{ color:var(--accent); }
.mock-code{ justify-self:start; display:inline-flex; align-items:center; gap:8px; padding:4px 12px; border-radius:var(--r-sm); background:var(--accent-soft);
  color:var(--text-2); font-size:12px; line-height:16px; }
.mock-code b{ font:700 16px/24px var(--font-display); letter-spacing:.06em; color:var(--accent); }
.mock-code .icon{ width:16px; height:16px; color:var(--accent); }
.mock-btn{ justify-self:start; padding:8px 12px; border-radius:var(--r-sm); background:var(--accent); color:var(--ink); font:700 12px/16px var(--font-body); }
.mock-title em{ white-space:nowrap; }
.mock-page .mock-art{ position:absolute; z-index:0; top:8px; right:-8%; width:56%; max-width:none;
  -webkit-mask-image:linear-gradient(180deg,#000 52%,transparent 86%); mask-image:linear-gradient(180deg,#000 52%,transparent 86%); }

/* Card B: the code */
.code-visual{ display:grid; justify-items:start; gap:12px; }
.code-chip{ display:flex; align-items:center; gap:12px; padding:12px 16px; border-radius:var(--r-lg); background:var(--bg-2); border:1px dashed var(--accent-line); }
.code-label{ font:600 12px/16px var(--font-body); color:var(--text-3); }
.code-value{ font:700 30px/36px var(--font-display); letter-spacing:.08em; }
.code-chip .icon{ width:20px; height:20px; color:var(--accent); }
.code-toast{ display:inline-flex; align-items:center; gap:8px; padding:4px 12px; border-radius:999px; background:var(--money-soft); color:var(--money); font:600 14px/20px var(--font-body); }
.code-toast .icon{ width:16px; height:16px; }

/* Card C: income line */
.spark-visual{ display:grid; gap:12px; padding:16px; border-radius:var(--r-lg); background:var(--bg-2); }
.spark-head{ display:flex; align-items:center; justify-content:space-between; gap:12px; font:600 14px/20px var(--font-body); color:var(--text-2); }
.spark-chip{ padding:2px 8px; border-radius:999px; background:var(--money-soft); color:var(--money); font-size:12px; line-height:16px; }
.spark-big{ width:100%; height:96px; }

/* Card D: the referrals panel */
.mock-stats{ display:grid; gap:16px; padding:24px; border-radius:var(--r-lg); background:var(--bg-2); }
.ms-head{ display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; }
.ms-title{ display:flex; align-items:center; gap:8px; font:700 16px/24px var(--font-body); }
.ms-title .icon{ color:var(--accent); }
.ms-tier{ display:inline-flex; align-items:center; gap:4px; padding:4px 12px; white-space:nowrap; border-radius:999px; background:var(--accent-soft); color:var(--accent); font:600 12px/16px var(--font-body); }
.ms-tier .icon{ width:16px; height:16px; }
.ms-rows{ display:grid; gap:12px; }
.ms-row{ display:grid; grid-template-columns:128px 1fr; align-items:center; gap:16px; }
.ms-row dt{ font-size:14px; line-height:20px; color:var(--text-2); }
.ms-bar{ position:relative; display:block; height:8px; border-radius:999px; background:var(--bg-3); overflow:hidden; }
.ms-bar::after{ content:""; position:absolute; inset:0; border-radius:inherit; background:var(--accent); transform-origin:left; transform:scaleX(var(--to,.5));
  transition:transform 1.2s var(--ease) .3s; }
.ms-bar.is-1{ --to:.78; }
.ms-bar.is-2{ --to:.52; }
.ms-bar.is-money{ --to:.64; }
.ms-bar.is-money::after{ background:var(--money); }
.js .card:not(.is-in) .ms-bar::after{ transform:scaleX(0); }

/* ---------- Tagline: words light up one by one ---------- */
.tagline{ padding-block:96px; }
.tagline-text{ max-width:760px; margin-inline:auto; font:700 36px/40px var(--font-body); letter-spacing:-.01em; text-align:center; text-wrap:balance; }
.tagline-text em{ color:var(--accent); }
.js .tagline-text .w{ opacity:.3; transition:opacity .5s var(--ease); }
.js .tagline-text .w.is-on{ opacity:1; }

/* ---------- Steps ---------- */
.steps{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; counter-reset:step; }
.step{ position:relative; display:grid; align-content:start; gap:12px; padding:32px; border-radius:var(--r-xl); background:var(--bg-1); }
.step-num{ margin-bottom:12px; font:700 48px/1 var(--font-display); color:var(--accent); letter-spacing:.02em; }
.step h3{ font-size:20px; line-height:28px; }
.step p{ color:var(--text-2); }
.step-arrow{ position:absolute; z-index:1; top:48px; right:-24px; display:grid; place-items:center; width:32px; height:32px; border-radius:50%;
  background:var(--bg-3); color:var(--accent); box-shadow:0 0 0 4px var(--bg-0); }
.step-arrow .icon{ width:16px; height:16px; }

/* ---------- Platforms ---------- */
.platforms{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; }
.platform{ display:grid; align-content:start; gap:12px; padding:24px; border-radius:var(--r-xl); background:var(--bg-1);
  transition:background-color .3s var(--ease),transform .5s var(--ease); }
.platform:hover{ background:var(--bg-2); transform:translateY(-4px); }
.platform-icon{ display:grid; place-items:center; width:48px; height:48px; margin-bottom:4px; border-radius:var(--r-md); }
.platform-icon .icon{ width:24px; height:24px; }
.platform h3{ font-size:18px; line-height:28px; }
.platform p{ font-size:14px; line-height:20px; color:var(--text-2); }
.platform.is-yt .platform-icon{ background:rgba(255,78,69,.12); color:#ff4e45; }
.platform.is-tt .platform-icon{ background:rgba(255,251,245,.08); color:var(--text); }
.platform.is-tw .platform-icon{ background:rgba(169,112,255,.12); color:#a970ff; }
.platform.is-tg .platform-icon{ background:rgba(42,171,238,.12); color:#2aabee; }

/* ---------- FAQ ---------- */
.faq-layout{ display:grid; grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr); gap:64px; align-items:start; }
.faq-head{ position:sticky; top:112px; margin-bottom:0; justify-items:start; }
.faq-head .btn{ margin-top:8px; }
.faq-list{ display:grid; gap:8px; }
.faq{ border-radius:var(--r-lg); background:var(--bg-1); transition:background-color .3s var(--ease); }
.faq:hover, .faq[open]{ background:var(--bg-2); }
.faq summary{ display:flex; align-items:center; justify-content:space-between; gap:16px; padding:16px 24px; min-height:64px;
  font:600 18px/28px var(--font-body); cursor:pointer; list-style:none; border-radius:var(--r-lg); }
.faq summary::-webkit-details-marker{ display:none; }
.faq summary .icon{ color:var(--text-3); transition:transform .5s var(--ease),color .3s var(--ease); }
.faq[open] summary .icon{ transform:rotate(180deg); color:var(--accent); }
.faq-body{ padding:0 24px 24px; color:var(--text-2); }
.faq[open] .faq-body{ animation:faq-in .5s var(--ease) both; }
@keyframes faq-in{ from{ opacity:0; transform:translateY(-8px); } }

/* ---------- Final CTA ---------- */
.cta-panel{ position:relative; display:grid; grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr); align-items:center; gap:32px;
  padding:64px; border-radius:var(--r-xl); background:var(--bg-1); overflow:hidden; }
.cta-copy{ position:relative; z-index:1; display:grid; justify-items:start; gap:16px; }
.cta-copy h2{ font:700 36px/40px var(--font-brand); letter-spacing:-.02em; }
.cta-text{ max-width:520px; font-size:18px; line-height:28px; color:var(--text-2); }
.cta-actions{ display:flex; flex-wrap:wrap; gap:12px; margin-top:16px; }
.cta-art{ position:relative; height:280px; }
.cta-glow{ position:absolute; left:50%; top:50%; width:80%; aspect-ratio:1; border-radius:50%; background:rgba(255,184,64,.12); filter:blur(64px); transform:translate(-50%,-50%); }
.skin{ position:absolute; width:200px; height:200px; filter:drop-shadow(0 16px 24px rgba(0,0,0,.45)); transition:transform .5s var(--ease); }
.skin.s1{ left:2%; top:16%; transform:rotate(-12deg); }
.skin.s2{ left:34%; top:2%; transform:rotate(4deg); z-index:1; }
.skin.s3{ right:0; top:28%; transform:rotate(10deg); }
.cta-panel:hover .skin.s1{ transform:rotate(-16deg) translateY(-8px); }
.cta-panel:hover .skin.s2{ transform:rotate(2deg) translateY(-12px); }
.cta-panel:hover .skin.s3{ transform:rotate(14deg) translateY(-8px); }

/* ---------- Footer ---------- */
.footer{ margin-top:32px; padding-block:64px 32px; border-top:1px solid var(--line); }
.footer-grid{ display:grid; grid-template-columns:minmax(0,1.6fr) repeat(3,minmax(0,1fr)); gap:32px; }
.footer-brand{ display:grid; justify-items:start; gap:16px; max-width:360px; }
.footer-brand p{ font-size:14px; line-height:20px; color:var(--text-2); }
.age{ display:flex; align-items:center; gap:12px; }
.age-badge{ display:grid; place-items:center; flex:none; width:40px; height:40px; border-radius:50%; border:1px solid var(--line-strong);
  font:700 14px/20px var(--font-display); color:var(--text-2); }
.footer-title{ margin-bottom:16px; font:700 12px/16px var(--font-body); letter-spacing:.12em; text-transform:uppercase; color:var(--text-3); }
.footer-col ul{ display:grid; gap:8px; }
.footer-col a{ display:inline-flex; align-items:center; gap:8px; color:var(--text-2); font-size:14px; line-height:20px; padding-block:4px; }
.footer-col a:hover{ color:var(--accent); }
.footer-col a .icon{ width:16px; height:16px; color:var(--text-3); }
.footer-bottom{ display:flex; justify-content:space-between; gap:16px; margin-top:48px; padding-top:24px; border-top:1px solid var(--line);
  font-size:12px; line-height:16px; color:var(--text-3); }

/* ---------- 404 ---------- */
.lost{ position:relative; overflow:clip; }
.lost-inner{ display:grid; grid-template-columns:minmax(0,1.04fr) minmax(0,.96fr); align-items:center; gap:32px; min-height:100svh; padding-top:96px; }
.lost-copy{ display:grid; justify-items:start; gap:24px; padding-block:48px; }
.lost-copy > *{ animation:rise .8s var(--ease) both; }
.lost-copy > :nth-child(2){ animation-delay:60ms; }
.lost-copy > :nth-child(3){ animation-delay:120ms; }
.lost-copy > :nth-child(4){ animation-delay:180ms; }
.lost-text{ max-width:520px; font-size:18px; line-height:28px; color:var(--text-soft); }
.lost-text code{ padding:2px 8px; border-radius:var(--r-sm); background:var(--bg-2); color:var(--accent); font:600 16px/24px var(--font-display); word-break:break-all; }
.lost-actions{ display:flex; flex-wrap:wrap; gap:12px; }
.lost-art{ position:relative; align-self:stretch; min-height:560px; }
.lost-art .hero-hazmat{ height:min(92%,760px); bottom:0; }

/* ---------- Scroll reveal: sections rise 32px and fade in once ---------- */
.js [data-reveal]{ opacity:0; transform:translateY(32px); transition:opacity .7s var(--ease),transform .7s var(--ease); }
.js [data-reveal].is-in{ opacity:1; transform:none; }
.js .bento > :nth-child(2), .js .steps > :nth-child(2), .js .platforms > :nth-child(2){ transition-delay:80ms; }
.js .bento > :nth-child(3), .js .steps > :nth-child(3), .js .platforms > :nth-child(3){ transition-delay:160ms; }
.js .bento > :nth-child(4), .js .platforms > :nth-child(4){ transition-delay:240ms; }

/* ---------- Responsive ---------- */
@media (max-width:1279px){
  .hero-title{ font-size:44px; }
  .card-url{ left:-2%; }
}
@media (max-width:1023px){
  .nav{ width:100%; justify-content:space-between; gap:12px; }
  .nav-links, .nav-site{ display:none; }
  .js .nav-toggle{ display:block; }
  .hero-inner{ grid-template-columns:1fr; min-height:0; gap:0; padding-top:96px; }
  .hero-copy{ padding-block:32px 16px; }
  .hero-title{ font-size:36px; }
  .hero-art{ height:560px; margin-inline:calc(var(--gutter) * -1); }
  .card-url{ left:4%; top:10%; }
  .card-code{ left:4%; }
  .card-income{ right:4%; }
  .badge-platform.is-tw{ left:12%; }
  .section{ padding-block:80px; }
  .bento{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .card.is-wide{ grid-column:span 2; }
  .steps{ grid-template-columns:1fr; }
  .step{ grid-template-columns:96px 1fr; column-gap:24px; }
  .step-num{ grid-row:span 2; margin:0; }
  .step-arrow{ display:none; }
  .platforms{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .faq-layout{ grid-template-columns:1fr; gap:32px; }
  .faq-head{ position:static; }
  .cta-panel{ grid-template-columns:1fr; padding:48px; }
  .cta-art{ width:100%; max-width:480px; height:220px; justify-self:center; }
  .footer-grid{ grid-template-columns:repeat(3,minmax(0,1fr)); }
  .footer-brand{ grid-column:1 / -1; max-width:none; }
  .lost-inner{ grid-template-columns:1fr; min-height:0; padding-top:112px; }
  .lost-art{ min-height:520px; }
}
@media (max-width:767px){
  .card, .card.is-wide{ grid-column:auto; flex-direction:column; align-items:stretch; min-height:0; padding:24px; }
  /* In a column, a zero flex basis would collapse the overflow-hidden mocks to nothing */
  .card.is-wide > *{ flex:none; }
  .bento{ grid-template-columns:1fr; }
  .mock-page > *{ max-width:70%; }
}
@media (max-width:639px){
  .brand-word{ font-size:16px; line-height:24px; }
  .hero-title{ font-size:30px; line-height:36px; }
  .hero-sub, .section-sub, .cta-text, .lost-text{ font-size:16px; line-height:24px; }
  .hero-actions{ gap:12px; }
  .hero-actions .btn{ width:100%; }
  .hero-art{ height:460px; }
  .float-card{ padding:8px 12px; }
  .fc-url{ font-size:14px; line-height:20px; }
  .caret{ height:16px; }
  .fc-code{ font-size:20px; line-height:28px; }
  .card-url{ top:6%; left:16px; }
  .card-code{ bottom:12%; left:16px; }
  .card-income{ display:none; }
  .badge-platform{ width:40px; height:40px; }
  .badge-platform .icon{ width:20px; height:20px; }
  .badge-platform.is-yt{ right:16px; top:22%; }
  .badge-platform.is-tt{ right:16px; top:36%; }
  .badge-platform.is-tw{ display:none; }
  .section{ padding-block:64px; }
  .section-head{ margin-bottom:32px; }
  .section-head h2{ font-size:30px; line-height:36px; }
  .tagline{ padding-block:64px; }
  .tagline-text{ font-size:30px; line-height:36px; }
  .step{ grid-template-columns:1fr; padding:24px; }
  .step-num{ grid-row:auto; font-size:36px; line-height:40px; }
  .platforms{ grid-template-columns:1fr; }
  .faq summary{ font-size:16px; line-height:24px; padding:16px; }
  .faq-body{ padding:0 16px 16px; }
  .cta-panel{ padding:32px 24px; }
  .cta-copy h2{ font-size:30px; line-height:36px; }
  .cta-actions{ width:100%; }
  .cta-actions .btn{ width:100%; }
  .cta-art{ height:180px; }
  .skin{ width:140px; height:140px; }
  .footer-grid{ grid-template-columns:1fr 1fr; }
  .footer-bottom{ flex-direction:column; }
  .lost-actions, .lost-actions .btn{ width:100%; }
  .lost-art{ min-height:420px; }
}

/* ---------- Reduced motion: movement becomes a plain fade ---------- */
@media (prefers-reduced-motion:reduce){
  html{ scroll-behavior:auto; }
  .hero-copy > *, .lost-copy > *, .hero-hazmat, .hero-glow, .hero-rings{ animation:fade-in .4s var(--ease) both; }
  .float-card, .badge-platform{ animation:fade-in .4s var(--ease) both; }
  .caret{ animation:none; }
  .js [data-reveal]{ transform:none; transition:opacity .4s var(--ease); }
  .menu li, .menu .btn{ transform:none; }
  .platform:hover, .btn:active{ transform:none; }
  .ms-bar::after{ transition:none; }
  .faq[open] .faq-body{ animation:fade-in .3s var(--ease) both; }
}

/* ---------- Squircle corners, as on lastrust.win (Chrome 139+): twice the radius ---------- */
@supports (corner-shape:squircle){
  :root{ --r-sm:16px; --r-md:24px; --r-lg:32px; --r-xl:48px; }
  .btn,.nav,.nav-links a,.nav-toggle,.float-card,.card,.card-icon,.mock-browser,.mock-code,.mock-btn,.code-chip,.spark-visual,.mock-stats,
  .step,.platform,.platform-icon,.faq,.faq summary,.cta-panel,.lost-text code,.skip-link{ corner-shape:squircle; }
}
