/* Nomira website. Finance-app calm: split hero with the real app, then sections that each use a different shape. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/inter-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/barlow-condensed-500-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/barlow-condensed-600-latin.woff2") format("woff2");
}

:root {
  --bg: #0b0d14;
  --surface: #11141c;
  --raised: #1a1e28;
  --line: rgba(255, 255, 255, 0.08);
  --fg: #f2f4f8;
  --muted: #a3a9b6;
  --faint: #8a90a0;
  --accent: #2f6feb;
  --accent-press: #255bc4;
  --accent-soft: rgba(47, 111, 235, 0.14);
  --accent-text: #6f9cf5;
  --on-accent: #ffffff;
  --phone-edge: #262b37;
  --font-text: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-num: "Barlow Condensed", "Arial Narrow", "Inter", sans-serif;
  --r-card: 24px;
  --r-pill: 999px;
  color-scheme: dark;
}
:root[data-look="day"] {
  --bg: #f4f5f8;
  --surface: #ffffff;
  --raised: #e8ebf0;
  --line: rgba(11, 13, 20, 0.09);
  --fg: #0b0d14;
  --muted: #4e5564;
  --faint: #626a7a;
  --accent: #2f6feb;
  --accent-press: #255bc4;
  --accent-soft: rgba(47, 111, 235, 0.1);
  --accent-text: #1f5bd6;
  --on-accent: #ffffff;
  --phone-edge: #0b0d14;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 88px;
}
html,
body {
  background: var(--bg);
}
body {
  margin: 0;
  color: var(--fg);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
}
a {
  color: inherit;
}
h1,
h2,
h3 {
  font-weight: 600;
  text-wrap: balance;
  margin: 0;
  letter-spacing: -0.01em;
}
p {
  margin: 0;
}
.num {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
}
.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 30;
  background: var(--accent);
  color: var(--on-accent);
  padding: 10px 16px;
  border-radius: var(--r-pill);
  text-decoration: none;
  font-weight: 600;
}
.skip:focus {
  top: 12px;
}

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}
@media (max-width: 480px) {
  .wrap {
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
  }
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 9;
  padding-top: env(safe-area-inset-top, 0px);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.nav .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
}
.brand svg {
  width: 22px;
  height: 26px;
  color: var(--accent);
}
.nav-links {
  display: flex;
  gap: 24px;
  margin-left: auto;
}
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 15px;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--fg);
}
@media (max-width: 760px) {
  .nav-links {
    display: none;
  }
  .nav .btn {
    margin-left: auto;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  padding: 0 24px;
  border-radius: var(--r-pill);
  font: 600 16px/1 var(--font-text);
  text-decoration: none;
  white-space: nowrap;
  border: 0;
  cursor: pointer;
  transition:
    transform 0.16s ease,
    background-color 0.16s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active {
  transform: scale(0.97);
}
.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}
@media (hover: hover) {
  .btn-primary:hover {
    background: var(--accent-press);
  }
}
.btn-quiet {
  background: var(--raised);
  color: var(--fg);
}
.btn-small {
  height: 40px;
  padding: 0 18px;
  font-size: 15px;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}

/* Phone frame around real screenshots */
.phone {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 1179 / 2556;
  border-radius: 46px;
  padding: 9px;
  background: var(--phone-edge);
  box-shadow: 0 30px 80px -30px rgba(5, 8, 20, 0.55);
}
.phone img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 38px;
}

/* Hero */
.hero {
  padding-block: 72px 56px;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(44px, 6.4vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.025em;
}
.hero .sub {
  margin-top: 22px;
  font-size: 20px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 30ch;
}
.hero .ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 34px;
}
.hero .phone {
  justify-self: center;
  max-width: 320px;
}
@media (max-width: 860px) {
  .hero {
    padding-block: 40px 32px;
  }
  .hero .wrap {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero .phone {
    max-width: 260px;
  }
}

/* Fact strip under hero */
.facts {
  border-block: 1px solid var(--line);
}
.facts .wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.fact {
  padding: 22px 24px 22px 0;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.fact + .fact {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}
.fact .num {
  font-size: 34px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}
.fact span {
  color: var(--muted);
  font-size: 15px;
}
@media (max-width: 760px) {
  .facts .wrap {
    grid-template-columns: 1fr;
  }
  .fact,
  .fact + .fact {
    padding: 16px 0;
    border-left: 0;
  }
  .fact + .fact {
    border-top: 1px solid var(--line);
  }
}

section.block {
  padding-block: 104px;
}
section.block.tight {
  padding-top: 0;
}
@media (max-width: 760px) {
  section.block {
    padding-block: 64px;
  }
}
.h2 {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.lede {
  margin-top: 16px;
  font-size: 18px;
  color: var(--muted);
  max-width: 52ch;
}

/* The Door story: sticky phone + tries */
.story {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 72px;
  align-items: start;
}
.story .phone {
  position: sticky;
  top: 104px;
  justify-self: center;
}
.tries {
  display: grid;
  margin-top: 40px;
}
.try {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 20px;
  padding-block: 28px;
  border-top: 1px solid var(--line);
}
.try .num {
  font-size: 44px;
  font-weight: 600;
  line-height: 1;
  color: var(--faint);
}
.try.is-on .num {
  color: var(--accent);
}
.try h3 {
  font-size: 21px;
  line-height: 1.3;
}
.try p {
  margin-top: 6px;
  color: var(--muted);
  max-width: 46ch;
}
.doors {
  display: inline-flex;
  gap: 5px;
  margin-top: 12px;
}
.doors i {
  width: 14px;
  height: 18px;
  border-radius: 7px 7px 2px 2px;
  background: var(--raised);
}
.doors i.on {
  background: var(--accent);
}
.story-note {
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 14px;
  max-width: 60ch;
}
.zion {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 15px;
  flex-wrap: wrap;
}
.bubble {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--fg);
  padding: 12px 18px;
  border-radius: 20px 20px 20px 6px;
  font-weight: 600;
}
@media (max-width: 860px) {
  .story {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .story .phone {
    position: static;
    max-width: 240px;
  }
  .try {
    grid-template-columns: 84px 1fr;
  }
  .try .num {
    font-size: 36px;
  }
}

/* Compare */
.compare {
  background: var(--surface);
  border-radius: var(--r-card);
  overflow: hidden;
  margin-top: 44px;
}
.compare-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1.2fr;
}
.compare-row > div {
  padding: 20px 28px;
}
.compare-row + .compare-row {
  border-top: 1px solid var(--line);
}
.compare-head > div {
  font-weight: 600;
  padding-block: 22px;
}
.compare-row .q,
.compare-row .them {
  color: var(--muted);
}
.compare-row .us {
  background: var(--accent-soft);
  font-weight: 600;
}
@media (max-width: 760px) {
  .compare-row {
    grid-template-columns: 1fr 1fr;
  }
  .compare-row .q {
    grid-column: 1 / -1;
    padding-bottom: 0;
    font-size: 14px;
  }
  .compare-head .q {
    display: none;
  }
  .compare-row > div {
    padding: 14px 16px;
  }
}

/* Bento */
.bento {
  display: grid;
  grid-template-columns: 1.05fr 1fr 1.05fr;
  gap: 16px;
  margin-top: 44px;
}
.cell {
  background: var(--surface);
  border-radius: var(--r-card);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
  min-width: 0;
}
.cell h3 {
  font-size: 21px;
  line-height: 1.25;
}
.cell p {
  color: var(--muted);
}
.cell.shot {
  grid-row: span 2;
  padding-bottom: 0;
}
.cell.shot .crop {
  margin-top: auto;
  padding-top: 28px;
  display: flex;
  justify-content: center;
}
.cell.shot .crop .phone {
  max-width: 250px;
  aspect-ratio: auto;
  height: 340px;
  border-radius: 40px 40px 0 0;
  padding: 8px 8px 0;
  box-shadow: none;
}
.cell.shot .crop .phone img {
  border-radius: 32px 32px 0 0;
  object-position: top;
}
.cell.accent {
  background: var(--accent);
  color: var(--on-accent);
}
.cell.accent p {
  color: rgba(255, 255, 255, 0.86);
}
.cell .big {
  font-size: 64px;
  font-weight: 600;
  line-height: 1;
  margin-bottom: 8px;
}
.cell.wide {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  gap: 32px;
}
.cell.wide .text {
  flex: 1;
  min-width: 0;
}
.keys {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.key {
  font:
    500 15px/1 ui-monospace,
    "SF Mono",
    Menlo,
    monospace;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--raised);
  color: var(--muted);
}
@media (max-width: 900px) {
  .bento {
    grid-template-columns: 1fr 1fr;
  }
  .cell.shot {
    grid-row: auto;
  }
  .cell.wide {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 620px) {
  .bento {
    grid-template-columns: 1fr;
  }
}

/* Pricing */
.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 44px;
  max-width: 820px;
}
.plan {
  border-radius: var(--r-card);
  padding: 32px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.plan.best {
  border: 2px solid var(--accent);
}
.plan .name {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 18px;
}
.tag {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-text);
  background: var(--accent-soft);
  padding: 5px 10px;
  border-radius: var(--r-pill);
  white-space: nowrap;
}
.plan .price {
  margin-top: 20px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.plan .price .num {
  font-size: 60px;
  font-weight: 600;
  line-height: 1;
}
.plan .price span,
.plan .per {
  color: var(--muted);
}
.plan .per {
  margin-top: 6px;
}
.plan ul {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 10px;
}
.plan li {
  display: flex;
  gap: 10px;
}
.plan li::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: 9px;
  border-radius: 2px;
  background: var(--accent);
}
.price-foot {
  margin-top: 28px;
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 15px;
}
@media (max-width: 700px) {
  .plans {
    grid-template-columns: 1fr;
  }
  .plan {
    padding: 24px;
  }
}

/* FAQ */
.faq-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
  align-items: start;
}
.faq-side p {
  margin-top: 16px;
  color: var(--muted);
}
.faq-list {
  border-top: 1px solid var(--line);
}
details {
  border-bottom: 1px solid var(--line);
}
summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-block: 22px;
  font-weight: 600;
  font-size: 18px;
}
summary::-webkit-details-marker {
  display: none;
}
summary .pm {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--raised);
  position: relative;
}
summary .pm::before,
summary .pm::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 2px;
  margin: -1px 0 0 -6px;
  background: var(--fg);
  border-radius: 1px;
  transition: transform 0.2s ease;
}
summary .pm::after {
  transform: rotate(90deg);
}
details[open] summary .pm::after {
  transform: rotate(0deg);
}
details .ans {
  padding: 0 48px 24px 0;
  color: var(--muted);
  max-width: 62ch;
}
details .ans a,
.faq-side a,
.page-head a {
  color: var(--fg);
}
@media (max-width: 860px) {
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  details .ans {
    padding-right: 0;
  }
}

/* Closing CTA */
.closing .wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
}
.closing h2 {
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1;
  letter-spacing: -0.025em;
  max-width: 12ch;
}

/* Footer */
footer {
  border-top: 1px solid var(--line);
  padding-block: 48px calc(48px + env(safe-area-inset-bottom, 0px));
  color: var(--muted);
  font-size: 15px;
}
footer .wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}
footer h2 {
  margin: 0 0 12px;
  color: var(--fg);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
}
footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
footer a {
  text-decoration: none;
}
footer a:hover {
  color: var(--fg);
}
.small {
  font-size: 14px;
  color: var(--faint);
  margin-top: 16px;
}
.foot-base {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--faint);
}
@media (max-width: 760px) {
  footer .wrap {
    grid-template-columns: 1fr;
  }
}

/* Night / Day look switch */
.look {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--line);
}
.look span {
  padding: 0 8px 0 10px;
  font-weight: 600;
  color: var(--muted);
}
.look button {
  border: 0;
  cursor: pointer;
  height: 32px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--muted);
  font: 600 14px var(--font-text);
}
.look button[aria-pressed="true"] {
  background: var(--raised);
  color: var(--fg);
}

/* Email copy */
.mail {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 4px 4px 4px 18px;
}
.mail a {
  font: 600 16px var(--font-text);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.mail .btn {
  height: 38px;
  padding: 0 14px;
  font-size: 14px;
}

/* Sub pages */
.page-head {
  padding-block: 72px 32px;
}
.page-head h1 {
  font-size: clamp(40px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.page-head p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 18px;
  max-width: 54ch;
}
@media (max-width: 760px) {
  .page-head {
    padding-block: 48px 24px;
  }
}
.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding-bottom: 96px;
}
.support-grid .cell h2 {
  font-size: 19px;
  line-height: 1.3;
}
.support-grid .cell ol {
  margin: 8px 0 0;
  padding-left: 20px;
  color: var(--muted);
  display: grid;
  gap: 6px;
}
.support-grid .cell a {
  color: var(--fg);
}
.support-grid .contact {
  grid-column: 1 / -1;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.support-grid .crisis {
  grid-column: 1 / -1;
  background: transparent;
  border: 1px solid var(--line);
}
@media (max-width: 700px) {
  .support-grid {
    grid-template-columns: 1fr;
  }
}
.faq-page {
  padding-bottom: 96px;
  max-width: 820px;
}
.faq-group {
  margin-top: 40px;
}
.faq-group:first-child {
  margin-top: 8px;
}
.faq-group h2 {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 4px;
  font-weight: 600;
  letter-spacing: 0;
}

/* Legal pages (content copied from legal/ by sync-legal.mjs) */
.legal {
  max-width: 760px;
  padding-bottom: 96px;
}
.legal .effective {
  color: var(--faint);
  margin-top: 10px;
  font-size: 15px;
}
.legal h2 {
  font-size: 24px;
  line-height: 1.25;
  margin: 48px 0 12px;
  letter-spacing: -0.01em;
}
.legal p,
.legal li {
  color: var(--muted);
}
.legal p + p {
  margin-top: 14px;
}
.legal strong {
  color: var(--fg);
}
.legal a {
  color: var(--fg);
}
.legal ul,
.legal ol {
  padding-left: 22px;
  display: grid;
  gap: 8px;
  margin: 14px 0;
}
.legal .card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 16px;
  padding: 18px 22px;
  margin: 28px 0;
  color: var(--muted);
}
.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 15px;
}
.legal th,
.legal td {
  text-align: left;
  vertical-align: top;
  padding: 14px 10px 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.legal th {
  color: var(--fg);
  font-weight: 600;
}
@media (max-width: 560px) {
  .legal table,
  .legal thead,
  .legal tbody,
  .legal tr,
  .legal th,
  .legal td {
    display: block;
  }
  .legal thead {
    display: none;
  }
  .legal td {
    border: 0;
    padding: 2px 0;
  }
  .legal td + td {
    margin-top: 6px;
  }
  .legal tr {
    border-bottom: 1px solid var(--line);
    padding: 14px 0;
  }
}

/* /get and 404 */
.get {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: 64px;
}
.get .mark {
  width: 64px;
  height: 76px;
  margin: 0 auto 28px;
  color: var(--accent);
  display: block;
}
.get h1 {
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.15;
}
.get p {
  margin-top: 12px;
  color: var(--muted);
}
.get .btn {
  margin-top: 28px;
}
.bar {
  width: 160px;
  height: 3px;
  border-radius: 2px;
  background: var(--raised);
  margin: 28px auto 0;
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  width: 40%;
  background: var(--accent);
  border-radius: 2px;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
  body {
    transition:
      background-color 0.3s ease,
      color 0.3s ease;
  }
  .rise {
    animation: rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  .rise-2 {
    animation-delay: 0.08s;
  }
  .rise-3 {
    animation-delay: 0.16s;
  }
  .rise-4 {
    animation-delay: 0.1s;
  }
  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(14px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
  .bar i {
    animation: load 1.4s ease-in-out infinite;
  }
  @keyframes load {
    from {
      transform: translateX(-100%);
    }
    to {
      transform: translateX(260%);
    }
  }
}

section.block.closing {
  padding-top: 24px;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.door-cut {
  stroke: var(--bg);
}
.door-knob {
  fill: var(--bg);
}
