/* Financy landing page — matches the app's corporate-light palette
   (see internal/ui/style/style.go). */
:root {
  --bg:        #ececec;
  --surface:   #ffffff;
  --surface-hi:#e6e8eb;
  --alt-row:   #f5f6f7;
  --border:    #bfc4c9;
  --text:      #1c2024;
  --text-dim:  #5b6269;
  --primary:   #0a5fa4;
  --primary-d: #084b82;
  --positive:  #157347;
  --negative:  #b02a37;
  --radius:    10px;
  --shadow:    0 1px 2px rgba(28, 32, 36, .06), 0 8px 24px rgba(28, 32, 36, .08);
  --wrap:      1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  background: var(--surface-hi);
  padding: .1em .4em;
  border-radius: 5px;
  font-size: .9em;
}

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

/* ---- top bar ---- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 58px; }
.brand { font-weight: 700; font-size: 1.15rem; color: var(--text); }
.brand:hover { text-decoration: none; }
.nav { display: flex; gap: 26px; align-items: center; }
.nav a { color: var(--text-dim); font-size: .95rem; font-weight: 500; }
.nav a:hover { color: var(--text); text-decoration: none; }
.nav .ghlink { color: var(--primary); }

/* ---- hero ---- */
.hero {
  background:
    radial-gradient(1200px 400px at 50% -120px, rgba(10, 95, 164, .12), transparent 70%),
    linear-gradient(180deg, #fbfcfd 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
  padding: 72px 0 0;
  text-align: center;
}
.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.12;
  letter-spacing: -.02em;
  margin: 0 auto 18px;
  max-width: 16ch;
}
.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  color: var(--text-dim);
  max-width: 60ch;
  margin: 0 auto 30px;
}
.lede strong { color: var(--text); }
.platforms { color: var(--text-dim); font-size: .9rem; margin-top: 16px; }

.eyebrow {
  display: inline-block;
  color: var(--primary);
  background: rgba(10, 95, 164, .10);
  border: 1px solid rgba(10, 95, 164, .22);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .01em;
  margin-bottom: 22px;
}

.cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-center { margin-top: 28px; }

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid transparent;
  transition: transform .04s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow);
}
.btn-primary:hover { background: var(--primary-d); }
.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--surface-hi); }
.btn-lg { padding: 14px 30px; font-size: 1.05rem; }

.shot-frame {
  margin: 52px auto 0;
  max-width: 1100px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 10px 10px 0;
  overflow: hidden;
}
.shot-frame img { display: block; width: 100%; height: auto; border-radius: 6px 6px 0 0; }

/* ---- values / trust strip ---- */
.values {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 26px 0;
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.value { display: flex; gap: 12px; align-items: flex-start; }
.value-ico { font-size: 1.5rem; line-height: 1.2; }
.value strong { display: block; font-size: .98rem; margin-bottom: 2px; }
.value span { color: var(--text-dim); font-size: .88rem; line-height: 1.45; }
.value code { font-size: .82em; }

/* ---- sections ---- */
.section { padding: 76px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-title {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  letter-spacing: -.01em;
  text-align: center;
  margin: 0 0 10px;
}
.section-sub {
  text-align: center;
  color: var(--text-dim);
  max-width: 56ch;
  margin: 0 auto 44px;
  font-size: 1.02rem;
}
.badge {
  display: inline-block;
  vertical-align: middle;
  font-size: .62em;
  font-weight: 600;
  color: var(--primary);
  background: rgba(10, 95, 164, .10);
  border: 1px solid rgba(10, 95, 164, .22);
  border-radius: 999px;
  padding: 3px 10px;
  margin-left: 8px;
  letter-spacing: .02em;
}

/* ---- feature grid ---- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
}
.card .ico { font-size: 1.7rem; margin-bottom: 10px; }
.card h3 { margin: 0 0 8px; font-size: 1.12rem; }
.card p { margin: 0; color: var(--text-dim); font-size: .96rem; }
.card em { color: var(--text); font-style: normal; font-weight: 600; }

/* ---- screenshots ---- */
.shots {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.shot { margin: 0; }
.shot img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.shot figcaption { color: var(--text-dim); font-size: .9rem; margin-top: 12px; text-align: center; }

/* ---- mobile screenshots ---- */
.phones {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 22px;
}
.phone { margin: 0; }
.phone img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  background: #000;
}
.phone figcaption { color: var(--text-dim); font-size: .86rem; margin-top: 10px; text-align: center; font-weight: 500; }

/* ---- install ---- */
.install-inner { text-align: center; }
.install-lede { color: var(--text-dim); max-width: 60ch; margin: -22px auto 40px; }
.install-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: left;
}
.install-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 22px;
}
.install-card h3 { margin: 0 0 8px; font-size: 1.1rem; }
.install-card p { margin: 0; color: var(--text-dim); font-size: .95rem; }
.build-note { color: var(--text-dim); font-size: .9rem; margin-top: 22px; }

/* ---- footer ---- */
.footer { border-top: 1px solid var(--border); background: var(--surface); padding: 28px 0; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--text-dim);
  font-size: .9rem;
}

/* ---- responsive ---- */
@media (max-width: 980px) {
  .phones { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .install-grid { grid-template-columns: 1fr 1fr; }
  .values-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .nav { gap: 16px; }
  .nav a:not(.ghlink) { display: none; }
  .grid, .shots { grid-template-columns: 1fr; }
  .install-grid { grid-template-columns: 1fr; }
  .phones { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 56px 0; }
  .hero { padding-top: 52px; }
}
