/* Moborg Messages Manager website. No scripts, no third-party requests: everything is served from here. */

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("fonts/atkinson-hyperlegible-next.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: #f9f9f9;
  --surface: #ffffff;
  --surface-2: #eef4f1;
  --fg: #1a1c1c;
  --muted: #4a504e;
  --line: #dde2df;
  --accent: #1f6e5a;
  --on-accent: #ffffff;
  --accent-soft: #a8f2da;
  --on-accent-soft: #002118;
  --brand: #6f4ba6;
  --shadow: 0 1px 2px rgb(0 0 0 / 6%), 0 8px 24px rgb(0 0 0 / 8%);
  --frame: #101212;
  --radius: 20px;
  --max: 70rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121414;
    --surface: #1a1c1c;
    --surface-2: #1b2622;
    --fg: #e2e3e2;
    --muted: #b8bebb;
    --line: #2f3433;
    --accent: #8cd5be;
    --on-accent: #00382b;
    --accent-soft: #005141;
    --on-accent-soft: #a8f2da;
    --brand: #c9a6f0;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 35%);
    --frame: #3a403e;
  }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 1.125rem/1.6 "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans",
    "Noto Sans Devanagari", sans-serif;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { line-height: 1.2; text-wrap: balance; margin: 0; }
p { margin: 0.75rem 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1rem; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 10; background: var(--surface); padding: 0.5rem 1rem; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 4rem; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 0.6rem; color: var(--fg); text-decoration: none;
  font-weight: 750; font-size: 1.1rem; }
.brand img { width: 36px; height: 36px; }
.site-nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.site-nav a { color: var(--fg); text-decoration: none; font-weight: 600; padding: 0.25rem 0; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent); text-decoration: underline; }

/* Hero */
.hero { padding: 3.5rem 0 3rem; }
.hero .wrap { display: grid; gap: 2.5rem; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 52rem) { .hero .wrap { grid-template-columns: 1.15fr 0.85fr; } }
.eyebrow { display: inline-block; background: var(--accent-soft); color: var(--on-accent-soft);
  font-weight: 650; font-size: 0.9rem; padding: 0.25rem 0.75rem; border-radius: 999px; margin-bottom: 1rem; }
.hero h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); font-weight: 800; letter-spacing: -0.01em; }
.hero .lead { font-size: 1.2rem; color: var(--muted); max-width: 36rem; margin-top: 1rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; align-items: center; }
.button { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.8rem 1.3rem; border-radius: 999px;
  font-weight: 700; text-decoration: none; border: 2px solid var(--accent); }
.button.primary { background: var(--accent); color: var(--on-accent); }
.button.secondary { color: var(--accent); background: transparent; }
.note { color: var(--muted); font-size: 0.95rem; margin-top: 0.75rem; }

/* Phone frames around screenshots */
.phone { margin: 0 auto; width: min(100%, 300px); border-radius: 32px; padding: 8px; background: var(--frame);
  box-shadow: var(--shadow); }
.phone img { border-radius: 25px; width: 100%; aspect-ratio: 1 / 2; object-fit: cover; }
.phone-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; max-width: 520px; margin: 0 auto; }
.phone-pair .phone { width: 100%; border-radius: 26px; padding: 6px; }
.phone-pair .phone img { border-radius: 21px; }

/* Trust strip */
.strip { background: var(--surface-2); border-block: 1px solid var(--line); }
.strip ul { list-style: none; margin: 0; padding: 1.25rem 0; display: grid; gap: 0.75rem 2rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.strip li { font-weight: 650; display: flex; gap: 0.6rem; align-items: baseline; }
.strip li::before { content: "✓" / ""; color: var(--accent); font-weight: 800; }

/* Feature sections */
.section { padding: 4rem 0; }
.section h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 800; }
.section-intro { color: var(--muted); max-width: 40rem; font-size: 1.1rem; }
.feature { display: grid; gap: 2rem; align-items: center; grid-template-columns: 1fr; padding: 2.5rem 0;
  border-top: 1px solid var(--line); }
.feature:first-of-type { border-top: 0; }
@media (min-width: 52rem) {
  .feature { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .feature.flip .feature-media { order: -1; }
}
.feature h3 { font-size: 1.6rem; font-weight: 750; }
.feature ul { padding-left: 1.2rem; margin: 0.75rem 0; }
.feature li { margin: 0.4rem 0; }
.kicker { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  font-size: 0.85rem; margin-bottom: 0.4rem; }

/* Cards */
.cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); margin-top: 2rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.card h3 { font-size: 1.15rem; font-weight: 750; }
.card p { color: var(--muted); margin-bottom: 0; }

/* Privacy callout */
.callout { background: var(--accent-soft); color: var(--on-accent-soft); border-radius: var(--radius);
  padding: 2rem; display: grid; gap: 1rem; }
.callout h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.callout a { color: inherit; font-weight: 700; }
.callout ul { margin: 0; padding-left: 1.2rem; }

/* FAQ */
.faq details { border-top: 1px solid var(--line); padding: 1rem 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.1rem; }
.faq details p { color: var(--muted); max-width: 46rem; }

/* Long-form pages (privacy) */
.doc { max-width: 44rem; margin: 0 auto; padding: 2.5rem 1rem 4rem; }
.doc h1 { font-size: clamp(2rem, 5vw, 2.6rem); font-weight: 800; }
.doc h2 { font-size: 1.35rem; font-weight: 750; margin: 2.5rem 0 0.5rem; }
.doc li { margin: 0.5rem 0; }
.doc .lead { color: var(--muted); font-size: 1.1rem; }
.doc .meta { color: var(--muted); font-size: 0.95rem; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.95rem; }
th, td { text-align: left; vertical-align: top; padding: 0.7rem 0.5rem; border-top: 1px solid var(--line); }
th { font-weight: 700; }
code { font-size: 0.9em; overflow-wrap: anywhere; }
@media (max-width: 40rem) {
  table, tbody, tr, td { display: block; }
  tr.head { display: none; }
  tr { border-top: 1px solid var(--line); padding: 0.5rem 0; }
  td { border: 0; padding: 0.3rem 0; }
  td[data-label]:not(:first-child)::before { content: attr(data-label); display: block; font-weight: 700;
    color: var(--muted); font-size: 0.85rem; }
}

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 2rem 0 3rem; color: var(--muted); font-size: 0.95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; justify-content: space-between; }
.site-footer nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
