/* Nomia — nomia.money
   The app's own language: paper, ink, one calm accent. */

:root {
  --paper: #faf9f6;
  --ink: #23242a;
  --muted: #5c5f66;
  --faint: #74777e;
  --hair: #e8e6e1;
  --accent: #5b7b9e;
  --pos: #5b8a6b;
  --neg: #d92d20;
  --card: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: "Hanken Grotesk", -apple-system, system-ui, sans-serif;
  background: var(--paper) url("watermark.svg") repeat;
  background-size: 600px 600px;
  background-attachment: fixed;
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.display { font-family: "Bricolage Grotesque", "Hanken Grotesk", sans-serif; }

.wrap { max-width: 980px; margin: 0 auto; padding: 0 24px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- header ---------- */
header {
  padding: 22px 0;
  border-bottom: 1px solid var(--hair);
  background: var(--paper);
  position: relative; z-index: 5;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--ink); color: #fff;
  display: grid; place-items: center;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800; font-size: 20px;
  flex: none;
}
.mark.big { width: 64px; height: 64px; border-radius: 19px; font-size: 38px; margin: 0 auto 22px; }
.brand-name { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 21px; letter-spacing: -0.02em; }
nav { display: flex; gap: 22px; align-items: center; }
nav a { color: var(--muted); text-decoration: none; font-size: 14.5px; font-weight: 600; }
nav a:hover, nav a:focus-visible { color: var(--ink); }
nav a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.nav-cta {
  color: #fff !important; background: var(--ink);
  padding: 8px 16px; border-radius: 999px;
}
.nav-cta:hover { background: #000; }
@media (max-width: 560px) { .nav-cta { display: none; } }

/* ---------- hero ---------- */
.hero { padding: 72px 0 64px; position: relative; }
.hero-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: 48px; align-items: center;
}
@media (max-width: 840px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero { padding-top: 52px; }
}
.hero-copy h1 {
  font-size: clamp(40px, 6.5vw, 62px);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.06;
}
.tagline { margin-top: 18px; font-size: 18px; color: var(--muted); max-width: 480px; }

/* waitlist form */
.waitlist-form {
  margin-top: 30px; display: flex; gap: 10px; max-width: 460px; flex-wrap: wrap;
}
.waitlist-form.center { margin-left: auto; margin-right: auto; justify-content: center; }
.waitlist-form input[type="email"] {
  flex: 1 1 220px; min-width: 0;
  font: inherit; font-size: 15px;
  padding: 13px 16px;
  border: 1.5px solid var(--hair); border-radius: 13px;
  background: var(--card); color: var(--ink);
}
.waitlist-form input[type="email"]:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(91, 123, 158, 0.15);
}
.waitlist-form button {
  font: inherit; font-size: 15px; font-weight: 700;
  padding: 13px 22px; border: none; border-radius: 13px;
  background: var(--ink); color: #fff; cursor: pointer;
  transition: background 0.15s ease;
}
.waitlist-form button:hover { background: #000; }
.waitlist-form button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.waitlist-form button:disabled { opacity: 0.6; cursor: default; }
.form-note { margin-top: 10px; font-size: 12.5px; color: var(--faint); }
.closing .form-note { text-align: center; }
.form-success { font-size: 15.5px; font-weight: 700; color: var(--pos); padding: 12px 0; }

/* phone mockup */
.hero-phone { display: flex; justify-content: center; }
.phone {
  width: 270px; border-radius: 42px;
  background: #0d0e11; padding: 12px;
  box-shadow: 0 24px 60px rgba(35, 36, 42, 0.28), 0 4px 14px rgba(35, 36, 42, 0.18);
  position: relative;
}
.phone-notch {
  position: absolute; top: 22px; left: 50%; transform: translateX(-50%);
  width: 84px; height: 22px; border-radius: 12px; background: #0d0e11; z-index: 2;
}
.phone-screen {
  border-radius: 32px; background: var(--paper);
  overflow: hidden; padding: 34px 14px 20px;
  min-height: 470px;
}
.mini-header { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 14px; }
.mini-title { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 15px; }
.mini-tabs { display: flex; gap: 14px; font-size: 10.5px; color: var(--faint); }
.mini-tabs b { color: #fff; background: var(--ink); padding: 3px 12px; border-radius: 999px; font-weight: 700; }
.mini-tabs span { padding: 3px 0; }
.mini-hero { text-align: center; margin: 10px 0 16px; }
.mini-eyebrow { display: block; font-size: 8.5px; letter-spacing: 0.12em; color: var(--faint); font-weight: 700; }
.mini-total {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 30px; font-weight: 800; color: var(--pos); letter-spacing: -0.02em;
}
.mini-group {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 10px; margin-top: 6px;
  background: rgba(91, 123, 158, 0.07); border-left: 3px solid var(--accent);
  font-size: 11px; font-weight: 800;
}
.mini-group:has(.b2) { border-left-color: var(--pos); background: rgba(91, 138, 107, 0.07); }
.mini-group:has(.b3) { border-left-color: #9e6fb0; background: rgba(158, 111, 176, 0.07); }
.mini-amt { font-family: "Bricolage Grotesque", sans-serif; }
.mini-row {
  display: flex; justify-content: space-between;
  padding: 6px 10px 6px 20px; font-size: 10.5px; color: var(--muted);
  border-bottom: 1px solid var(--hair); background: var(--card);
}

/* ---------- brand statement band ---------- */
.statement { padding: 84px 0; text-align: center; }
.statement-line {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800; letter-spacing: -0.02em; line-height: 1.25;
}

/* ---------- generic sections ---------- */
.section { padding: 72px 0; }
.kicker {
  font-size: 12.5px; font-weight: 800; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 12px;
}
.section h2 {
  font-size: clamp(26px, 4.4vw, 38px);
  font-weight: 800; letter-spacing: -0.02em; line-height: 1.15;
  max-width: 640px;
}
.section-sub { margin-top: 16px; font-size: 16.5px; color: var(--muted); max-width: 620px; }
.section-sub.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-note { margin-top: 26px; font-size: 13.5px; color: var(--faint); max-width: 620px; }
.section-note a { color: var(--accent); }

.section-split {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: 52px; align-items: center;
}
.section-split.flip { grid-template-columns: 0.9fr 1.1fr; direction: rtl; }
.section-split.flip > * { direction: ltr; }
@media (max-width: 840px) {
  .section-split, .section-split.flip { grid-template-columns: 1fr; direction: ltr; gap: 34px; }
}

.quiet-list { margin-top: 20px; padding-left: 20px; color: var(--muted); font-size: 15px; }
.quiet-list li { margin-bottom: 8px; }

/* ---------- chat demo ---------- */
.chat-demo {
  margin-top: 38px; max-width: 560px;
  display: flex; flex-direction: column; gap: 12px;
}
.chat-demo.slim { margin-top: 24px; }
.bubble {
  padding: 12px 16px; border-radius: 18px;
  font-size: 15px; line-height: 1.5; max-width: 85%;
}
.bubble.user {
  align-self: flex-end;
  background: linear-gradient(180deg, rgba(91, 123, 158, 0.92), var(--accent));
  color: #fff; border-bottom-right-radius: 6px;
  box-shadow: 0 3px 10px rgba(91, 123, 158, 0.25);
}
.bubble.nomia {
  align-self: flex-start;
  background: var(--card); border: 1px solid var(--hair);
  border-bottom-left-radius: 6px;
  display: flex; gap: 10px; align-items: baseline;
}
.nomia-avatar {
  width: 18px; height: 18px; border-radius: 5px; flex: none;
  background: var(--ink); color: #fff;
  display: inline-grid; place-items: center;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 11px; font-weight: 800;
  transform: translateY(2px);
}
.chip-receipt {
  align-self: flex-start; margin-left: 28px;
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--hair);
  border-radius: 12px; padding: 10px 14px;
  width: min(320px, 85%);
}
.chip-seal { color: var(--accent); font-weight: 800; font-size: 13px; }
.chip-table { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.chip-row { display: flex; justify-content: space-between; gap: 14px; font-size: 12.5px; color: var(--muted); }
.chip-row.strong { font-weight: 700; color: var(--ink); font-size: 13px; }

/* ---------- financial world ---------- */
.world {
  margin-top: 34px; display: flex; flex-wrap: wrap; gap: 10px; max-width: 640px;
}
.world-node {
  font-size: 14px; font-weight: 700; color: var(--ink);
  background: var(--card); border: 1px solid var(--hair);
  border-radius: 999px; padding: 9px 18px;
  position: relative;
}
.world-node::after {
  content: ""; position: absolute; right: -8px; top: 50%;
  width: 6px; height: 1.5px; background: var(--hair);
}
.world-node:last-child::after { display: none; }

/* ---------- demo cards (loan / card / memory) ---------- */
.demo-card {
  background: var(--card); border: 1px solid var(--hair); border-radius: 18px;
  padding: 22px 22px 14px;
  box-shadow: 0 10px 30px rgba(35, 36, 42, 0.06);
  max-width: 400px; width: 100%;
  justify-self: center;
}
.demo-card-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px;
}
.demo-card-title { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 17px; }
.demo-card-tag {
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--accent); background: rgba(91, 123, 158, 0.1);
  padding: 4px 10px; border-radius: 999px;
}
.stat-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 8px 0; border-bottom: 1px solid var(--hair);
  font-size: 14px; color: var(--muted);
}
.stat-row:last-child { border-bottom: none; }
.stat-row b { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat-row.good b { color: var(--pos); }
.stat-divider { height: 6px; border-bottom: 1px solid var(--hair); margin-bottom: 4px; }
.attach-strip { display: flex; gap: 8px; flex-wrap: wrap; padding: 12px 0 8px; }
.attach {
  font-size: 12px; font-weight: 600; color: var(--muted);
  background: var(--paper); border: 1px solid var(--hair);
  border-radius: 999px; padding: 5px 12px;
}

/* ---------- quick parse ---------- */
.parse-demo {
  margin-top: 36px; display: grid;
  grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center;
  max-width: 760px;
}
@media (max-width: 720px) {
  .parse-demo { grid-template-columns: 1fr; }
  .parse-arrow { transform: rotate(90deg); justify-self: center; }
}
.parse-sms, .parse-result {
  background: var(--card); border: 1px solid var(--hair); border-radius: 16px;
  padding: 18px 20px;
}
.parse-sms p { font-size: 13.5px; color: var(--muted); font-style: italic; margin-top: 8px; overflow-wrap: break-word; }
.parse-label {
  font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--faint);
}
.parse-result .stat-row { font-size: 13.5px; }
.parse-arrow { font-size: 22px; color: var(--accent); font-weight: 800; }

/* ---------- insights ---------- */
.insight-grid {
  margin-top: 34px; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px;
}
.insight-card {
  background: var(--card); border: 1px solid var(--hair); border-radius: 16px;
  padding: 20px;
  display: flex; flex-direction: column; gap: 5px;
}
.insight-card b { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 16.5px; letter-spacing: -0.01em; }
.insight-card span { font-size: 13px; color: var(--muted); }

/* ---------- privacy band ---------- */
.privacy-band {
  background: var(--card);
  border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair);
}
.privacy-cols {
  margin-top: 36px; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px;
}
.privacy-cols h3 { font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.privacy-cols p { font-size: 14.5px; color: var(--muted); }

/* ---------- closing ---------- */
.closing { text-align: center; padding: 90px 0; }
.closing h2 { margin-left: auto; margin-right: auto; }

/* ---------- content pages (privacy / support) ---------- */
.page {
  padding: 44px 40px 52px; max-width: 720px; margin: 56px auto 90px;
  background: var(--card); border: 1px solid var(--hair); border-radius: 18px;
}
@media (max-width: 600px) { .page { padding: 32px 22px 40px; margin-top: 32px; } }
.page h1 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 30px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 26px;
}
.page h2 { font-family: "Bricolage Grotesque", sans-serif; font-size: 20px; font-weight: 800; margin: 36px 0 10px; letter-spacing: -0.01em; }
.page p, .page li { color: var(--muted); font-size: 15.5px; margin-bottom: 12px; }
.page ul { padding-left: 22px; }
.page .updated { font-size: 13px; color: var(--faint); margin-bottom: 34px; }
.page strong { color: var(--ink); }
.page a { color: var(--accent); }

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--hair);
  padding: 34px 0 44px;
  color: var(--faint); font-size: 13.5px;
  background: var(--paper);
}
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
footer a { color: var(--muted); text-decoration: none; margin-left: 18px; }
footer a:hover, footer a:focus-visible { color: var(--ink); }

/* ---------- reveal motion (disabled for reduced-motion) ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
