/* Shared styles for the Indonesian (/) and English (/en/) landing pages. */

/* =========================
   TOKENS
   A neutral, product-first system for a professional audience: white
   and zinc surfaces, one brand blue for actions, Geist for all
   text and Geist Mono for timestamps. Fonts are self-hosted because
   the CSP only allows font-src 'self'.
========================= */
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/geist-latin-wght-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/geist-mono-latin-wght-normal.woff2") format("woff2");
}

:root {
  --bg: #ffffff;
  --bg-subtle: #fafafa;
  --bg-muted: #f4f4f5;
  --ink: #18181b;
  --ink-muted: #3f3f46;
  --ink-subtle: #5f6879;
  --line: #ececee;
  --line-strong: #d4d4d8;

  --brand: #1a73e8;
  --brand-hover: #155fc0;
  --brand-soft: #eef4fd;
  --brand-line: #c9dcfa;
  --brand-ink: #155fc0;
  --highlight: #fff0b3;
  --live: #11764f;
  --live-bg: #e7f5ee;
  --chat: #9a5b13;
  --chat-bg: #fbf1e3;


  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px rgba(14, 19, 33, 0.06);
  --shadow-md: 0 6px 16px rgba(14, 19, 33, 0.07);
  --shadow-lg: 0 1px 2px rgba(14, 19, 33, 0.04), 0 24px 60px -12px rgba(14, 19, 33, 0.18);

  --max-width: 1180px;
  --gutter: 48px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

button {
  font-family: inherit;
}

ul,
ol {
  list-style: none;
}

[hidden] {
  display: none !important;
}

.sprite {
  position: absolute;
}

.container {
  width: min(var(--max-width), calc(100% - var(--gutter)));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 200;
  padding: 8px 14px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-md);
  font-size: 14px;
}

.skip-link:focus {
  top: 12px;
}

/* =========================
   PRIMITIVES
========================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 550;
  white-space: nowrap;
  transition: background 0.15s var(--ease-out), border-color 0.15s var(--ease-out);
  cursor: pointer;
}

.btn-sm {
  min-height: 38px;
  padding: 0 14px;
  font-size: 14px;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 1px 2px rgba(63, 50, 150, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.btn-primary:hover {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
}

.btn-secondary {
  background: var(--bg);
  border-color: var(--line-strong);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--bg-subtle);
}

/* =========================
   NAV
========================= */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  height: 66px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.logo-dot {
  color: var(--brand);
}

.logo-mark {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-signin {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
  padding: 8px 10px;
}

.nav-signin:hover {
  color: var(--ink);
}

/* =========================
   FOOTER (shared with the support and legal pages)
========================= */

footer {
  padding: 64px 0 32px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}

.footer-brand p {
  margin-top: 12px;
  max-width: 280px;
  font-size: 14px;
  color: var(--ink-muted);
}

.footer-links {
  display: flex;
  gap: 72px;
}

.footer-col h2 {
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 600;
}

.footer-col a {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--ink-muted);
}

.footer-col a:hover {
  color: var(--ink);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding-top: 24px;
  font-size: 13px;
  color: var(--ink-subtle);
}

/* =========================
   CONVERSION: repeated install prompts
========================= */

.mobile-cta {
  display: none;
}

/* =========================
   LANGUAGE SWITCHING
========================= */

.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;
}

.lang-switch {
  display: flex;
  gap: 16px;
}

.lang-switch a {
  color: var(--ink-subtle);
}

.lang-switch a:hover {
  color: var(--ink);
}

.lang-switch a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1000px) {
  .nav-links {
    display: none;
  }
}

@media (max-width: 860px) {
  :root {
    --gutter: 32px;
  }

  .footer-top {
    flex-direction: column;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 40px;
  }
}

@media (max-width: 560px) {
  .nav-signin {
    display: none;
  }

  /* The sticky bottom bar carries the install button on phones. */
  .nav-actions .btn {
    display: none;
  }

  /* Indonesian labels run longer; let buttons wrap instead of overflowing. */
  .btn {
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }

  /* On phones the install button stays one thumb away. */
  .mobile-cta {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
  }

  .mobile-cta .btn {
    width: 100%;
  }

  body {
    padding-bottom: 72px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

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