/* MEYA website. System fonts only and no third-party requests: a privacy
   app's website should not tell anyone else who visits it. */
:root {
  --navy: #044d8c;
  --sky: #49b1f2;
  --indigo: #424d8c;
  --mist: #ebf2f2;

  --bg: #f4f8f8;
  --surface: #ffffff;
  --surface-2: #e6eff1;
  --text: #0d0d0d;
  --muted: #3f4b63;
  --line: #c9d7de;
  --accent: var(--navy);
  --accent-text: #ffffff;
  --link: #035aa6;
  --ok: #1f7a4d;
  --ok-bg: #ddf1e6;

  --radius: 18px;
  --shadow: 0 1px 2px rgba(4, 30, 60, 0.06), 0 8px 28px rgba(4, 30, 60, 0.08);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1420;
    --surface: #111e2e;
    --surface-2: #17283c;
    --text: #eef4f7;
    --muted: #b3c2d3;
    --line: #26394f;
    --accent: #49b1f2;
    --accent-text: #04121f;
    --link: #8fd0ff;
    --ok: #7fd9a8;
    --ok-bg: #12301f;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 28px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--font);
}

a { color: var(--link); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--surface);
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 10;
}
.skip:focus { left: 16px; }

.wrap {
  width: min(1080px, 100% - 32px);
  margin-inline: auto;
}

/* Header */
.top {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
}
.logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.1rem;
}
.top nav { display: flex; gap: 4px; flex-wrap: nowrap; white-space: nowrap; }
.top nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 0.95rem;
}
.top nav a:hover { background: var(--surface-2); color: var(--text); }

/* Hero */
.hero { padding: 72px 0 40px; }
.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}
h1 {
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  line-height: 1.08;
  margin: 18px 0 18px;
  letter-spacing: -0.02em;
}
.lead { font-size: 1.2rem; color: var(--muted); max-width: 36ch; margin: 0 0 28px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 14px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--accent);
}
.button.primary { background: var(--accent); color: var(--accent-text); }
.button.secondary { color: var(--accent); }

/* Phone illustration (pure CSS) */
.phone {
  justify-self: center;
  width: min(300px, 80vw);
  aspect-ratio: 9 / 18.5;
  background: #0c1622;
  border-radius: 40px;
  padding: 12px;
  box-shadow: var(--shadow);
}
.screen {
  height: 100%;
  border-radius: 30px;
  background: #ebf2f2;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #0d0d0d;
}
.screen header {
  background: #044d8c;
  color: #fff;
  padding: 18px 16px 12px;
  font-weight: 700;
}
.screen header small {
  display: block;
  font-weight: 400;
  opacity: 0.85;
  font-size: 0.75rem;
}
.chat { flex: 1; padding: 14px 12px; display: flex; flex-direction: column; gap: 8px; }
.bubble {
  max-width: 78%;
  padding: 8px 12px;
  border-radius: 16px;
  font-size: 0.85rem;
  line-height: 1.35;
  background: #fff;
}
.bubble.me { align-self: flex-end; background: #044d8c; color: #fff; }
.bubble .meta { display: block; font-size: 0.68rem; opacity: 0.75; text-align: right; }
.react {
  align-self: flex-end;
  margin-top: -12px;
  background: #fff;
  border-radius: 10px;
  padding: 0 6px;
  font-size: 0.75rem;
}

/* Sections */
section { padding: 56px 0; }
h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  line-height: 1.15;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.section-lead { color: var(--muted); max-width: 60ch; margin: 0 0 32px; }

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.card h3 { margin: 10px 0 6px; font-size: 1.1rem; }
.card p { margin: 0; color: var(--muted); }
.icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--surface-2);
  display: grid;
  place-items: center;
}
.icon svg { width: 24px; height: 24px; stroke: var(--accent); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps .card::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 800;
}

.privacy {
  background: var(--surface);
  border-block: 1px solid var(--line);
}
.ledger { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ledger ul { margin: 0; padding-left: 1.2em; color: var(--muted); }
.ledger li { margin: 6px 0; }
.ledger .card h3 { margin-top: 0; }
.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--ok-bg);
  color: var(--ok);
}

.languages { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; margin: 0; }
.languages li {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.95rem;
}

.cta {
  text-align: center;
  background: var(--navy);
  color: #fff;
  border-radius: 28px;
  padding: 48px 24px;
}
.cta p { color: #d8e7f5; max-width: 52ch; margin: 0 auto 24px; }
.cta .button.primary { background: #fff; color: var(--navy); border-color: #fff; }

/* Legal pages */
.legal { padding: 48px 0 64px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.legal h2 { font-size: 1.3rem; margin-top: 32px; }
.legal p { color: var(--muted); }

footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 48px;
  color: var(--muted);
  font-size: 0.92rem;
}
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
footer nav { display: flex; gap: 16px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .hero { padding-top: 40px; }
  .hero .wrap, .ledger { grid-template-columns: 1fr; }
  .grid, .steps { grid-template-columns: 1fr; }
  .top nav a.hide-small { display: none; }
}

@media (max-width: 520px) {
  .top nav a { padding: 8px 6px; font-size: 0.9rem; }
  .top nav a.hide-tiny { display: none; }
  .actions .button { flex: 1 1 100%; justify-content: center; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
