/* trackgelt.com — hand-built recreation of the Gelt Framer page.
   Breakpoints match the original: desktop >= 1200, tablet 810–1199, phone < 810. */

@font-face {
  font-family: "Circular Std";
  src: url("/assets/fonts/circular-std-book.woff2") format("woff2");
  font-weight: 450;
  font-display: swap;
}
@font-face {
  font-family: "Circular Std";
  src: url("/assets/fonts/circular-std-medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --bg: #f3f3f3;
  --ink: #000;
  --ink-2: #1e1e1e;
  --muted: rgba(0, 0, 0, 0.6);
  --line: #e6e6e6;
  --red: #eb4c60;
  --green: #00b787;
  --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Circular Std", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-weight: 450;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img { display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3 { font-weight: inherit; }

.wrap {
  width: calc(100% - 28px);
  max-width: 872px;
  margin: 0 auto;
}

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  height: 68px;
  color: #000;
  animation: fade-in 0.6s linear both;
  transition: color 0.3s ease;
}
.nav__bg {
  position: absolute;
  inset: 0;
  background: rgba(243, 243, 243, 0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.nav__inner {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo { display: block; width: 56px; height: 23px; }
.nav__logo svg { display: block; }
.nav__cta {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.02em;
  transition: opacity 0.2s ease;
}
.nav__cta:hover { opacity: 0.6; }
.nav__arrow { display: block; }
.nav.is-dark { color: #fff; }
.nav.is-dark .nav__bg {
  background: rgba(0, 0, 0, 0.95);
  border-color: rgba(255, 255, 255, 0.12);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding-top: 172px;
  border-bottom: 1px solid var(--line);
}
.hero__inner { position: relative; z-index: 1; }

.hero__content {
  padding-top: 32px;
  text-align: center;
  animation: fade-in 0.6s linear 0.1s both;
}
.hero__content h1 {
  font-size: 68px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.04em;
}
.hero__content p {
  max-width: 500px;
  margin: 32px auto 0;
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--muted);
}
.stores {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}
.store { display: block; height: 40px; transition: opacity 0.2s ease; }
.store:hover { opacity: 0.8; }
.store--apple { width: 120px; padding: 1px 0 0 1px; }
.store--google img { width: 134px; height: 40px; }

.hero__stage {
  position: relative;
  height: 688px;
  margin-top: 60px;
  overflow: hidden;
  animation: fade-in 0.6s linear 0.2s both;
}

.coin {
  position: absolute;
  filter: hue-rotate(340deg);
  will-change: transform;
}
.coin--left { width: 356px; height: 356px; left: calc(23.05% - 178px); top: 49px; }
.coin--right { width: 322px; height: 322px; left: calc(77.98% - 161px); top: 327px; }

.hero-phone {
  --s: 1;
  position: absolute;
  top: 20px;
  left: 50%;
  width: calc(358px * var(--s));
  height: calc(732px * var(--s));
  margin-left: calc(-179px * var(--s));
  will-change: transform;
}
.hero-phone__frame { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-phone__screen {
  position: absolute;
  left: calc(14px * var(--s));
  top: calc(8px * var(--s));
  width: 330px;
  height: 715px;
  transform: scale(var(--s));
  transform-origin: 0 0;
  border-radius: 30px;
  background: #fff;
  overflow: hidden;
}

/* The app screen inside the hero phone, laid out at 330 × 715. */
.app { position: relative; width: 100%; height: 100%; color: var(--ink-2); }
.app > * { position: absolute; }
.app__menu { left: 18px; top: 68px; width: 14px; height: 9px; }
.app__project {
  left: 53px; top: 63px;
  display: flex; align-items: center; gap: 3px;
  font-size: 15px; line-height: 18px; font-weight: 500; color: #000;
}
.app__project img { width: 15px; height: 15px; }
.app__chart { left: 293px; top: 63px; width: 18px; height: 18px; }

.app__profit-label { left: 22px; top: 111px; }
.app__profit-label,
.app__stat-label {
  font-size: 11px; line-height: 13.2px; color: rgba(30, 30, 30, 0.6);
}
.app__profit {
  left: 17px; top: 124px;
  display: flex; align-items: baseline;
  font-size: 43px; line-height: 51.6px; font-weight: 500; white-space: nowrap;
}
.app__profit-mid { letter-spacing: -0.02em; color: #000; }
.app__profit-cents { margin-left: 1px; font-size: 23px; line-height: 27.6px; color: rgba(30, 30, 30, 0.4); }

.app__stat { top: 213px; }
.app__stat--income { left: 16px; }
.app__stat--expenses { left: 173px; }
.app__stat-label { display: flex; align-items: center; gap: 5px; padding-left: 3px; }
.app__stat-label img { width: 8px; height: 8px; }
.app__stat-value { margin-top: 5px; font-size: 23px; line-height: 27.6px; font-weight: 500; }

.app__panel {
  left: 0; top: 281px;
  width: 330px; height: 667px;
  border-radius: 13px;
  overflow: hidden;
}
.app__panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 16px 0 18px;
  font-size: 12px; line-height: 14.4px; font-weight: 500; color: #717171;
}
.app__panel-head img { width: 19px; height: 14px; }
.app__list { margin-top: 25px; }
.app__list li {
  position: relative;
  display: flex; align-items: flex-start;
  height: 70px;
  padding: 20px 18px 0;
}
.app__icon {
  display: flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; margin-top: 6px; flex: none;
}
.app__icon img { max-width: 18px; max-height: 18px; }
.app__tx { display: flex; flex-direction: column; margin-left: 19px; }
.app__tx b { font-size: 14px; line-height: 16.8px; font-weight: 500; color: var(--ink-2); }
.app__tx small { font-size: 11px; line-height: 13.2px; color: #b5b5b5; }
.app__amt { margin-left: auto; margin-top: 7px; font-size: 14px; line-height: 16.8px; font-weight: 500; }
.app__amt.is-out { color: var(--red); }
.app__amt.is-in { color: var(--green); }

.app__add {
  left: 265px; top: 601px;
  width: 46px; height: 46px; border-radius: 50%;
  background: #000;
  display: flex; align-items: center; justify-content: center;
}
.app__add img { width: 21px; height: 21px; }
.app__home { left: 106px; top: 697px; width: 118px; height: 4px; border-radius: 15px; background: #000; }

/* Coloured glow along the bottom of the hero. */
.hero__glow {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 667px;
  overflow: clip;
  pointer-events: none;
}
.hero__glow-row {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(1200px, 100%);
  height: 127px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero__glow-row span {
  flex: var(--grow) 1 0;
  height: var(--h);
  background: var(--c);
  filter: blur(var(--blur));
}

/* ---------- Intro ---------- */

.intro { position: relative; overflow: hidden; padding-top: 128px; }
.intro__text { text-align: center; }
.intro__text h2 {
  max-width: 436px;
  margin: 0 auto;
  font-size: 48px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.intro__text p {
  max-width: 500px;
  margin: 10px auto 0;
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--muted);
}

.reveal-words .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 1.2s var(--ease-out), transform 1.2s var(--ease-out);
  transition-delay: calc(var(--i) * 25ms);
}
.reveal-words.is-in .word { opacity: 1; transform: none; }

.intro__stage {
  position: relative;
  height: 660px;
  margin-top: 164px;
}
.intro-phone {
  --s: 1;
  position: absolute;
  top: 0;
  left: 50%;
  width: calc(324px * var(--s));
  height: calc(661px * var(--s));
  margin-left: calc(-162px * var(--s));
}
.intro-phone__frame {
  position: absolute;
  left: calc(1px * var(--s)); top: 0;
  width: calc(323px * var(--s)); height: calc(660px * var(--s));
}
.intro-phone__screen {
  position: absolute;
  left: calc(12px * var(--s));
  top: calc(6px * var(--s));
  width: 300px;
  height: 650px;
  transform: scale(var(--s));
  transform-origin: 0 0;
  border-radius: 30px;
  background: var(--bg);
}
.intro-phone__screen img { position: absolute; left: 100px; top: 337px; width: 100px; height: 42px; }

.glass {
  position: absolute;
  z-index: 1;
  background: rgba(255, 255, 255, 0.76);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  transition: opacity 0.8s var(--ease-spring), transform 0.8s var(--ease-spring);
}
.glass img { position: absolute; }
.glass--expense { left: calc(50% - 458px); top: 148px; width: 376px; height: 298px; --from: translateX(-60px); }
.glass--expense img { left: 24px; top: 24px; width: 319px; height: 250px; }
.glass--chart { left: calc(50% + 79px); top: 105px; width: 434px; height: 200px; --from: translateX(40px); }
.glass--chart img { left: 24px; top: 25px; width: 386px; height: 151px; }
.glass--profit { left: calc(50% + 96px); top: 412px; width: 268px; height: 200px; }
.glass--profit .glass__square { left: 27px; top: 24px; width: 214px; height: 152px; }
.glass--profit .glass__wide { display: none; }

.js .glass--expense, .js .glass--chart { opacity: 0; transform: var(--from); }
.js .glass.is-in { opacity: 1; transform: none; }

/* ---------- Benefits + features (features slides up over the pinned benefits) ---------- */

.stack { position: relative; padding-top: 164px; }

.benefits {
  position: sticky;
  top: 0;
  z-index: 1;
  height: 100vh;
}
.benefits h2,
.features h2 {
  font-size: 48px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-align: center;
}
.benefits__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 23px 24px;
  margin-top: 44px;
}
.benefit {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 306px;
  padding: 32px;
  border-radius: 20px;
  background: #fff;
}
.benefit__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--tint);
}
.benefit__icon i {
  width: 28px;
  height: 28px;
  background: var(--ink);
  -webkit-mask: var(--glyph) center / contain no-repeat;
  mask: var(--glyph) center / contain no-repeat;
}
.benefit__icon img { width: 28px; height: 28px; }
.benefit__text h3 {
  font-size: 23px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.benefit__text p {
  margin-top: 12px;
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--muted);
}

.features {
  position: relative;
  z-index: 2;
  padding-top: 128px;
  border-radius: 40px 40px 0 0;
  background: #000;
  color: #fff;
  overflow: hidden;
}
.features h2 { max-width: 442px; margin: 0 auto; }
.features__image { margin-top: 42px; display: flex; justify-content: center; }
.features__image img { width: 656px; height: 688px; flex: none; }

/* ---------- Tablet ---------- */

@media (max-width: 1199.98px) {
  .intro__inner, .benefits__inner { width: calc(100% - 72px); max-width: 828px; }
  .glass--expense { left: calc(50% - 420px); width: 360px; }
  .glass--chart { left: calc(50% + 65px); top: 104px; }
  .glass--profit { left: calc(50% + 84px); top: 412px; --from: translateY(40px); }
  .js .glass--profit { opacity: 0; transform: var(--from); }
  .js .glass--profit.is-in { opacity: 1; transform: none; }
  .benefit { min-height: 326px; }
  .features { border-radius: 32px 32px 0 0; }
  .features__image { margin-top: 41px; }
  .features__image img { width: 687px; height: 720px; }
}

/* ---------- Phone ---------- */

@media (max-width: 809.98px) {
  .wrap,
  .intro__inner,
  .benefits__inner { width: calc(100% - 40px); }

  .hero { padding-top: 152px; }
  .hero__content { padding-top: 28px; }
  .hero__content h1 { font-size: 44px; }
  .hero__content p { max-width: 350px; margin-top: 28px; font-size: 19px; }
  .stores { margin-top: 28px; }

  .hero__stage { height: 600px; margin: 48px -20px 0; }
  .coin--left { width: 276px; height: 276px; left: calc(13.08% - 138px); top: 48px; }
  .coin--right { width: 215px; height: 215px; left: calc(93.97% - 107.5px); top: 331px; }
  .hero-phone { --s: 0.8939; top: 4px; }

  .intro { padding-top: 72px; }
  .intro__text h2 { max-width: 350px; font-size: 39px; }
  .intro__text p { max-width: 350px; font-size: 19px; }
  .intro__stage { height: 556px; margin-top: 64px; }
  .intro-phone { --s: 0.7778; top: 42px; }

  .glass { border-radius: 12px; }
  .glass--expense { display: none; }
  .glass--chart { left: calc(50% - 265px); top: 66px; width: 426px; height: 191px; --from: translateX(-40px); }
  .glass--chart img { left: 20px; top: 20px; }
  .glass--profit { left: calc(50% - 64px); top: 358px; width: 275px; height: 160px; }
  .glass--profit .glass__square { display: none; }
  .glass--profit .glass__wide { display: block; left: 17px; top: 20px; width: 242px; height: 116px; }

  .stack { padding-top: 0; }
  .benefits { position: relative; height: auto; padding: 128px 0 64px; }
  .benefits h2, .features h2 { font-size: 39px; }
  .benefits__grid { grid-template-columns: 1fr; gap: 16px; margin-top: 36px; }
  .benefit { min-height: 228px; padding: 24px; border-radius: 16px; }
  .benefit__icon { width: 44px; height: 44px; border-radius: 8px; }
  .benefit__icon i, .benefit__icon img { width: 24px; height: 24px; }
  .benefit__text h3 { font-size: 19px; line-height: 1.3; }
  .benefit__text p { margin-top: 7px; font-size: 16px; }

  .features { padding-top: 64px; border-radius: 20px 20px 0 0; }
  .features h2 { max-width: 350px; padding: 0 20px; box-sizing: content-box; margin: 0 auto; }
  .features__image { margin-top: 42px; }
  .features__image img { width: 644px; height: 675px; }
}

@media (prefers-reduced-motion: reduce) {
  .nav, .hero__content, .hero__stage { animation: none; }
  .reveal-words .word, .js .glass { opacity: 1 !important; transform: none !important; transition: none; }
}
