/* Finku visual implementation from Figma node 2:374, 463x677 design pixels. */
/* Desktop maintains original design geometry through viewport scaling. */
:root {
  --pine: #204d43;
  --pine-dark: #1c403d;
  --mint: #87e7b4;
  --text: #171a18;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 280px;
  background: #fff;
  color: var(--text);
  font-family: "Inter", Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
.page-viewport { margin: 0 auto; position: relative; }
.artboard {
  position: relative;
  width: 463px;
  height: 677px;
  background: #fff;
  overflow: visible;
  transform-origin: left top;
}
.hero {
  position: absolute;
  inset: 0 auto auto 0;
  width: 463px;
  height: 220px;
  background: #fff;
  overflow: hidden;
}
.grid-line {
  position: absolute;
  top: 0;
  height: 220px;
  width: .4px;
  z-index: 1;
  background: #f3f5f3;
}
.left-line { left: 95px; }
.right-line { left: 367px; }
.ring { display: block; position: absolute; pointer-events: none; z-index: 0; }
.outer-ring { left: 94px; top: 22px; }
.middle-ring { left: 120px; top: 48px; }
.inner-ring { left: 148px; top: 76px; }
.topbar {
  position: absolute;
  top: 0;
  left: 0;
  width: 463px;
  height: 25px;
  z-index: 5;
  border-bottom: .4px solid #f3f5f3;
}
.brand {
  position: absolute;
  left: 14px;
  top: 7.5px;
  display: flex;
  gap: 3px;
  align-items: center;
  height: 10px;
  color: var(--pine);
}
.brand img { display: block; flex: 0 0 auto; }
.brand span { font-size: 8px; font-weight: 400; line-height: 10px; }
.site-nav {
  position: absolute;
  left: 163.5px;
  top: 10px;
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 4px;
  line-height: 5px;
  color: var(--pine);
  white-space: nowrap;
}
.site-nav a { transition: opacity .2s; }
.site-nav a:hover, .site-nav a:focus-visible { opacity: .65; }
.top-cta {
  position: absolute;
  right: 14px;
  top: 5.5px;
  width: 39px;
  height: 14px;
  border-radius: 24px;
  border: none;
  background: var(--pine);
  color: #fff;
  font-size: 4.7px;
  font-weight: 400;
  padding: 0;
  display: grid;
  place-items: center;
}
.eyebrow {
  position: absolute;
  top: 47px;
  left: 188px;
  width: 86px;
  height: 13px;
  border: .4px solid #5dcb96;
  background: var(--mint);
  color: var(--pine);
  border-radius: 24px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  white-space: nowrap;
}
.eyebrow span:first-child { font-size: 4px; font-weight: 500; line-height: 1; }
.eyebrow-arrow { font-size: 6px; line-height: 1; }
.hero h1 {
  position: absolute;
  left: 95px;
  top: 74px;
  width: 272px;
  height: 44px;
  margin: 0;
  color: var(--pine);
  font-size: 23.2px;
  line-height: 22px;
  letter-spacing: -1.65px;
  text-align: center;
  font-weight: 400;
  white-space: nowrap;
  z-index: 2;
}
.hero-primary {
  position: absolute;
  left: 167px;
  top: 132px;
  width: 66px;
  height: 21px;
  border: 2px solid #c6d7d1;
  border-radius: 24px;
  background: var(--pine);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: white;
  font-size: 5.5px;
  padding: 0;
  line-height: 1;
  white-space: nowrap;
  z-index: 3;
}
.hero-primary .arrow { font-size: 7px; line-height: 1; }
.hero-secondary {
  position: absolute;
  left: 243px;
  top: 138px;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 5.1px;
  padding: 0;
  z-index: 3;
  white-space: nowrap;
  line-height: 1.2;
}
.partners {
  position: absolute;
  left: 0;
  top: 177px;
  width: 463px;
  height: 22px;
  z-index: 3;
  overflow: hidden;
}
.partner-logo {
  position: absolute;
  top: 1px;
  height: 18px;
  overflow: hidden;
  pointer-events: none;
}
.partner-logo img {
  position: absolute;
  top: -178px;
  width: 463px;
  height: 595px;
  max-width: none;
  display: block;
}
.feature-cards {
  position: absolute;
  left: 0;
  top: 220px;
  height: 146px;
  width: 463px;
  overflow: hidden;
}
.balance-card,
.friends-card {
  position: absolute;
  top: 0;
  height: 146px;
  border-radius: 15px;
  overflow: hidden;
}
.balance-card { left: 14px; width: 161px; }
.friends-card { left: 179px; width: 270px; }
.portrait-sprite,
.friends-sprite {
  position: absolute;
  top: -220px;
  height: 595px;
  width: 463px;
  max-width: none;
  display: block;
}
.portrait-sprite { left: -14px; }
.friends-sprite { left: -179px; }
.balance-label {
  position: absolute;
  left: 8px;
  top: 106px;
  width: 55px;
  height: 33px;
  padding: 6px 0 0 5px;
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: var(--mint);
  color: var(--pine);
  white-space: nowrap;
}
.balance-label strong { font-size: 9px; letter-spacing: -.45px; line-height: 11px; font-weight: 400; }
.balance-label span { font-size: 4.4px; line-height: 5px; }
.month-button {
  position: absolute;
  left: 117px;
  top: 10px;
  width: 35px;
  height: 13px;
  background: #fff;
  color: var(--pine);
  border: none;
  border-radius: 24px;
  display: flex;
  gap: 4px;
  justify-content: center;
  align-items: center;
  padding: 0;
  font-size: 4px;
  white-space: nowrap;
}
.month-options {
  position: absolute;
  top: 25px;
  left: 102px;
  width: 53px;
  border-radius: 5px;
  background: #fff;
  z-index: 5;
  overflow: hidden;
  box-shadow: 0 2px 12px #12392a30;
}
.month-options button {
  display: block;
  width: 100%;
  background: #fff;
  border: 0;
  color: var(--pine);
  font-size: 5px;
  padding: 6px 4px;
  text-align: left;
}
.month-options button:hover { background: #e4f8ee; }
.transactions {
  position: absolute;
  top: 88px;
  left: 169px;
  width: 91px;
  height: 52px;
  padding: 7px 7px 0;
  background: var(--pine-dark);
  border-radius: 10px;
  color: white;
  white-space: nowrap;
}
.transactions h2 { margin: 0; font-weight: 400; font-size: 5.4px; line-height: 7px; }
.transaction-row {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 3.7px;
  color: #cdddda;
  line-height: 5px;
}
.transaction-row span:first-child { font-size: 3.8px; color: var(--mint); }
.transaction-row.meta { margin-top: 10px; font-size: 3.4px; line-height: 4px; }
.transaction-row.meta span:first-child { font-size: 3.3px; }
.world {
  position: absolute;
  left: 0;
  top: 366px;
  width: 463px;
  height: 311px;
  background: #fff;
  overflow: hidden;
}
.world-eyebrow {
  position: absolute;
  top: 30px;
  left: 130px;
  width: 203px;
  color: var(--pine);
  text-align: center;
  margin: 0;
  font-size: 4.3px;
  line-height: 5px;
}
.world h2 {
  position: absolute;
  top: 44px;
  left: 101px;
  width: 261px;
  margin: 0;
  font-size: 18.5px;
  line-height: 20px;
  font-weight: 400;
  letter-spacing: -1.15px;
  text-align: center;
  color: var(--text);
}
.world-description {
  position: absolute;
  top: 90px;
  left: 153px;
  width: 157px;
  margin: 0;
  text-align: center;
  color: #6b7470;
  font-size: 4.3px;
  line-height: 6.8px;
}
.transfer-panel {
  position: absolute;
  left: 18px;
  top: 121px;
  width: 426px;
  height: 160px;
  border-radius: 4px;
  background: linear-gradient(180deg, #dcffed 0%, #f2f7f5 100%);
}
.transfer-card {
  position: absolute;
  left: 144px;
  top: 26px;
  width: 138px;
  height: 56px;
  padding: 9px 11px 0;
  border-radius: 5px;
  background: var(--pine-dark);
  color: white;
}
.transfer-label { text-align: center; font-size: 5.5px; line-height: 7px; }
.transfer-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: absolute;
  left: 11px;
  right: 11px;
  top: 25px;
  height: 21px;
}
.transfer-controls button {
  display: grid;
  place-items: center;
  padding: 0;
  flex: 0 0 13px;
  width: 13px;
  height: 13px;
  border: 0;
  border-radius: 100px;
  background: #fff;
  color: var(--pine-dark);
  font-size: 8px;
  font-weight: 400;
  line-height: 1;
}
.transfer-controls button:hover { background: var(--mint); }
.amount-display {
  display: flex;
  align-items: flex-start;
  gap: 1px;
  justify-content: center;
  color: white;
  line-height: 21px;
}
.amount-display span:first-child { font-size: 10px; line-height: 15px; }
.amount-display span:last-child { font-size: 20px; line-height: 21px; }
.recipient-card {
  position: absolute;
  left: 144px;
  top: 88px;
  width: 138px;
  height: 65px;
  background: #fff;
  color: var(--text);
  border: 0;
  border-radius: 5px;
  text-align: left;
  padding: 8px;
  display: flex;
  align-items: flex-start;
  font-size: 6.8px;
  font-weight: 600;
}
.recipient-card:hover { box-shadow: 0 2px 12px #17483d16; }

.demo-overlay {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  background: #092a2570;
  padding: 20px;
}
.dialog-open { overflow: hidden; }
.demo-dialog {
  position: relative;
  max-width: 430px;
  width: 100%;
  padding: 36px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 20px 60px #07251e30;
}
.dialog-kicker { font-size: 11px; letter-spacing: .12em; color: #419375; font-weight: 600; }
.demo-dialog h2 { font-weight: 500; color: var(--pine); font-size: 30px; margin: 8px 0 12px; }
.demo-dialog p { font-size: 14px; line-height: 1.65; margin: 0 0 25px; color: #52615a; }
.dialog-close {
  position: absolute;
  top: 12px;
  right: 15px;
  border: none;
  background: transparent;
  font-size: 25px;
  color: var(--pine);
}
.dialog-dismiss {
  border: 0;
  padding: 13px 24px;
  color: white;
  background: var(--pine);
  border-radius: 100px;
  font-size: 13px;
}
:focus-visible { outline: 2px solid #40ba85; outline-offset: 3px; }

/* Mobile is reflowed rather than shrinking desktop text to illegible sizes. */
@media (max-width: 620px) {
  .page-viewport { width: 100% !important; height: auto !important; }
  .artboard { width: 100%; height: auto; transform: none !important; overflow: visible; }
  .hero { position: relative; width: 100%; height: 440px; }
  .grid-line { height: 440px; }
  .left-line { left: 10%; }
  .right-line { left: 90%; }
  .topbar { width: 100%; height: 67px; }
  .brand { left: 20px; top: 20px; transform: scale(1.8); transform-origin: left top; }
  .site-nav { display: none; }
  .top-cta { right: 20px; top: 15px; height: 34px; width: 100px; font-size: 12px; }
  .outer-ring { top: 88px; left: 50%; transform: translateX(-50%) scale(1.18); }
  .middle-ring { top: 114px; left: 50%; transform: translateX(-50%) scale(1.18); }
  .inner-ring { top: 140px; left: 50%; transform: translateX(-50%) scale(1.18); }
  .eyebrow {
    top: 122px;
    left: 50%;
    transform: translateX(-50%);
    width: 191px;
    height: 28px;
    gap: 9px;
    border-width: 1px;
  }
  .eyebrow span:first-child { font-size: 10px; }
  .eyebrow-arrow { font-size: 13px; }
  .hero h1 {
    left: 16px;
    top: 188px;
    width: calc(100% - 32px);
    height: auto;
    font-size: clamp(29px, 8.5vw, 42px);
    line-height: 1;
    letter-spacing: -1.8px;
    white-space: normal;
  }
  .hero-primary {
    left: calc(50% - 144px);
    top: 302px;
    width: 150px;
    height: 43px;
    font-size: 11px;
    border-width: 3px;
    gap: 10px;
  }
  .hero-primary .arrow { font-size: 15px; }
  .hero-secondary {
    top: 317px;
    left: calc(50% + 19px);
    font-size: 11px;
  }
  .partners {
    top: 394px;
    width: 100%;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 17px;
    overflow: visible;
  }
  .partner-logo {
    position: relative;
    left: auto !important;
    top: 0;
    height: 18px;
    flex: 0 0 auto;
    transform: scale(1.25);
    transform-origin: center;
  }
  .feature-cards {
    position: relative;
    top: auto;
    width: 100%;
    height: auto;
    overflow: visible;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 18px;
  }
  .balance-card, .friends-card {
    position: relative;
    left: auto;
    top: auto;
    flex: none;
    width: 100%;
    height: auto;
    border-radius: 20px;
  }
  .balance-card { aspect-ratio: 161 / 146; }
  .friends-card { aspect-ratio: 270 / 146; }
  .portrait-sprite {
    left: -8.7%;
    top: -150.68%;
    width: 287.58%;
    height: 407.53%;
  }
  .friends-sprite {
    left: -66.3%;
    top: -150.68%;
    width: 171.48%;
    height: 407.53%;
  }
  .balance-label {
    left: 14px;
    top: auto;
    bottom: 16px;
    transform: scale(1.8);
    transform-origin: bottom left;
  }
  .month-button {
    left: auto;
    right: 15px;
    top: 17px;
    transform: scale(1.8);
    transform-origin: top right;
  }
  .month-options {
    top: 52px;
    left: auto;
    right: 15px;
    transform: scale(1.5);
    transform-origin: top right;
  }
  .transactions {
    left: auto;
    right: 12px;
    top: auto;
    bottom: 12px;
    transform: scale(1.6);
    transform-origin: bottom right;
  }
  .world { position: relative; top: auto; width: 100%; height: 640px; overflow: visible; }
  .world-eyebrow {
    top: 53px;
    left: 10%;
    width: 80%;
    font-size: 10px;
    line-height: 13px;
  }
  .world h2 {
    top: 84px;
    left: 10px;
    width: calc(100% - 20px);
    font-size: clamp(30px, 8vw, 39px);
    line-height: 1.05;
    letter-spacing: -1.9px;
  }
  .world-description {
    top: 184px;
    left: 8%;
    width: 84%;
    font-size: 11.5px;
    line-height: 17px;
  }
  .desktop-break { display: none; }
  .transfer-panel {
    top: 260px;
    left: 18px;
    width: calc(100% - 36px);
    height: 343px;
    border-radius: 12px;
  }
  .transfer-card {
    left: 50%;
    top: 56px;
    transform: translateX(-50%);
    width: 228px;
    height: 106px;
    padding: 15px;
    border-radius: 12px;
  }
  .transfer-label { font-size: 12px; line-height: 16px; }
  .transfer-controls { left: 15px; right: 15px; top: 43px; height: 42px; }
  .transfer-controls button { width: 27px; height: 27px; flex-basis: 27px; font-size: 16px; }
  .amount-display span:first-child { font-size: 18px; line-height: 29px; }
  .amount-display span:last-child { font-size: 37px; line-height: 39px; }
  .recipient-card {
    left: 50%;
    top: 173px;
    transform: translateX(-50%);
    width: 228px;
    height: 104px;
    padding: 18px 15px;
    font-size: 13px;
    border-radius: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0s !important; }
}
/* Keep editable overlays precisely aligned with baked photo composites on mobile. */
@media (max-width: 620px) {
  .month-button {
    left: 72.67%;
    right: auto;
    top: 6.85%;
    width: 21.74%;
    height: 8.90%;
    transform: none;
    gap: 8px;
    font-size: 9px;
  }
  .month-options {
    left: auto;
    right: 5.5%;
    top: 17%;
    transform: none;
    width: 92px;
  }
  .month-options button { font-size: 11px; padding: 9px; }
  .balance-label {
    left: 4.97%;
    top: 72.60%;
    bottom: auto;
    width: 34.16%;
    height: 22.60%;
    padding: 12px 0 0 10px;
    border-radius: 11px;
    gap: 10px;
    transform: none;
  }
  .balance-label strong {
    font-size: clamp(14px, 5vw, 19px);
    line-height: 22px;
    letter-spacing: -.9px;
  }
  .balance-label span { font-size: 9.6px; line-height: 11px; }
  .transactions {
    left: 62.59%;
    right: auto;
    top: 60.27%;
    bottom: auto;
    width: 33.70%;
    height: 35.62%;
    padding: 9px 9px 0;
    border-radius: 13px;
    transform: none;
  }
  .transactions h2 { font-size: 7px; line-height: 10px; }
  .transaction-row { margin-top: 12px; font-size: 4.7px; line-height: 6px; }
  .transaction-row span:first-child { font-size: 5px; }
  .transaction-row.meta { margin-top: 10px; font-size: 4.5px; line-height: 6px; }
  .transaction-row.meta span:first-child { font-size: 4.4px; }
}
