/* Mtumwa landing page
   Palette: paper, ink, cobalt, saffron, delivered-green. One typeface: Bricolage Grotesque (self-hosted). */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f6f7fb;
  --white: #ffffff;
  --ink: #0b1537;
  --muted: #4a5578;
  --line: #d9deec;
  --cobalt: #2340e8;
  --cobalt-deep: #1a2fb8;
  --saffron: #ffc62e;
  --delivered: #12a150;
  --sky: #b9c4f5;

  --font: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }

:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; border-radius: 6px; }
.top :focus-visible, .pricing :focus-visible, .how :focus-visible, .hero__copy :focus-visible { outline-color: var(--cobalt); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 1.5rem; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 8px; z-index: 20; }
.skip:focus { top: 1rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: inherit; font-weight: 700; line-height: 1;
  padding: .85rem 1.25rem; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn--lg { padding: 1.05rem 1.6rem; font-size: 1.125rem; }
.btn--block { display: flex; width: 100%; }
.btn--primary { background: var(--cobalt); color: #fff; }
.btn--primary:hover { background: var(--cobalt-deep); }
.btn--ghost { border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--signal { background: var(--saffron); color: var(--ink); }
.btn--signal:hover { background: #ffd45c; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: var(--paper); }
.top__row { display: flex; align-items: center; gap: 2rem; min-height: 4.25rem; }
.logo { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; margin-right: auto; }
.logo__mark { width: 2rem; height: 2rem; }
.logo__word { font-size: 1.5rem; font-weight: 800; letter-spacing: -.03em; }
.top__nav { display: flex; gap: 1.75rem; }
.top__nav a { text-decoration: none; font-weight: 500; color: var(--muted); }
.top__nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

/* Hero */
.hero { padding-block: clamp(2rem, 5vw, 4.5rem) clamp(3rem, 7vw, 6rem); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }

h1 {
  font-size: clamp(2.6rem, 5.6vw, 4.75rem);
  font-weight: 800; line-height: 1.02; letter-spacing: -.035em;
  max-width: 13ch;
}
.lede { font-size: 1.25rem; line-height: 1.55; color: var(--muted); max-width: 34rem; margin-top: 1.5rem; }
.actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2.25rem; }

/* Cost composer */
.composer {
  background: var(--cobalt); color: #fff;
  border-radius: 28px 28px 28px 8px;
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: 0 30px 60px -30px rgba(35, 64, 232, .6);
}
.composer__title { font-size: 1.375rem; font-weight: 700; letter-spacing: -.01em; margin-bottom: 1.1rem; }
.field { display: block; font-size: .95rem; font-weight: 600; color: var(--sky); margin-bottom: .4rem; }

.composer__msg, .composer__num {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 2px solid transparent; border-radius: 16px 16px 4px 16px; padding: .85rem 1rem;
}
.composer__msg { resize: vertical; min-height: 7rem; line-height: 1.5; }
.composer__num { border-radius: 12px; font-weight: 700; font-size: 1.125rem; max-width: 11rem; }
.composer__msg:focus-visible, .composer__num:focus-visible, .chip:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; }

.composer__rec { display: flex; flex-wrap: wrap; align-items: end; gap: 1rem; margin-top: 1.1rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  font: inherit; font-weight: 600; font-size: .95rem; color: #fff; background: transparent;
  border: 2px solid rgba(255, 255, 255, .45); border-radius: 999px; padding: .5rem .9rem; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.chip:hover { border-color: #fff; }
.chip[aria-pressed="true"] { background: #fff; color: var(--cobalt); border-color: #fff; }

.readout { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem 1.25rem; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .3); }
.readout dt { font-size: .9rem; color: var(--sky); }
.readout dd { font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.readout__cost { grid-column: 1 / -1; }
.readout__cost dd { font-size: clamp(2.4rem, 5vw, 3.25rem); line-height: 1.05; color: var(--saffron); font-weight: 800; letter-spacing: -.03em; }

.composer__hint { min-height: 3em; margin: .75rem 0 1rem; font-size: .95rem; line-height: 1.5; color: var(--sky); }

/* Messages (dark band) */
.messages { background: var(--ink); color: #fff; padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section-head { max-width: 40rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; line-height: 1.08; letter-spacing: -.03em; }
.section-head p { margin-top: 1rem; color: var(--sky); font-size: 1.125rem; }

.bubbles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.25rem clamp(1.5rem, 5vw, 4rem); max-width: 56rem; }
.bubbles li:nth-child(even) { transform: translateY(1.5rem); }
.bubble {
  background: #fff; color: var(--ink);
  border-radius: 22px 22px 22px 4px; padding: 1.1rem 1.25rem; font-size: 1.0625rem; line-height: 1.5;
}
.bubble__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; margin: .65rem .35rem 0; font-size: .95rem; color: var(--sky); }
.bubble__meta strong { color: #fff; font-weight: 600; }
.bubble__meta span { font-variant-numeric: tabular-nums; }

/* Pricing */
.pricing { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.pricing__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.pricing h2 { max-width: 14ch; }
.pricing .fine { margin: 1.25rem 0 2rem; color: var(--muted); font-size: 1rem; max-width: 32rem; }

.rates { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; background: var(--white); border-radius: 20px; overflow: hidden; }
.rates th, .rates td { padding: 1.05rem 1.5rem; text-align: left; font-size: 1.25rem; }
.rates thead th { font-size: .95rem; font-weight: 600; color: var(--muted); background: var(--white); border-bottom: 2px solid var(--ink); }
.rates tbody th { font-weight: 500; }
.rates td { font-weight: 800; text-align: right; letter-spacing: -.01em; }
.rates thead th:last-child { text-align: right; }
.rates tbody tr + tr > * { border-top: 1px solid var(--line); }

/* How it works */
.how { background: var(--white); padding-block: clamp(3.5rem, 8vw, 6rem); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem clamp(1.5rem, 4vw, 3.5rem); counter-reset: step; }
.steps li { counter-increment: step; border-top: 3px solid var(--ink); padding-top: 1.1rem; }
.steps li::before { content: counter(step); display: block; font-size: 2.5rem; font-weight: 800; line-height: 1; letter-spacing: -.04em; color: var(--cobalt); margin-bottom: .75rem; }
.steps h3 { font-size: 1.375rem; font-weight: 700; letter-spacing: -.01em; }
.steps p { margin-top: .5rem; color: var(--muted); max-width: 22rem; }

/* Closing CTA */
.close { background: var(--cobalt); color: #fff; padding-block: clamp(3rem, 7vw, 5rem); }
.close__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem; }
.close h2 { max-width: 18ch; }

.close__contact { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; margin-top: 2.5rem; padding-top: 1.75rem; background: linear-gradient(rgba(255, 255, 255, .3), rgba(255, 255, 255, .3)) center top / calc(100% - 3rem) 1px no-repeat; }
.close__contact p { font-size: 1.125rem; color: var(--sky); }
.close__links { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn--outline { --wa-bg: var(--cobalt); border-color: #fff; color: #fff; gap: .5rem; }
.btn--outline:hover { --wa-bg: #fff; background: #fff; color: var(--cobalt); }
.ico { width: 1.25rem; height: 1.25rem; flex: none; }

/* Floating WhatsApp button */
.wa {
  --wa-bg: #25d366;
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 15;
  display: inline-flex; align-items: center; gap: .55rem;
  background: var(--wa-bg); color: var(--ink); font-weight: 700; line-height: 1; text-decoration: none;
  padding: .85rem 1.15rem .85rem .95rem; border-radius: 999px;
  box-shadow: 0 10px 28px -8px rgba(11, 21, 55, .45);
  transition: transform .15s, background-color .15s;
}
.wa .ico { width: 1.6rem; height: 1.6rem; }
.wa:hover { background: #3be07a; transform: translateY(-2px); }
.wa:focus-visible { outline-color: var(--ink); }

/* Footer */
.foot { padding-block: 2rem; color: var(--muted); font-size: .95rem; }
.foot__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

/* Not found page */
.nf { min-height: 70vh; display: grid; place-content: center; gap: 1.25rem; justify-items: start; }

/* Responsive */
@media (max-width: 920px) {
  .hero__grid, .pricing__grid { grid-template-columns: minmax(0, 1fr); }
  h1 { max-width: 16ch; }
  .steps { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .top__nav { display: none; }
  .wa { padding: .8rem; right: 1rem; bottom: 1rem; }
  .wa span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .foot { padding-bottom: 5rem; }
  .bubbles { grid-template-columns: minmax(0, 1fr); }
  .bubbles li:nth-child(even) { transform: none; }
  .readout { grid-template-columns: 1fr 1fr; }
  .readout div:nth-child(3) { grid-column: 1 / -1; }
  .rates th, .rates td { padding: .9rem 1.1rem; font-size: 1.1rem; }
}
