/* ===========================================================================
   1st Finance App — marketing site
   Palette sampled directly from the logo files so the site and the logo can't
   drift: pure black canvas, neon lime accent, white type.
   =========================================================================== */

:root {
  --bg:          #000000;
  --surface:     #0B0F0A;
  --surface-2:   #111811;
  --border:      #1E2C18;
  --border-soft: #162014;

  --lime:        #A4E940;   /* primary accent, sampled from the mark   */
  --lime-bright: #B8FF52;   /* highlight / hover                       */
  --green:       #3DBF3D;   /* mid ramp, chart bars                    */
  --green-deep:  #046C24;   /* deepest ramp                            */

  --ink:         #FFFFFF;
  --ink-soft:    #D7E3D1;
  --muted:       #93A78B;

  --radius:      16px;
  --radius-lg:   24px;
  --maxw:        1120px;

  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body:    "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--lime); text-decoration: none; }
a:hover { color: var(--lime-bright); }

/* Visible focus everywhere — keyboard users should never lose their place. */
:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--lime); color: #000;
  padding: 12px 18px; font-weight: 600; z-index: 100;
}
.skip:focus { left: 12px; top: 12px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
h1 { font-size: clamp(38px, 7vw, 68px); }
h2 { font-size: clamp(28px, 4.4vw, 42px); }
h3 { font-size: 20px; letter-spacing: -0.01em; }
p  { margin: 0 0 18px; color: var(--ink-soft); }

.lime  { color: var(--lime); }
.muted { color: var(--muted); }

/* ---------------------------------------------------------------- nav ---- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(0,0,0,0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
}
.nav-inner {
  display: flex; align-items: center; gap: 16px;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand img { width: 34px; height: 34px; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700; font-size: 17px; letter-spacing: 0.01em;
  color: var(--ink); white-space: nowrap;
}
.brand-name b { color: var(--lime); font-weight: 700; }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.nav-links a.navlink {
  color: var(--ink-soft); font-size: 15px; font-weight: 500;
}
.nav-links a.navlink:hover { color: var(--ink); }

/* Mobile menu button. Hidden on desktop, where the links already fit the row. */
.nav-toggle {
  display: none; margin-left: auto;
  background: transparent; border: 1px solid var(--border); color: var(--ink);
  font-size: 21px; line-height: 1; padding: 7px 14px; border-radius: 12px;
  cursor: pointer;
}
.nav-toggle:hover { border-color: var(--lime); color: var(--lime); }

/* Below 720px the links used to be display:none outright, which left the nav
   unreachable on a phone — the one device this app is mostly used on. They now
   drop out of the header as a panel instead. The panel hangs off .nav, which is
   sticky and therefore already a containing block. */
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    margin-left: 0; flex-direction: column; align-items: stretch; gap: 2px;
    background: rgba(0,0,0,.97); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-soft);
    padding: 8px 22px 18px;
  }
  .nav-links.open { display: flex; }
  .nav-links a.navlink { padding: 11px 0; font-size: 16px; }
  .nav-links .btn { margin-top: 10px; align-self: flex-start; }
}

/* -------------------------------------------------------------- buttons -- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-body); font-weight: 600; font-size: 16px;
  padding: 13px 24px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .14s ease, background .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--lime); color: #04120A;
  box-shadow: 0 0 0 1px rgba(184,255,82,.25), 0 10px 34px -12px rgba(164,233,64,.65);
}
.btn-primary:hover { background: var(--lime-bright); color: #04120A; transform: translateY(-1px); }
.btn-ghost {
  background: transparent; color: var(--ink);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--lime); color: var(--lime); }
.btn-sm { padding: 9px 18px; font-size: 14.5px; }

/* ---------------------------------------------------------------- hero --- */
.hero { position: relative; padding: 84px 0 72px; overflow: hidden; }
.hero::before {
  /* the logo's neon halo, echoed behind the headline */
  content: ""; position: absolute; inset: -30% 20% 40% -10%;
  background: radial-gradient(60% 50% at 30% 40%, rgba(164,233,64,.16), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
}
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero { padding: 56px 0 56px; }
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 500;
  font-size: 12.5px; letter-spacing: .17em; text-transform: uppercase;
  color: var(--lime);
  border: 1px solid var(--border); background: var(--surface);
  padding: 7px 15px; border-radius: 999px; margin-bottom: 22px;
}
.hero p.lede { font-size: 19px; max-width: 30em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 26px; }
.hero-note { margin-top: 18px; font-size: 14.5px; color: var(--muted); }
/* The sample-budget link is deliberately a link and not a third button — a
   third pill would flatten the choice between starting and touring. */
.hero-sample { margin: 15px 0 0; font-size: 15px; }
.hero-sample a { border-bottom: 1px solid rgba(164,233,64,.35); }
.hero-sample a:hover { border-bottom-color: var(--lime-bright); }

/* ------------------------------------------------------- device frames -- */
/* Real captures of the app in dark mode. The frame is chrome only — the
   screenshot inside is untouched. */
.phone {
  position: relative; width: 100%; max-width: 332px; margin: 0 auto;
  background: linear-gradient(170deg, #12180F, #070A06);
  border: 2px solid #223018; border-radius: 42px;
  padding: 10px;
  box-shadow: 0 0 0 1px rgba(164,233,64,.10), 0 40px 90px -30px rgba(164,233,64,.35);
}
.phone img { width: 100%; height: auto; border-radius: 33px; display: block; }

/* screenshot strip */
.shots {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: start;
}
@media (max-width: 860px) {
  .shots { grid-template-columns: 1fr; max-width: 330px; margin: 0 auto; gap: 42px; }
}
.shot figure { margin: 0; }
.shot .phone { max-width: 300px; }
.shot figcaption {
  margin-top: 18px; text-align: center;
  font-size: 15px; color: var(--muted);
}
.shot figcaption b {
  display: block; font-family: var(--font-display); font-weight: 700;
  font-size: 17px; color: var(--ink); margin-bottom: 4px;
}

/* ---------------------------------------------------------- demo video -- */
/* A real screen recording of the app, not a mockup. Autoplays muted and loops so
   it reads as a moving screenshot rather than something you have to press play on. */
.demo { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
@media (max-width: 900px) { .demo { grid-template-columns: 1fr; gap: 34px; } }
.demo .phone { max-width: 318px; }
.demo video { width: 100%; height: auto; border-radius: 33px; display: block; background: #0A100B; }
.demo-steps { margin: 24px 0 0; padding: 0; list-style: none; counter-reset: d; }
.demo-steps li {
  counter-increment: d; display: flex; gap: 13px; align-items: baseline;
  font-size: 16.5px; color: var(--ink-soft); margin-bottom: 11px;
}
.demo-steps li::before {
  content: counter(d); flex: 0 0 auto;
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(164,233,64,.12); border: 1px solid rgba(164,233,64,.3);
  color: var(--lime); font-family: var(--font-display); font-weight: 700;
  font-size: 12px; display: grid; place-items: center; transform: translateY(3px);
}

/* ----------------------------------------------------------- launch alert -- */
/* Secondary to the main CTA on purpose — it's for people who like the idea but
   aren't going to start budgeting at this exact moment. */
.alert-box {
  max-width: 460px; margin: 34px auto 0; padding-top: 26px;
  border-top: 1px solid var(--border-soft); text-align: left;
}
.alert-box .alert-head {
  font-family: var(--font-display); font-weight: 700; font-size: 16.5px;
  color: var(--ink); margin-bottom: 4px; text-align: center;
}
.alert-box .alert-sub {
  font-size: 14px; color: var(--muted); margin: 0 0 16px; text-align: center;
}
.alert-fields { display: grid; grid-template-columns: 1fr 1.35fr; gap: 10px; }
@media (max-width: 520px) { .alert-fields { grid-template-columns: 1fr; } }
.alert-box input[type="text"], .alert-box input[type="email"] {
  width: 100%; font-family: var(--font-body); font-size: 15px;
  padding: 12px 15px; border-radius: 12px;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--border); outline: none;
}
.alert-box input::placeholder { color: var(--muted); }
.alert-box input:focus-visible { border-color: var(--lime); }
.alert-box button { width: 100%; margin-top: 10px; }
.alert-fine { font-size: 12.5px; color: var(--muted); margin: 12px 0 0; text-align: center; }
.alert-msg { font-size: 14.5px; margin: 12px 0 0; text-align: center; min-height: 1.2em; }
.alert-msg.ok { color: var(--lime); }
.alert-msg.bad { color: #FF8A6A; }
.alert-msg a { text-decoration: underline; }
/* Honeypot: real people never see or fill this. */
.alert-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --------------------------------------------------------------- founder -- */
.founder { max-width: 780px; }
.founder-card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border-soft); border-radius: var(--radius-lg);
  padding: 36px 34px;
}
@media (max-width: 620px) { .founder-card { padding: 28px 24px; } }
.founder-card p { font-size: 17.5px; line-height: 1.7; }
.founder-card p:last-of-type { margin-bottom: 0; }
.founder-sign {
  display: flex; align-items: center; gap: 14px;
  margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--border-soft);
}
.founder-sign img {
  width: 46px; height: 46px; border-radius: 50%; flex: 0 0 auto;
  border: 1px solid var(--border);
}
.founder-sign .who {
  font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--ink);
}
.founder-sign .role { font-size: 14px; color: var(--muted); }

/* --------------------------------------------------------------- install -- */
.install-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 760px) { .install-cols { grid-template-columns: 1fr; } }
.install-card {
  background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg); padding: 28px 26px;
}
.install-card h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.install-card h3 svg { width: 20px; height: 20px; stroke: var(--lime); fill: none; stroke-width: 2; flex: 0 0 auto; }
.install-card .sub { font-size: 14px; color: var(--muted); margin: 0 0 20px; }
.install-steps { margin: 0; padding: 0; list-style: none; counter-reset: i; }
.install-steps li {
  counter-increment: i; display: flex; gap: 12px; align-items: flex-start;
  font-size: 16px; color: var(--ink-soft); margin-bottom: 12px; line-height: 1.5;
}
.install-steps li::before {
  content: counter(i); flex: 0 0 auto;
  width: 23px; height: 23px; border-radius: 50%;
  background: var(--lime); color: #04120A;
  font-family: var(--font-display); font-weight: 700; font-size: 12px;
  display: grid; place-items: center; transform: translateY(1px);
}
.install-steps b { color: var(--ink); }
.install-note {
  margin-top: 28px; font-size: 15px; color: var(--muted);
  border-left: 2px solid var(--border); padding-left: 16px;
}
.install-note b { color: var(--ink-soft); }

/* ------------------------------------------------------------- sections -- */
section { padding: 74px 0; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head p { font-size: 18px; margin-bottom: 0; }

.rule { height: 1px; background: var(--border-soft); border: 0; margin: 0; }

/* two-input explainer */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg); padding: 28px 26px;
}
.step .num {
  font-family: var(--font-display); font-weight: 700; font-size: 13px;
  color: #04120A; background: var(--lime);
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; margin-bottom: 16px;
}
.step p { margin-bottom: 0; font-size: 15.5px; }

/* feature grid */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 940px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .features { grid-template-columns: 1fr; } }
.feature {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border-soft); border-radius: var(--radius);
  padding: 26px 24px; transition: border-color .2s ease, transform .2s ease;
}
.feature:hover { border-color: var(--border); transform: translateY(-2px); }
.feature h3 { margin-bottom: 8px; }
.feature p { font-size: 15.5px; margin-bottom: 0; color: var(--muted); }
.feature .ico {
  width: 40px; height: 40px; border-radius: 11px; margin-bottom: 16px;
  display: grid; place-items: center;
  background: rgba(164,233,64,.10); border: 1px solid rgba(164,233,64,.22);
}
.feature .ico svg { width: 20px; height: 20px; stroke: var(--lime); fill: none; stroke-width: 2; }

/* honesty / no-nonsense band */
.band { background: var(--surface); border-block: 1px solid var(--border-soft); }
.checks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 34px; margin: 0; padding: 0; list-style: none; }
@media (max-width: 700px) { .checks { grid-template-columns: 1fr; } }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; color: var(--ink-soft); }
.checks svg { flex: 0 0 auto; width: 21px; height: 21px; margin-top: 2px; stroke: var(--lime); fill: none; stroke-width: 2.4; }

/* Trust strip: three facts, no heading, sitting directly on top of the FAQ.
   Shorter padding than a real section because it isn't one. */
.trust { padding: 44px 0 0; }
.trust-checks { grid-template-columns: repeat(3, 1fr); gap: 16px 30px; font-size: 15.5px; }
@media (max-width: 860px) { .trust-checks { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 780px; }
.faq details {
  border-bottom: 1px solid var(--border-soft); padding: 18px 0;
}
.faq summary {
  cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: 700; font-size: 17.5px;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; color: var(--lime); font-size: 24px; font-weight: 400; line-height: 1;
}
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin: 14px 0 0; font-size: 16px; color: var(--muted); }

/* closing CTA */
.cta-final { text-align: center; position: relative; overflow: hidden; }
.cta-final::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(50% 70% at 50% 100%, rgba(164,233,64,.15), transparent 70%);
  pointer-events: none;
}
.cta-final .wrap { position: relative; }
.cta-final .hero-cta { justify-content: center; }
.tagline {
  font-family: var(--font-display); font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase; font-size: 12.5px;
  color: var(--muted); margin-top: 30px;
}
.tagline b { color: var(--lime); font-weight: 500; }

/* footer */
footer { border-top: 1px solid var(--border-soft); padding: 46px 0 60px; }
.foot { display: flex; flex-wrap: wrap; gap: 26px; align-items: center; }
.foot .brand { margin-right: auto; }
.foot nav { display: flex; flex-wrap: wrap; gap: 22px; }
.foot a { color: var(--muted); font-size: 15px; }
.foot a:hover { color: var(--lime); }
.foot-legal { width: 100%; color: var(--muted); font-size: 13.5px; margin-top: 8px; }

/* --------------------------------------------------------- small screens -- */
/* The phone layout inherited the desktop's air: 74px per section and a hero
   sized for a 1440px window pushed the screenshot — the one thing that shows
   what the app actually is — a full screen below the fold on a 390px phone.
   These reclaim that space without touching the desktop composition. */
@media (max-width: 620px) {
  section { padding: 44px 0; }
  .section-head { margin-bottom: 30px; }
  .section-head p { font-size: 16.5px; }
  h1 { font-size: clamp(30px, 8.5vw, 40px); }
  h2 { font-size: clamp(25px, 6.4vw, 32px); }

  .hero { padding: 26px 0 34px; }
  .hero-grid { gap: 30px; }
  .hero p.lede { font-size: 16.5px; }
  .hero-cta { margin-top: 20px; }
  .hero-sample { margin-top: 12px; font-size: 14.5px; }
  .hero-note { margin-top: 13px; font-size: 13.5px; }

  .trust { padding-top: 34px; }
  footer { padding: 34px 0 46px; }
}

/* At 320px the brand and the menu button shared a fixed-height row they didn't
   both fit in, so the row overflowed instead of giving way. */
/* Below ~520px the wordmark runs under the "Open the app" pill (body's
   overflow-x:hidden was masking the collision, not preventing it). The mark
   alone carries the brand at that size. */
@media (max-width: 520px) {
  .brand-name { display: none; }
}

@media (max-width: 380px) {
  .nav-inner { flex-wrap: wrap; height: auto; padding-block: 12px; gap: 10px; }
  .brand img { width: 30px; height: 30px; }
  .btn { padding: 12px 18px; font-size: 15px; }
}

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