/* Masjiva landing page. No frameworks, no third-party requests (system fonts). */

:root {
  --primary: #0f766e;
  --primary-dark: #115e59;
  --primary-soft: #ccfbf1;
  --tint: #f0faf8;
  --ink: #12302d;
  --ink-2: #3f5653;
  --muted: #64748b;
  --line: #dfe9e7;
  --card: #ffffff;
  --bg: #fbfdfc;
  --income: #009688;
  --expense: #d97706;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(16 40 37 / 0.06), 0 8px 24px rgb(16 40 37 / 0.06);
  --container: 1120px;
  --font: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--primary);
}

:focus-visible {
  outline: 3px solid rgb(15 118 110 / 0.45);
  outline-offset: 2px;
  border-radius: 6px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
}
.skip-link:focus {
  top: 1rem;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.container.narrow {
  max-width: 780px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
}
.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.9rem;
}
.btn-lg {
  padding: 0.8rem 1.4rem;
  font-size: 1rem;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-dark);
}
.btn-ghost {
  background: var(--card);
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.btn-light {
  background: #fff;
  color: var(--primary-dark);
}
.btn-light:hover {
  background: var(--primary-soft);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(251 253 252 / 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--ink);
  text-decoration: none;
}
.brand img {
  border-radius: 9px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.site-nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav ul a {
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}
.site-nav ul a:hover {
  color: var(--primary);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  cursor: pointer;
  position: relative;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  position: absolute;
  left: 50%;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transform: translateX(-50%);
  content: '';
  transition: transform 0.2s, top 0.2s;
}
.nav-toggle-bar {
  top: 50%;
}
.nav-toggle-bar::before {
  top: -6px;
}
.nav-toggle-bar::after {
  top: 6px;
}
.nav-toggle[aria-expanded='true'] .nav-toggle-bar {
  background: transparent;
}
.nav-toggle[aria-expanded='true'] .nav-toggle-bar::before {
  top: 0;
  transform: translateX(-50%) rotate(45deg);
}
.nav-toggle[aria-expanded='true'] .nav-toggle-bar::after {
  top: 0;
  transform: translateX(-50%) rotate(-45deg);
}

@media (max-width: 880px) {
  .nav-toggle {
    display: block;
  }
  .site-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1rem 1.25rem 1.5rem;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .site-nav.open {
    display: flex;
  }
  .site-nav ul {
    flex-direction: column;
    gap: 0;
  }
  .site-nav ul a {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--line);
  }
  .nav-cta {
    align-self: flex-start;
  }
}

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(1100px 500px at 85% -10%, var(--primary-soft), transparent 60%),
    linear-gradient(to bottom, var(--tint), var(--bg));
  padding: 4.5rem 0 4rem;
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 3.5rem;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.75rem;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  margin-bottom: 1rem;
}
.lead {
  font-size: 1.15rem;
  color: var(--ink-2);
  max-width: 34rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.75rem 0 1.5rem;
}
.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--ink-2);
  font-size: 0.92rem;
}
.hero-points li::before,
.check-list li::before {
  content: '';
  display: inline-block;
  width: 1.05em;
  height: 1.05em;
  margin-right: 0.45em;
  vertical-align: -0.17em;
  border-radius: 50%;
  background: var(--primary)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E")
    center / 70% no-repeat;
}

/* Product preview */
.preview {
  margin: 0;
}
.preview-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 2px 4px rgb(16 40 37 / 0.05), 0 24px 48px rgb(16 40 37 / 0.1);
  padding: 1.4rem 1.5rem;
}
.preview-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink-2);
  margin-bottom: 1rem;
}
.preview-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
}
.preview-label {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.preview-balance {
  font-size: clamp(1.8rem, 4vw, 2.3rem);
  font-weight: 700;
  margin: 0.1rem 0 1rem;
  letter-spacing: -0.02em;
}
.preview-kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.preview-kpi {
  font-weight: 650;
  margin: 0.15rem 0 0;
}
.key {
  width: 9px;
  height: 9px;
  border-radius: 2px;
}
.key-in {
  background: var(--income);
}
.key-out {
  background: var(--expense);
}
.preview-chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 110px;
  padding: 1rem 0.25rem 0;
  border-bottom: 1px solid #c3c2b7;
  margin-bottom: 0.9rem;
}
.bar-group {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 100%;
}
.bar {
  width: 12px;
  height: var(--h);
  border-radius: 3px 3px 0 0;
}
.bar.in {
  background: var(--income);
}
.bar.out {
  background: var(--expense);
}
.preview-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.88rem;
}
.preview-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.45rem 0;
}
.preview-list li + li {
  border-top: 1px solid var(--line);
}
.preview-list small {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0 0.4rem;
  border-radius: 5px;
  background: #e6f6ee;
  color: #157347;
  font-size: 0.72rem;
  font-weight: 600;
}
.preview figcaption {
  margin-top: 0.75rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ---------- Sections ---------- */
.section {
  padding: 5rem 0;
}
.section-tint {
  background: var(--tint);
}
.section-head {
  max-width: 640px;
  margin: 0 auto 3rem;
  text-align: center;
}
.section-head h2,
.split h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
  font-weight: 750;
}
.section-head p:last-child {
  color: var(--ink-2);
}

.why {
  padding: 3rem 0;
  border-bottom: 1px solid var(--line);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}
.why h3 {
  font-size: 1.1rem;
}
.why p {
  color: var(--ink-2);
  margin: 0;
}

.feature-grid,
.security-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.feature,
.security-grid article,
.soon-grid article {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.feature h3,
.security-grid h3,
.soon-grid h3,
.steps h3 {
  font-size: 1.1rem;
}
.feature p,
.security-grid p,
.soon-grid p,
.steps p {
  color: var(--ink-2);
  margin: 0;
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--primary-soft);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}
.feature-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--primary-dark);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Transparency */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 3.5rem;
  align-items: center;
}
.split > div > p {
  color: var(--ink-2);
  font-size: 1.05rem;
}
.check-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.75rem;
}
/* Not flex: inline <strong> + text must flow as one paragraph next to the checkmark. */
.check-list li {
  position: relative;
  padding-left: 1.75em;
}
.check-list li::before {
  position: absolute;
  left: 0;
  top: 0.32em;
  margin: 0;
}
.toggle-card {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 1.5rem;
}
.toggle-title {
  font-weight: 650;
  margin-bottom: 0.5rem;
}
.toggle-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.toggle-card li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.toggle {
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: #cfdcd9;
  position: relative;
  flex-shrink: 0;
}
.toggle::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.2);
}
.toggle.on {
  background: var(--primary);
}
.toggle.on::after {
  left: 19px;
}
.toggle-card figcaption {
  margin-top: 0.9rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Steps */
.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px dashed #b9d4cf;
}
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
}

/* Coming soon */
.soon-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.badge {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: #fef3c7;
  color: #8a5300;
  font-size: 0.75rem;
  font-weight: 700;
}

/* FAQ */
.faq {
  display: grid;
  gap: 0.75rem;
}
.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 1.25rem;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 2rem 1.1rem 0;
  font-weight: 600;
  position: relative;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '';
  position: absolute;
  right: 0.25rem;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--ink-2);
  border-bottom: 2px solid var(--ink-2);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s;
}
.faq details[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}
.faq details p {
  color: var(--ink-2);
  margin: 0 0 1.1rem;
}

/* CTA */
.cta {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  padding: 4.5rem 0;
  text-align: center;
}
.cta-inner h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 750;
}
.cta-inner p {
  color: rgb(255 255 255 / 0.85);
  margin-bottom: 1.75rem;
}

/* Footer */
.site-footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 0.92rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}
.footer-inner p {
  margin: 0;
}
.brand-footer {
  font-size: 1.05rem;
}
.footer-meta a,
.footer-links a {
  color: var(--ink-2);
}
.footer-links a:hover {
  color: var(--primary);
}
.footer-links a[aria-current='page'] {
  font-weight: 600;
  color: var(--ink);
}

/* ---------- Legal pages (privacy, terms) ---------- */
.legal {
  padding: 3rem 0 4.5rem;
}
.legal h1 {
  font-size: clamp(2rem, 4.5vw, 2.7rem);
  font-weight: 800;
  margin-bottom: 0.25rem;
}
.legal-meta {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 2rem;
}
.legal h2 {
  font-size: 1.3rem;
  margin: 2.25rem 0 0.6rem;
}
.legal h3 {
  font-size: 1.05rem;
  margin: 1.4rem 0 0.4rem;
}
.legal p,
.legal li {
  color: var(--ink-2);
}
.legal ul {
  padding-left: 1.3rem;
  margin: 0 0 1em;
}
.legal li {
  margin-bottom: 0.4em;
}
.legal code {
  font-size: 0.9em;
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0.05em 0.35em;
  overflow-wrap: anywhere;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner,
  .split {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
  }
  .preview {
    max-width: 480px;
  }
  .feature-grid,
  .security-grid,
  .soon-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 3rem 0;
  }
  .section {
    padding: 3.5rem 0;
  }
  .why-grid,
  .feature-grid,
  .security-grid,
  .soon-grid,
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }
  .why-grid {
    gap: 1.5rem;
  }
  .hero-actions .btn {
    flex: 1 1 100%;
  }
  .preview-card {
    padding: 1.1rem;
  }
  .bar {
    width: 9px;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
