/* TribeLedger landing page. Barlow 400/600 are self-hosted; 500/700 requests
   fall back to them. Content is visible without JavaScript: landing.js adds
   the .js-reveal hook on <html> only when motion is allowed. */

@font-face {
  font-family: Barlow;
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/Barlow-Regular.ttf") format("truetype");
}
@font-face {
  font-family: Barlow;
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/Barlow-SemiBold.ttf") format("truetype");
}

:root {
  --g: #005E3C;
  --g-deep: #00402A;
  --g-soft: #E8F3EE;
  --mint: #CFEBDD;
  --lime: #D7F26B;
  --ink: #0F1512;
  --muted: #5F6B66;
  --bg: #F7F9F7;
  --card: #fff;
  --line: #E3E9E5;
  --red: #C2483D;
  --shadow: 0 1px 2px rgba(15, 21, 18, .04), 0 12px 32px -12px rgba(15, 21, 18, .14);
  --shadow-lg: 0 2px 4px rgba(15, 21, 18, .04), 0 40px 80px -30px rgba(0, 64, 42, .35);
  --r: 28px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Barlow, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.02em; line-height: 1.08; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
em { font-style: normal; color: var(--g); }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 8px; }

.shell { --gutter: clamp(24px, 3vw, 40px); width: min(1320px, calc(100% - var(--gutter) * 2)); margin-inline: auto; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px;
}
.skip:focus { top: 12px; }

/* Buttons & pills ---------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 54px; padding: 0 26px; border-radius: 999px;
  font-weight: 600; font-size: 16px; white-space: nowrap;
  transition: transform .25s var(--ease), background .25s, box-shadow .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { height: 42px; padding: 0 18px; font-size: 15px; }
.btn-primary { background: var(--g); color: #fff; box-shadow: 0 10px 24px -10px rgba(0, 94, 60, .7); }
.btn-primary:hover { background: var(--g-deep); }
.btn-ghost { background: #fff; border: 1px solid var(--line); }
.btn-ghost:hover { border-color: #c3cec8; }
.btn-light { background: #fff; color: var(--g-deep); }
.btn-outline-light { border: 1px solid rgba(255, 255, 255, .4); color: #fff; }
.btn-outline-light:hover { border-color: #fff; }
.arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--g);
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--g); }
.pill-inv { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .2); color: var(--lime); }
.pill-inv::before { background: var(--lime); }

.tag { display: inline-block; padding: 5px 11px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.tag-g { background: var(--g-soft); color: var(--g); }
.tag-ok { background: #E4F6EA; color: #13804A; }

/* Avatars */
.av {
  width: 30px; height: 30px; flex: none; border-radius: 50%;
  display: inline-grid; place-items: center;
  font-size: 13px; font-weight: 600; color: #fff; border: 2px solid #fff;
}
.av-xs { width: 20px; height: 20px; font-size: 10px; border-width: 0; }
.av-g { background: var(--g); }
.av-m { background: #C9792F; }
.av-j { background: #4B6BBE; }
.av-plus { background: var(--g-soft); color: var(--g); }
.stack { display: flex; }
.stack .av + .av { margin-left: -9px; }

/* Header ------------------------------------------------------------------- */
.header {
  position: sticky; top: 0; z-index: 50;
  transition: background .3s, box-shadow .3s, backdrop-filter .3s;
}
.header.scrolled {
  background: rgba(247, 249, 247, .82);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.header-in { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 20px; letter-spacing: -.01em; }
.logo { width: 30px; height: auto; }
.wordmark { height: 34px; width: auto; }
.nav-links { display: flex; gap: 30px; font-weight: 600; font-size: 15px; color: var(--muted); }
.nav-links a { padding: 10px 0; }
.nav-links a:hover { color: var(--ink); }
.foot-col a, .foot-brand > a:not(.brand) { padding: 4px 0; }
.textlink, .soon a { padding-top: 4px; }
.nav-cta { display: flex; gap: 10px; }
.nav-user { display: flex; align-items: center; gap: 10px; }
.nav-user[hidden], .nav-cta[hidden] { display: none; }
.nav-bell {
  width: 42px; height: 42px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff; border: 1px solid var(--line); color: var(--ink);
  transition: transform .25s var(--ease), border-color .25s;
}
.nav-bell:hover { transform: translateY(-2px); border-color: #c3cec8; }
.nav-bell svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav-profile {
  display: flex; align-items: center; gap: 10px; min-width: 0;
  height: 42px; padding: 0 16px 0 4px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: 15px;
  transition: transform .25s var(--ease), border-color .25s;
}
.nav-profile:hover { transform: translateY(-2px); border-color: #c3cec8; }
.nav-avatar {
  width: 34px; height: 34px; flex: none; border-radius: 50%;
  display: grid; place-items: center; background: var(--g); color: #fff; font-size: 13px; letter-spacing: .02em;
}
.nav-name { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Hero --------------------------------------------------------------------- */
.hero { position: relative; padding-top: 56px; overflow: hidden; }
.glow {
  position: absolute; inset: -160px 0 auto; height: 900px; pointer-events: none;
  background:
    radial-gradient(40% 45% at 50% 30%, rgba(207, 235, 221, .95), transparent 70%),
    radial-gradient(28% 32% at 30% 45%, rgba(215, 242, 107, .28), transparent 70%),
    radial-gradient(30% 34% at 72% 42%, rgba(0, 94, 60, .14), transparent 70%);
  filter: blur(10px);
}
.hero-copy { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero h1 {
  margin-top: 24px;
  font-size: clamp(44px, 7.4vw, 88px);
  letter-spacing: -.035em; line-height: 1;
}
.lede { margin-top: 24px; max-width: 620px; font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); }
.hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero-actions.left { justify-content: flex-start; }
.stores { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.store {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 16px 0 14px; border-radius: 14px;
  background: var(--ink); color: #fff; cursor: not-allowed; opacity: .92;
}
.store svg { width: 20px; height: 20px; fill: #fff; }
.store small { display: block; white-space: nowrap; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; opacity: .7; line-height: 1.1; }
.store b { display: block; font-size: 16px; line-height: 1.1; font-weight: 600; }
.store i {
  font-style: normal; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
  padding: 3px 7px; border-radius: 999px; background: var(--lime); color: var(--ink);
}
.micro { margin-top: 18px; font-size: 13px; color: var(--muted); }

/* Showcase */
.showcase {
  position: relative; margin-top: 64px;
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 48px; align-items: start;
  padding-bottom: 40px;
}
.float-card {
  background: rgba(255, 255, 255, .92); border: 1px solid var(--line); border-radius: 22px;
  box-shadow: var(--shadow); padding: 18px; font-size: 14px;
  animation: bob 7s ease-in-out infinite;
}
.float-card small { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.fc-split { grid-column: 1; grid-row: 1; margin-top: 90px; justify-self: end; width: 270px; }
.fc-members { grid-column: 1; grid-row: 2; justify-self: end; width: 230px; display: flex; align-items: center; gap: 14px; animation-delay: -2s; }
.fc-members small { display: block; text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 13px; }
.fc-approve { grid-column: 3; grid-row: 1; margin-top: 50px; width: 280px; animation-delay: -3.5s; }
.fc-invite { grid-column: 3; grid-row: 2; width: 250px; display: flex; align-items: center; gap: 14px; animation-delay: -5s; }
.fc-invite small { display: block; text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 13px; }
.hero-phone { grid-column: 2; grid-row: 1 / span 2; animation: rise 1.1s var(--ease) both .25s; }

.seg {
  display: flex; background: #F0F3F1; border-radius: 12px; padding: 3px; margin: 10px 0 12px; font-size: 13px; font-weight: 600;
}
.seg span { flex: 1; text-align: center; padding: 7px 8px; border-radius: 9px; color: var(--muted); }
.seg .on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.split-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.split-row b { margin-left: auto; }
.split-row .av { border: 0; width: 26px; height: 26px; font-size: 11px; }

.approve-head { display: flex; gap: 10px; align-items: center; margin: 10px 0 14px; }
.approve-head em { display: block; color: var(--muted); font-size: 13px; }
.approve-head b { display: block; }
.approve-btns { display: flex; gap: 8px; }
.approve-btns span { flex: 1; text-align: center; padding: 9px; border-radius: 12px; font-weight: 600; }
.b-ok { background: var(--g); color: #fff; }
.b-no { background: #F6ECEB; color: var(--red); }
.qr { width: 60px; height: 60px; flex: none; fill: var(--ink); background: #fff; padding: 4px; border: 1px solid var(--line); border-radius: 10px; }

/* App screenshots: original 952x1944 PNGs. Displayed widths stay at or
   below ~476px so every CSS pixel has >=2 image pixels (sharp on retina);
   no rotate/scale/filter at rest so the browser samples them cleanly. */
.shot { display: block; width: 100%; height: auto; max-width: 100%; aspect-ratio: 952 / 1944; }
.hero-phone.shot { width: 340px; }
.split-art .shot { width: min(340px, 100%); }
.dark-art .shot { width: min(330px, 100%); }
.story-shot { width: 250px; margin-top: 44px; }
.cta-art .peek { width: 320px; margin-bottom: -170px; }
.dl-art .small-phone { position: relative; width: 250px; }

/* Phone mockup */
.phone {
  position: relative; width: 300px; padding: 11px; border-radius: 48px;
  background: #141a17; box-shadow: var(--shadow-lg), inset 0 0 0 2px #2b332f;
}
.notch { position: absolute; top: 20px; left: 50%; width: 90px; height: 24px; margin-left: -45px; border-radius: 20px; background: #141a17; z-index: 2; }
.screen {
  position: relative; border-radius: 38px; background: #fff; overflow: hidden;
  padding: 54px 16px 22px; min-height: 560px; font-size: 14px;
}
.appbar { display: flex; justify-content: space-between; align-items: center; color: var(--muted); }
.appbar b { color: var(--ink); font-size: 16px; }
.bal {
  margin-top: 16px; padding: 18px; border-radius: 22px; color: #fff;
  background: radial-gradient(120% 120% at 100% 0, #0c7a52, var(--g) 50%, var(--g-deep));
}
.bal small { opacity: .8; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.bal strong { display: block; font-size: 36px; letter-spacing: -.02em; line-height: 1.15; font-weight: 600; }
.bal span { font-size: 12.5px; opacity: .85; }
.tabs-mini { display: flex; gap: 6px; margin: 16px 0 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.tabs-mini span { padding: 6px 12px; border-radius: 999px; }
.tabs-mini .on { background: var(--g-soft); color: var(--g); }
.rows li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid #EFF2F0; }
.rows li:last-child { border-bottom: 0; }
.rows i { font-style: normal; width: 38px; height: 38px; flex: none; border-radius: 12px; background: #F2F5F3; display: grid; place-items: center; font-size: 18px; }
.rows span { flex: 1; min-width: 0; font-weight: 600; }
.rows small { display: block; color: var(--muted); font-weight: 400; font-size: 12px; }
.chip-pending {
  margin-top: 10px; display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; border-radius: 14px; background: #FFF7E3; color: #8A5A00; font-size: 12.5px; font-weight: 600;
}
.dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: #E5A91B; box-shadow: 0 0 0 4px rgba(229, 169, 27, .2); animation: pulse 2s infinite; }
.fab {
  position: absolute; right: 18px; bottom: 18px; width: 50px; height: 50px; border-radius: 16px;
  background: var(--g); color: #fff; font-size: 26px; display: grid; place-items: center;
  box-shadow: 0 10px 20px -6px rgba(0, 94, 60, .6);
}

/* Sections ----------------------------------------------------------------- */
.section { padding: 120px 0; }
.tint { background: linear-gradient(180deg, #EEF4F0, #F4F7F5); }
.head { max-width: 820px; }
.head.center { margin: 0 auto 56px; text-align: center; display: flex; flex-direction: column; align-items: center; }
h2 { font-size: clamp(34px, 4.6vw, 58px); letter-spacing: -.035em; line-height: 1.04; margin-top: 18px; text-wrap: balance; }
.head p, .split-copy > p, .story-head p { margin-top: 18px; color: var(--muted); font-size: 18px; }
h3 { font-size: 21px; letter-spacing: -.015em; }
.card {
  background: var(--card); border: 1px solid rgba(15, 21, 18, .06); border-radius: var(--r);
  box-shadow: var(--shadow); padding: 28px;
  transition: transform .35s var(--ease), box-shadow .35s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card p { margin-top: 8px; color: var(--muted); font-size: 16px; }

/* Problem */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.prob-ui { height: 130px; margin-bottom: 22px; border-radius: 18px; background: #F4F6F5; padding: 16px; position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 8px; }
.bubble { align-self: flex-start; max-width: 85%; padding: 8px 12px; border-radius: 14px 14px 14px 4px; background: #fff; font-size: 13.5px; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.bubble.me { align-self: flex-end; border-radius: 14px 14px 4px 14px; background: var(--g-soft); }
.bubble.faded { color: var(--muted); font-size: 12px; background: transparent; box-shadow: none; }
.scrap { position: absolute; padding: 8px 12px; border-radius: 10px; background: #fff; font-size: 13px; box-shadow: var(--shadow); color: var(--muted); }
.s1 { top: 18px; left: 16px; transform: rotate(-5deg); }
.s2 { top: 52px; right: 14px; transform: rotate(4deg); background: #FFF6C9; color: #6b5a00; }
.s3 { bottom: 16px; left: 30px; transform: rotate(2deg); }
.answer {
  margin: 48px auto 0; width: fit-content; max-width: 100%;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 22px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  font-size: 17px; color: var(--muted);
}
.answer strong { color: var(--ink); font-weight: 600; }
.answer-logo { width: 26px; flex: none; }

/* Story */
.story { display: grid; grid-template-columns: 5fr 7fr; gap: 88px; align-items: start; }
.story-head { position: sticky; top: 120px; }
.story-head .btn { margin-top: 30px; }
.steps { display: grid; gap: 18px; counter-reset: s; }
.step {
  display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 30px;
  box-shadow: var(--shadow);
}
.num {
  font-size: 44px; font-weight: 600; letter-spacing: -.04em; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px var(--g);
}
.num { transition: color .3s; }
.step { transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; }
.step:hover { transform: translateX(6px); border-color: var(--mint); box-shadow: var(--shadow-lg); }
.step:hover .num { color: var(--g); }
.step p { margin-top: 6px; color: var(--muted); font-size: 16px; }
.step-ui .seg { margin: 0; width: 210px; }

/* Split sections */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 88px; align-items: center; }
.split.rev .split-copy { order: 2; }
.ticks { margin-top: 28px; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 34px; font-weight: 600; }
.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; font-size: 12px; background: var(--g-soft); color: var(--g);
}
.ticks-inv li { color: #fff; }
.ticks-inv li::before { background: rgba(215, 242, 107, .18); color: var(--lime); }
.split-art {
  position: relative; border-radius: 36px; padding: 56px 40px;
  background: radial-gradient(80% 80% at 70% 20%, var(--mint), #EAF3EE 60%, #F2F6F3);
  display: grid; place-items: center; min-width: 0;
}
.mock { width: 100%; max-width: 460px; background: #fff; border-radius: 24px; padding: 22px; box-shadow: var(--shadow-lg); font-size: 15px; }
.mock-head { display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 17px; margin-bottom: 16px; }
.mock-head .x { color: var(--muted); font-size: 14px; }
.amount { text-align: center; padding: 14px 0 18px; }
.amount small, .field small, .total small { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.amount strong { font-size: 44px; letter-spacing: -.03em; font-weight: 600; }
.field { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: #F4F6F5; margin-bottom: 8px; }
.field small { text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 400; }
.field > span { font-weight: 600; display: flex; align-items: center; gap: 6px; }
.seg-full { margin-top: 14px; }
.checks div { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid #EFF2F0; }
.checks b { margin-left: auto; }
.cb { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; font-size: 12px; background: var(--g); color: #fff; }
.save { margin-top: 16px; text-align: center; padding: 14px; border-radius: 14px; background: var(--g); color: #fff; font-weight: 600; }

.total { padding: 18px; border-radius: 18px; background: var(--g-soft); margin-bottom: 14px; }
.total strong { font-size: 36px; color: var(--g); letter-spacing: -.02em; font-weight: 600; }
.bar-row { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: center; padding: 10px 0; }
.bar-row .av { grid-row: span 2; border: 0; }
.bar-txt { display: flex; justify-content: space-between; font-size: 14.5px; }
.bar { height: 8px; border-radius: 99px; background: #EEF2EF; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: inherit; background: var(--g); transform-origin: left; }
.neg .bar i { background: var(--red); }
.neg b { color: var(--red); }
.w70 { width: 70%; } .w30 { width: 30%; } .w18 { width: 18%; }
.mini-float {
  position: absolute; right: 24px; top: 22px; display: flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px; background: #fff; font-size: 13px; font-weight: 600; box-shadow: var(--shadow);
}
.mini-float .dot { background: #22A565; box-shadow: 0 0 0 4px rgba(34, 165, 101, .2); }

/* Dark settlements panel */
.dark-panel {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
  padding: 80px 72px; border-radius: 40px; color: #fff;
  background: radial-gradient(70% 90% at 90% 10%, #0d7a53 0, transparent 60%), linear-gradient(160deg, var(--g), var(--g-deep) 70%);
}
.dark-panel::after {
  content: ""; position: absolute; right: -120px; bottom: -160px; width: 420px; height: 420px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 0 0 60px rgba(255, 255, 255, .03), 0 0 0 120px rgba(255, 255, 255, .02);
  pointer-events: none;
}
.dark-copy { position: relative; z-index: 1; }
.dark-copy h2 em { color: var(--lime); }
.dark-copy > p { margin-top: 18px; font-size: 18px; color: rgba(255, 255, 255, .78); }
.dark-art { position: relative; z-index: 1; display: grid; place-items: center; min-width: 0; }
.timeline { color: var(--ink); }
.tl { display: flex; gap: 14px; padding-bottom: 18px; position: relative; }
.tl::before { content: ""; position: absolute; left: 11px; top: 26px; bottom: 2px; width: 2px; background: var(--line); }
.tl.done::before { display: none; }
.tl-dot { width: 24px; height: 24px; flex: none; border-radius: 50%; border: 2px solid var(--g); background: #fff; display: grid; place-items: center; font-size: 12px; color: #fff; }
.tl.done .tl-dot { background: var(--g); }
.tl b { display: block; }
.tl small { color: var(--muted); font-size: 13.5px; }
.partial {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 12px 14px; border-radius: 14px;
  background: #FFF7E3; font-size: 14px;
}
.partial span { color: #8A5A00; }
.partial em { margin-left: auto; color: #8A5A00; font-weight: 600; font-size: 12px; text-transform: uppercase; }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile { display: flex; flex-direction: column; gap: 10px; min-height: 280px; min-width: 0; }
.tile .tile-ui { order: -1; margin-bottom: 16px; min-height: 112px; display: flex; flex-direction: column; justify-content: center; }
.tile p { margin-top: 0; }
.t-wide { grid-column: span 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: 32px; }
.t-wide .tile-ui { order: 0; min-height: 0; }
.invite-ui { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 24px; border-radius: 20px; background: radial-gradient(90% 90% at 50% 0, var(--g-soft), #F4F6F5); }
.qr-lg { width: 108px; height: 108px; }
.invite-ui .link-ui { width: 100%; background: #fff; }
.t-green { grid-column: 1 / -1; min-height: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 40px; align-items: center; }
.t-green .tile-ui { grid-row: 1 / span 2; margin: 0; min-height: 0; }
.t-green h3 { align-self: end; }
.t-green p { align-self: start; }
.t-green { background: linear-gradient(160deg, var(--g), var(--g-deep)); border-color: transparent; color: #fff; }
.t-green p { color: rgba(255, 255, 255, .78); }
.tile-ui { font-size: 14px; }
.link-ui { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 16px; border-radius: 16px; background: #F4F6F5; }
.link-ui .url { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.link-ui .copy { padding: 8px 14px; border-radius: 11px; background: var(--g); color: #fff; font-weight: 600; }
.tribes-ui, .feed-ui { display: grid; gap: 8px; }
.tribes-ui span, .feed-ui span { padding: 10px 12px; border-radius: 12px; background: #F4F6F5; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tribes-ui span:first-child { background: var(--g-soft); color: var(--g); }
.feed-ui span { display: flex; align-items: center; gap: 10px; font-weight: 400; }
.feed-ui i { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--g); }
.tile .notif-ui { min-height: 0; align-self: stretch; margin-top: 30px; margin-bottom: 46px; }
.notif-ui { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: #F4F6F5; font-weight: 600; }
.bell { position: relative; font-size: 20px; }
.bell i { position: absolute; top: -6px; right: -8px; font-style: normal; width: 16px; height: 16px; border-radius: 50%; background: var(--red); color: #fff; font-size: 10px; display: grid; place-items: center; }
.tile .cur-ui, .tile .dev-ui, .tile .notif-ui { flex-direction: row; justify-content: flex-start; align-items: center; }
.cur-ui { display: flex; gap: 10px; }
.cur-ui span { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: #F4F6F5; font-size: 20px; font-weight: 600; }
.cur-ui span:first-child { background: var(--g); color: #fff; }
.tile .dev-ui { align-items: flex-end; }
.dev-ui { display: flex; align-items: flex-end; gap: 10px; }
.d-web { width: 120px; height: 72px; border-radius: 10px; border: 2px solid rgba(255,255,255,.5); background: rgba(255,255,255,.08); }
.d-phone { width: 38px; height: 70px; border-radius: 10px; border: 2px solid var(--lime); background: rgba(215,242,107,.12); }

/* Use cases */
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.use { display: flex; flex-direction: column; }
.use:hover .use-ico { background: var(--g); transform: rotate(-6deg); }
.use-ico { transition: background .3s, transform .3s var(--ease); width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; font-size: 26px; background: var(--g-soft); margin-bottom: 20px; }
.use p { flex: 1; }
.use-ui { margin-top: 22px; display: flex; justify-content: space-between; padding: 12px 14px; border-radius: 14px; background: #F4F6F5; font-size: 14px; }

/* FAQ */
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.faq > div { display: grid; gap: 14px; align-content: start; }
details { background: #fff; border: 1px solid var(--line); border-radius: 20px; transition: box-shadow .3s; }
details[open] { box-shadow: var(--shadow); }
summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 24px; font-weight: 600; font-size: 17px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--g-soft); color: var(--g); font-size: 20px; transition: transform .3s var(--ease), background .3s;
}
details[open] summary::after { transform: rotate(45deg); background: var(--g); color: #fff; }
details p { padding: 0 24px 22px; color: var(--muted); }

/* CTA */
.cta-panel {
  position: relative; overflow: hidden; min-height: 520px;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center;
  padding: 80px 0 0 72px; border-radius: 40px; color: #fff;
  background:
    radial-gradient(60% 80% at 85% 20%, rgba(215, 242, 107, .22), transparent 60%),
    linear-gradient(135deg, #007a4e, var(--g) 45%, var(--g-deep));
}
.cta-copy { padding-bottom: 80px; }
.cta-copy h2 { font-size: clamp(36px, 5vw, 64px); }
.cta-copy > p { margin-top: 18px; font-size: 19px; color: rgba(255, 255, 255, .8); }
.cta-art { align-self: end; display: flex; justify-content: center; min-width: 0; }

/* Download */
.download { padding-top: 40px; }
.download .stores { justify-content: flex-start; margin-top: 30px; }
.textlink { display: inline-flex; gap: 6px; margin-top: 24px; font-weight: 600; color: var(--g); border-bottom: 1.5px solid currentColor; }
.dl-art { position: relative; display: grid; place-items: center; }
.dl-ring { position: absolute; width: 360px; height: 360px; max-width: 100%; border-radius: 50%; border: 1px dashed rgba(0, 94, 60, .3); animation: spin 40s linear infinite; }
.splash { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; background: linear-gradient(180deg, var(--g), var(--g-deep)); color: #fff; }
.splash-ico { width: 84px; height: 84px; border-radius: 24px; background: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px -10px rgba(0,0,0,.4); }
.splash-ico img { width: 46px; }
.splash b { font-size: 22px; }
.splash small { opacity: .75; }

/* Footer */
.footer { padding: 40px 0 28px; }
.foot-card { background: #0B110E; color: rgba(255, 255, 255, .68); border-radius: 36px; padding: 72px 64px 56px; overflow: hidden; position: relative; }
.foot-card::before { content: ""; position: absolute; right: -10%; top: -40%; width: 60%; height: 90%; background: radial-gradient(closest-side, rgba(0, 94, 60, .55), transparent); pointer-events: none; }
.foot-top { position: relative; display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; padding-bottom: 56px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.foot-lead h2 { color: #fff; margin: 0; font-size: clamp(34px, 4.4vw, 56px); }
.foot-lead h2 em { color: var(--lime); }
.foot-lead p { margin-top: 18px; max-width: 460px; font-size: 18px; }
.foot-side h4, .foot-col h4, .foot-brand h4 { color: #fff; font-size: 17px; letter-spacing: -.01em; margin-bottom: 4px; }
.foot-side .badges { justify-content: flex-start; margin: 16px 0; }
.foot-side p { font-size: 15px; margin-bottom: 18px; }
.foot-mid { position: relative; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-top: 52px; }
.footer .brand { color: #fff; }
.foot-brand p { margin: 14px 0 26px; }
.foot-brand h4 { margin-bottom: 10px; }
.foot-col { display: grid; gap: 4px; align-content: start; }
.foot-card a:not(.btn):hover { color: #fff; }
.foot-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 26px 8px 0; font-size: 14px; color: var(--muted); }

/* Store badges */
.badges { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.badge { display: block; border-radius: 9px; cursor: default; transition: transform .25s var(--ease); }
.badge:hover { transform: translateY(-2px); }
.badge img { height: 54px; width: auto; }
.soon { margin-top: 14px; font-size: 14px; color: var(--muted); }
.soon a { color: var(--g); font-weight: 600; border-bottom: 1px solid currentColor; }
.download .badges { justify-content: flex-start; }
.badges { align-items: flex-end; }
.badge-wrap { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.download .badge-wrap, .foot-side .badge-wrap { align-items: flex-start; }
.soon-chip { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: #005E3C; color: #fff; line-height: 1.3; }
.badge-soon { opacity: .6; cursor: not-allowed; }
.badge-soon:hover { transform: none; }

/* Motion ------------------------------------------------------------------- */
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(229, 169, 27, 0); } }
@keyframes rise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }

.js-reveal .reveal-me { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js-reveal .reveal-me.in { opacity: 1; transform: none; }
.js-reveal .d1 { transition-delay: .08s; }
.js-reveal .d2 { transition-delay: .16s; }
.js-reveal .d3 { transition-delay: .24s; }
.js-reveal .d4 { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* Responsive --------------------------------------------------------------- */
@media (max-width: 1100px) {
  .showcase { grid-template-columns: 1fr 1fr; gap: 16px; }
  .hero-phone { grid-column: 1 / -1; grid-row: 1; justify-self: center; margin-bottom: 20px; }
  .float-card { animation: none; width: auto; margin: 0; justify-self: stretch; }
  .fc-split { grid-column: 1; grid-row: 2; }
  .fc-approve { grid-column: 2; grid-row: 2; }
  .fc-members { grid-column: 1; grid-row: 3; }
  .fc-invite { grid-column: 2; grid-row: 3; }
  .story { grid-template-columns: 1fr; gap: 40px; }
  .story-head { position: static; }
  .grid4 { grid-template-columns: 1fr 1fr; }
  .dark-panel { padding: 64px 48px; gap: 44px; }
  .cta-panel { padding-left: 48px; }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .section { padding: 84px 0; }
  .grid3, .faq { grid-template-columns: 1fr; }
  .split, .split.rev, .dark-panel { grid-template-columns: 1fr; gap: 40px; }
  .split.rev .split-copy { order: 0; }
  .bento { grid-template-columns: 1fr 1fr; }
  .t-wide { grid-column: 1 / -1; }
  .cta-panel { min-height: 0; }
  .cta-panel { grid-template-columns: 1fr; padding: 60px 40px 0; }
  .cta-copy { padding-bottom: 0; }
  .cta-art { height: 340px; overflow: hidden; align-items: flex-start; }
  .cta-art .peek { margin-bottom: 0; }
  .story-shot { display: none; }
  .foot-top { grid-template-columns: 1fr; gap: 36px; }
  .foot-card { padding: 56px 40px 44px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .shell { width: calc(100% - 32px); }
  .header-in { height: 64px; }
  .brand { font-size: 18px; }
  .wordmark { height: 28px; }
  .nav-cta .btn-sm { height: 38px; padding: 0 14px; font-size: 14px; }
  .nav-bell { width: 38px; height: 38px; }
  .nav-profile { height: 38px; padding-right: 12px; font-size: 14px; }
  .nav-avatar { width: 30px; height: 30px; font-size: 12px; }
  .nav-name { max-width: 96px; }
  .hero { padding-top: 32px; }
  .hero h1 { font-size: clamp(40px, 12vw, 52px); }
  .hero-actions { width: 100%; flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .showcase { margin-top: 44px; grid-template-columns: 1fr; }
  .hero-phone { width: min(300px, 100%); }
  .screen { min-height: 520px; padding-inline: 14px; }
  .fc-split, .fc-approve, .fc-members, .fc-invite { grid-column: 1; grid-row: auto; }
  .section { padding: 68px 0; }
  .head.center { margin-bottom: 36px; }
  .card { padding: 22px; }
  .answer { border-radius: 20px; align-items: flex-start; font-size: 16px; }
  .step { grid-template-columns: auto 1fr; padding: 22px; gap: 14px 18px; }
  .step-ui { grid-column: 1 / -1; }
  .step-ui .seg { width: 100%; }
  .num { font-size: 36px; }
  .split-art { padding: 28px 16px; border-radius: 28px; }
  .mock { padding: 18px; }
  .amount strong { font-size: 36px; }
  .mini-float { position: static; margin-top: 14px; }
  .dark-panel { padding: 44px 22px; border-radius: 28px; }
  .bento, .grid4 { grid-template-columns: 1fr; }
  .t-wide { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .t-green { grid-template-columns: minmax(0, 1fr); }
  .t-green .tile-ui { grid-row: auto; margin-bottom: 16px; }
  .t-wide .tile-ui { order: -1; margin-bottom: 16px; }
  .link-ui { flex: none; }
  .tile { min-height: 0; }
  summary { padding: 18px; font-size: 16px; }
  details p { padding: 0 18px 18px; }
  .cta-panel { padding: 44px 22px 0; border-radius: 28px; }
  .cta-panel .hero-actions .btn { width: 100%; }
  .cta-art { height: 300px; }
  .cta-art .peek { width: 260px; }
  .hero-phone.shot { width: min(300px, 100%); }
  .split-art .shot, .dark-art .shot { width: min(290px, 100%); }
  .dl-art .small-phone { width: 220px; }
  .dl-ring { width: 280px; height: 280px; }
  .foot-card { padding: 44px 22px 36px; border-radius: 28px; }
  .foot-mid { grid-template-columns: 1fr 1fr; gap: 36px 20px; }
  .foot-brand { grid-column: 1 / -1; }
  .foot-bottom { flex-direction: column; text-align: center; }
    .badge img { height: 48px; }
}

@media (max-width: 380px) {
  .wordmark { height: 24px; }
  .nav-cta { gap: 6px; }
  .nav-cta .btn-sm { padding: 0 12px; }
  .nav-user { gap: 6px; }
  .nav-name { display: none; }
  .nav-profile { padding: 0 3px; }
}

@media (max-width: 420px) {
  .hero .pill { font-size: 11px; letter-spacing: .02em; padding: 7px 12px; }
}
