/*
 * Milekha marketing site.
 *
 * Deliberately dependency-free: no build step, no framework, no CDN. The site is copied to IIS as
 * static files alongside the app, and anything that needs compiling is one more thing that can be
 * out of date when the product ships.
 */

:root {
  --ink:          #16161D;
  --ink-soft:     #3C3C4B;
  --muted:        #64647A;
  --ground:       #FFFFFF;
  --surface:      #F7F7FB;
  --surface-2:    #EFEFF7;
  --line:         #E2E2EE;
  --line-firm:    #CBCBDC;

  --accent:       #4F46E5;
  --accent-hover: #4038CC;
  --accent-soft:  #EDEBFD;
  --accent-ink:   #FFFFFF;

  --positive:     #1F7A55;
  --positive-soft:#E3F2EA;

  --radius:       14px;
  --radius-sm:    9px;
  --shadow:       0 1px 2px rgba(20, 20, 40, .05), 0 8px 26px rgba(20, 20, 40, .07);

  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --body:    "Public Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink:          #ECECF5;
    --ink-soft:     #C3C3D4;
    --muted:        #9191A8;
    --ground:       #0F0F15;
    --surface:      #17171F;
    --surface-2:    #1F1F2A;
    --line:         #2A2A37;
    --line-firm:    #3B3B4C;

    --accent:       #8C85FF;
    --accent-hover: #A29BFF;
    --accent-soft:  #211E3C;
    --accent-ink:   #0F0F15;

    --positive:     #6FCB9F;
    --positive-soft:#12301F;

    --shadow:       0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px rgba(0, 0, 0, .45);
  }
}

* { box-sizing: border-box; }

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

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

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.022em;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.1rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.1rem; letter-spacing: -0.008em; }

p { margin: 0; }
a { color: inherit; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

.eyebrow {
  font-family: var(--display);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--accent);
}

.lede { font-size: 1.16rem; color: var(--ink-soft); max-width: 62ch; }
.small { font-size: .92rem; }
.muted { color: var(--muted); }

/* ---------- header ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--ground) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; gap: 26px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display);
         font-weight: 600; font-size: 1.16rem; letter-spacing: -.02em; text-decoration: none; }
.tile {
  display: inline-grid; place-items: center;
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--accent); color: var(--accent-ink);
}
nav.links { display: flex; gap: 22px; margin-left: auto; }
nav.links a { text-decoration: none; color: var(--ink-soft); font-size: .96rem; }
nav.links a:hover { color: var(--accent); }
.bar .actions { display: flex; gap: 10px; align-items: center; }

@media (max-width: 860px) {
  nav.links { display: none; }
  .bar .actions { margin-left: auto; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--body); font-size: .97rem; font-weight: 550;
  padding: 11px 20px; border-radius: 10px;
  border: 1px solid var(--line-firm); background: var(--ground); color: var(--ink);
  text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-ink); }
.btn-lg { padding: 14px 26px; font-size: 1.03rem; }
.btn:focus-visible, a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}

/* ---------- sections ---------- */
section { padding: 92px 0; }
section.tint { background: var(--surface); border-block: 1px solid var(--line); }
.head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 44px; }

/* ---------- hero ---------- */
.hero { padding: 84px 0 76px; }
.hero-grid { 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 .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hero .reassure { margin-top: 16px; color: var(--muted); font-size: .92rem; }

/* The reconciliation proof: a statement line, the bank's balance, and the check that ties them. */
.proof {
  background: var(--ground); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.proof-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 13px 18px; border-bottom: 1px solid var(--line); background: var(--surface);
  font-size: .84rem; color: var(--muted);
}
.proof table { width: 100%; border-collapse: collapse; font-size: .83rem; table-layout: fixed; }
.proof th {
  text-align: left; font-family: var(--display); font-weight: 600; font-size: .68rem;
  letter-spacing: .09em; text-transform: uppercase; color: var(--muted);
  padding: 10px 13px; border-bottom: 1px solid var(--line);
}
.proof td { padding: 11px 13px; border-bottom: 1px solid var(--line); }
/* The tick column is a glyph, not a column of data, so it takes only the room it needs. */
.proof th:last-child, .proof td:last-child { width: 26px; padding-left: 0; padding-right: 13px; }
.proof th:first-child, .proof td:first-child { width: 68px; white-space: nowrap; }
.proof tr:last-child td { border-bottom: none; }
.proof .num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.proof .bal { color: var(--muted); }
.tick { color: var(--positive); font-weight: 700; }
.proof-foot {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 18px; background: var(--positive-soft); color: var(--positive);
  font-size: .88rem; font-weight: 550;
}

/* ---------- feature cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(288px, 1fr)); gap: 18px; }
.card {
  background: var(--ground); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; display: flex; flex-direction: column; gap: 9px;
}
section.tint .card { background: var(--ground); }
.card .ico {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 6px;
}
.card p { color: var(--ink-soft); font-size: .97rem; }

/* ---------- steps ---------- */
ol.steps { list-style: none; counter-reset: s; margin: 0; padding: 0;
           display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
ol.steps li { counter-increment: s; display: flex; flex-direction: column; gap: 8px; }
ol.steps li::before {
  content: counter(s); font-family: var(--display); font-weight: 600; font-size: .84rem;
  width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink);
}
ol.steps p { color: var(--ink-soft); font-size: .97rem; }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(238px, 1fr)); gap: 18px;
         align-items: stretch; }
/* The feature list takes the slack so every card ends on the same line. */
.plan ul { margin-top: auto; }
.plan {
  background: var(--ground); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; display: flex; flex-direction: column; gap: 16px; position: relative;
}
.plan.featured { border-color: var(--accent); box-shadow: var(--shadow); }
.plan .badge {
  position: absolute; top: -11px; left: 24px;
  background: var(--accent); color: var(--accent-ink);
  font-family: var(--display); font-size: .68rem; font-weight: 600;
  letter-spacing: .09em; text-transform: uppercase; padding: 3px 10px; border-radius: 6px;
}
.plan h3 { font-size: 1.02rem; }
.price { font-family: var(--display); font-size: 2.35rem; font-weight: 600; letter-spacing: -.035em;
         line-height: 1; font-variant-numeric: tabular-nums; }
.price span { font-family: var(--body); font-size: .92rem; font-weight: 400; color: var(--muted);
              letter-spacing: 0; }
.plan ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px;
           font-size: .93rem; color: var(--ink-soft); }
.plan li { display: flex; gap: 9px; align-items: flex-start; }
.plan li::before { content: "✓"; color: var(--positive); font-weight: 700; line-height: 1.5; }
.plan li.off { color: var(--muted); }
.plan li.off::before { content: "—"; color: var(--line-firm); font-weight: 400; }

/* ---------- privacy strip ---------- */
.never { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.never div {
  border: 1px dashed var(--line-firm); border-radius: var(--radius-sm);
  padding: 15px 17px; font-size: .93rem; color: var(--ink-soft);
}
.never strong { color: var(--ink); }

/* ---------- faq ---------- */
.faq { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--line); }
details {
  border-bottom: 1px solid var(--line); padding: 19px 0;
}
summary {
  cursor: pointer; font-family: var(--display); font-weight: 600; font-size: 1.03rem;
  list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { margin-top: 11px; color: var(--ink-soft); font-size: .97rem; max-width: 72ch; }

/* ---------- closing cta ---------- */
.closing {
  background: var(--accent); color: var(--accent-ink);
  border-radius: var(--radius); padding: 54px 44px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.closing h2 { color: var(--accent-ink); }
.closing p { color: color-mix(in srgb, var(--accent-ink) 84%, transparent); max-width: 54ch; }
.closing .btn { background: var(--accent-ink); border-color: var(--accent-ink); color: var(--accent); }
.closing .btn:hover { background: var(--accent-ink); color: var(--accent-hover); }

/* ---------- footer ---------- */
footer.site { border-top: 1px solid var(--line); padding: 46px 0 60px; background: var(--surface); }
.foot { display: flex; flex-wrap: wrap; gap: 34px; justify-content: space-between; }
.foot-links { display: flex; flex-wrap: wrap; gap: 26px; }
.foot-links a { color: var(--ink-soft); text-decoration: none; font-size: .94rem; }
.foot-links a:hover { color: var(--accent); }
.legal { margin-top: 30px; color: var(--muted); font-size: .86rem; max-width: 74ch; }

/* ---------- legal pages ---------- */
article.legal-page { padding: 64px 0 90px; }
article.legal-page h1 { font-size: clamp(2rem, 4vw, 2.7rem); margin-bottom: 10px; }
article.legal-page h2 { font-size: 1.24rem; margin-top: 38px; }
article.legal-page p, article.legal-page li { color: var(--ink-soft); font-size: 1rem; }
article.legal-page ul { padding-left: 20px; display: flex; flex-direction: column; gap: 7px; }
article.legal-page .updated { color: var(--muted); font-size: .9rem; }
.placeholder {
  background: var(--accent-soft); color: var(--accent);
  font-family: var(--mono); font-size: .84rem; padding: 1px 6px; border-radius: 5px;
}
.notice {
  border-left: 3px solid var(--accent); background: var(--surface);
  padding: 16px 20px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--ink-soft); font-size: .95rem; margin: 26px 0;
}

/* ---------- narrow screens ---------- */
@media (max-width: 560px) {
  body { font-size: 16px; }
  section { padding: 66px 0; }
  .hero { padding: 56px 0 54px; }

  /* Two calls to action side by side wrap into stacked words at this width. Sign-in lives inside
     the app anyway, so the one that matters to a new visitor is the one that stays. */
  .bar .actions .btn:not(.btn-primary) { display: none; }
  .bar .actions .btn { padding: 9px 15px; }
  .bar { gap: 12px; }

  /* The proof table has four columns of figures; at this width they need the room more than the
     padding does. */
  .proof table { font-size: .72rem; }
  .proof th, .proof td { padding: 9px 7px; }
  .proof th:first-child, .proof td:first-child { width: 50px; }
  .proof th:last-child, .proof td:last-child { width: 20px; padding-right: 7px; }
  .proof-head { padding: 11px 12px; font-size: .78rem; }
  .proof-foot { padding: 11px 12px; font-size: .82rem; }

  .closing { padding: 40px 24px; }
}

/* Coming-soon store markers. Deliberately not imitations of the official App Store and Google Play
   badges: those are trademarked artwork with their own usage rules, and a lookalike would imply a
   listing that does not exist yet. */
.stores { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 28px; }
.store {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 20px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--ground); color: var(--ink);
}
.store svg { flex: 0 0 auto; opacity: 0.8; }
.store span { display: flex; flex-direction: column; line-height: 1.25; text-align: left; }
.store strong { font-size: 14px; font-weight: 600; }
.store small { font-size: 12px; color: var(--muted); }
