:root {
  --bg: #f6f5fb; --surface: #ffffff; --surface-alt: #f0eefa; --border: #e4e2ef;
  --text: #16151f; --text2: #5d5b6e; --accent: #7c3aed; --accent-ink: #ffffff;
  --live: #16a34a;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b14; --surface: #1b1b29; --surface-alt: #22222f; --border: #2e2e40;
    --text: #f5f5f7; --text2: #9a9aae; --accent: #a78bfa; --accent-ink: #0b0b14;
    --live: #22c55e;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; }
ul { margin: 0; padding: 0; list-style: none; }

/* ── Top nav ──────────────────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 20px;
  padding: 14px 24px; background: var(--bg); border-bottom: 1px solid var(--border);
}
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--text); text-decoration: none; }
.brand img { border-radius: 6px; display: block; }
.topnav { display: none; gap: 20px; flex: 1; font-size: 14px; font-weight: 600; }
.topnav a { color: var(--text2); text-decoration: none; }
.topnav a:hover { color: var(--text); }
@media (min-width: 720px) { .topnav { display: flex; } }
.topbar > .btn { flex-shrink: 0; white-space: nowrap; }
@media (max-width: 719px) { .topbar { gap: 8px; padding: 12px 14px; } .topbar > .lang-switch { margin-left: auto; } }

.lang-switch { display: flex; flex-shrink: 0; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.lang-btn {
  display: inline-flex; align-items: center; text-decoration: none; min-height: 32px;
  border: none; background: transparent; color: var(--text2); font-size: 12px; font-weight: 800;
  padding: 6px 10px; cursor: pointer; white-space: nowrap; flex-shrink: 0;
}
.lang-btn.active { background: var(--accent); color: var(--accent-ink); }
.brand { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px;
  border-radius: 10px; font-weight: 700; text-decoration: none; cursor: pointer; border: 1px solid var(--border);
  color: var(--text);
}
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.ghost { background: transparent; }
.btn.small { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn.disabled { opacity: 0.5; cursor: not-allowed; }
.cta-row { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; justify-content: center; }
.app-link { gap: 8px; }
.app-link-icon { border-radius: 6px; display: block; }

/* ── Hero ─────────────────────────────────────────────────────────────── */
/* No stock photo (none licensed for this site) — a layered gradient "mesh"
   plus a faint route-line motif gives the same sense of depth/atmosphere a
   photo background would, without implying a real photograph. */
.hero-wrap {
  position: relative; overflow: hidden;
  background:
    radial-gradient(60% 50% at 15% 10%, rgba(124,58,237,0.16), transparent 60%),
    radial-gradient(55% 45% at 85% 0%, rgba(34,197,94,0.12), transparent 60%),
    radial-gradient(70% 60% at 50% 100%, rgba(249,115,22,0.10), transparent 65%),
    var(--bg);
}
.hero-wrap::before {
  content: ''; position: absolute; inset: 0; opacity: 0.5; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='400' viewBox='0 0 600 400'%3E%3Cpath d='M-20 320 C 120 280, 180 340, 260 260 S 420 140, 520 180 S 680 260, 760 200' stroke='%237c3aed' stroke-opacity='0.12' stroke-width='3' fill='none' stroke-dasharray='2 10' stroke-linecap='round'/%3E%3Cpath d='M-40 80 C 80 140, 160 60, 280 110 S 480 40, 620 90' stroke='%2322c55e' stroke-opacity='0.10' stroke-width='3' fill='none' stroke-dasharray='2 10' stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: cover; background-position: center;
}
.hero {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 64px 24px 48px; gap: 14px; max-width: 720px; margin: 0 auto;
}
.hero-logo-img { display: block; width: 220px; height: auto; }
.badge {
  display: inline-flex; padding: 5px 14px; border-radius: 999px; background: var(--surface-alt);
  border: 1px solid var(--border); color: var(--accent); font-size: 13px; font-weight: 700;
}
.hero h1 { font-size: clamp(28px, 5vw, 42px); margin: 6px 0 0; }
.lead { color: var(--text2); margin: 0; max-width: 540px; font-size: 17px; }
.trust-row {
  display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; margin-top: 6px;
  font-size: 13px; color: var(--text2); font-weight: 600;
}

.demo-card {
  margin-top: 36px; width: min(380px, 100%); background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 18px; text-align: left; box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}
.live-dot {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; color: var(--live);
  letter-spacing: 0.06em; margin-bottom: 10px;
}
.live-dot::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--live); }
.demo-msg {
  background: var(--surface-alt); border-radius: 12px; padding: 10px 14px; font-size: 14px; margin-bottom: 8px; max-width: 85%;
}
.demo-msg.reply { background: var(--accent); color: var(--accent-ink); margin-left: auto; margin-bottom: 0; }

/* ── Stats ────────────────────────────────────────────────────────────── */
.stats {
  position: relative;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 760px; margin: 0 auto;
  padding: 32px 24px; text-align: center;
}
@media (min-width: 640px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats strong { display: block; font-size: 26px; color: var(--accent); }
.stats span { font-size: 13px; color: var(--text2); }

/* ── Screenshots ──────────────────────────────────────────────────────── */
.phone-grid {
  display: grid; grid-template-columns: 1fr; gap: 28px; margin-top: 40px; justify-items: center;
}
@media (min-width: 720px) { .phone-grid { grid-template-columns: repeat(3, 1fr); align-items: start; } }
.phone-item { margin: 0; width: 100%; max-width: 230px; text-align: center; }
.phone-frame {
  background: #0b0b14; border-radius: 34px;
  padding: 10px; box-shadow: 0 20px 40px rgba(0,0,0,0.18); border: 1px solid rgba(255,255,255,0.08);
}
.phone-frame img {
  display: block; width: 100%; height: auto; border-radius: 24px;
  aspect-ratio: 9 / 19.5; object-fit: cover; object-position: top;
  background: #0b0b14;
}
.phone-item figcaption {
  margin-top: 14px; font-size: 14px; font-weight: 700; color: var(--text);
}

/* ── Generic section ──────────────────────────────────────────────────── */
.section { max-width: 960px; margin: 0 auto; padding: 56px 24px; text-align: center; }
.section h2 { font-size: clamp(24px, 4vw, 32px); margin: 0; }
.section-lead { color: var(--text); font-size: 18px; font-weight: 600; margin: 10px 0 4px; }
.section-sub { color: var(--text2); max-width: 560px; margin: 0 auto; }

/* ── Features ─────────────────────────────────────────────────────────── */
.feature-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 36px; text-align: left; }
@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 20px; }
.feature h3 { font-size: 16px; margin: 0 0 8px; display: flex; align-items: center; gap: 8px; }
.plus-tag {
  font-size: 10px; font-weight: 800; color: var(--accent-ink); background: var(--accent);
  padding: 2px 8px; border-radius: 999px; letter-spacing: 0.03em;
}
.feature p { color: var(--text2); font-size: 14px; margin: 0; }

/* ── Steps ────────────────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: 1fr; gap: 24px; margin-top: 36px; text-align: left; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step-no { color: var(--accent); font-weight: 800; font-size: 20px; }
.step h3 { margin: 6px 0 8px; font-size: 16px; }
.step p { color: var(--text2); font-size: 14px; margin: 0; }

/* ── Testimonial ──────────────────────────────────────────────────────── */

/* ── Pricing ──────────────────────────────────────────────────────────── */
.plans { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 36px; text-align: left; max-width: 640px; margin-left: auto; margin-right: auto; }
@media (min-width: 640px) { .plans { grid-template-columns: repeat(2, 1fr); } }
.plan { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.plan.featured { border-color: var(--accent); }
.plan-badge {
  position: absolute; top: -12px; left: 20px; background: var(--accent); color: var(--accent-ink);
  font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 999px;
}
.plan h3 { margin: 6px 0 0; font-size: 18px; }
.price { font-size: 26px; font-weight: 800; }
.price span { font-size: 13px; font-weight: 500; color: var(--text2); }
.plan ul { display: flex; flex-direction: column; gap: 8px; margin: 4px 0; }
.plan li { font-size: 14px; color: var(--text2); padding-left: 20px; position: relative; }
.plan li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.plan .btn { margin-top: 8px; }

/* ── Final CTA ────────────────────────────────────────────────────────── */
.final-cta { background: var(--surface-alt); border-radius: 24px; max-width: 900px; }
.install-help {
  margin: 18px auto 0; max-width: 460px; text-align: left; font-size: 13px; color: var(--text2);
}
.install-help summary { cursor: pointer; font-weight: 700; color: var(--text); text-align: center; }
.install-help ol { margin: 10px 0 0; padding-left: 20px; list-style: decimal; display: flex; flex-direction: column; gap: 6px; }

/* ── Footer ───────────────────────────────────────────────────────────── */
.site-footer { max-width: 960px; margin: 0 auto; padding: 40px 24px 56px; text-align: center; }
.footer-top { display: flex; flex-direction: column; align-items: center; gap: 14px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
@media (min-width: 640px) { .footer-top { flex-direction: row; justify-content: space-between; } }
.footer-nav { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; font-size: 14px; }
.footer-nav a { color: var(--text2); text-decoration: none; }
.footer-legal { margin-top: 20px; font-size: 13px; color: var(--text2); }
.muted { color: var(--text2); }
.small { font-size: 13px; }

/* ── Accessibility ───────────────────────────────────────────────────────── */
.skip { position: absolute; left: 8px; top: -60px; background: var(--accent); color: var(--accent-ink); padding: 10px 14px; border-radius: 8px; z-index: 50; font-weight: 700; }
.skip:focus { top: 8px; }
:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }
main:focus { outline: none; }
.pause-anim { margin-top: 8px; min-height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--text2); background: transparent; color: var(--text); font: inherit; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }

/* Phones: the header has room for the brand, the language switch and ONE button; the organizer login is in the footer. */
@media (max-width: 479px) { .topbar > .topbar-extra { display: none; } }
/* WCAG 2.2 target size: footer links are at least 24 px tall. */
.footer-nav a, .footer-legal a { display: inline-block; padding: 3px 0; }
