/* GrowRo landing pages — shared styles.
 * Used by index.html (home), about.html, faq.html, contact.html,
 * privacy.html, terms.html. Page-specific styles can stay inline in
 * each page's <style> block. */

:root {
  --green-1: #00a85a;
  --green-2: #00d97e;
  --green-deep: #14532d;
  --green-soft: #f0fdf4;
  --ink: #14171f;
  --ink-soft: #2b303d;
  --muted: #6b7280;
  --line: #e7eaf0;
  --bg: #ffffff;
  --bg-alt: #f6f8fb;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
/* Reserve the scrollbar gutter on every page so centered content (incl. the
   header brand) doesn't shift horizontally when navigating between a scrolling
   page (this long landing) and a short one (the auth pages). MUST stay in sync
   with dashboard/app.css. (Kaz 2026-05-30) */
html { scrollbar-gutter: stable; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}
a { color: var(--green-1); }

/* ---- Sticky header / nav ---- */
header.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--green-1) 0%, var(--green-2) 100%);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.5px;
}
.brand-name { font-size: 16px; font-weight: 800; letter-spacing: -0.2px; }
.nav-links {
  display: flex;
  gap: 22px;
  align-items: center;
}
.nav-links a {
  font-size: 13.5px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}
.nav-links a:hover { color: var(--green-1); }
.nav-links a.active { color: var(--green-1); }

/* ---- Section base ---- */
section { padding: 80px 24px; }
section.alt { background: var(--bg-alt); }
.container { max-width: 880px; margin: 0 auto; }
.container-narrow { max-width: 680px; margin: 0 auto; }
.center { text-align: center; }

h1, h2, h3 { letter-spacing: -0.5px; }
h1 {
  font-size: 40px;
  line-height: 1.1;
  font-weight: 800;
  margin: 0 0 18px;
}
h2 {
  font-size: 28px;
  line-height: 1.2;
  font-weight: 800;
  margin: 36px 0 14px;
}
h3 {
  font-size: 18px;
  font-weight: 800;
  margin: 24px 0 8px;
}
p { margin: 0 0 14px; font-size: 16px; color: var(--ink-soft); }
ul, ol { margin: 0 0 14px; padding-left: 22px; color: var(--ink-soft); }
li { margin-bottom: 6px; }

/* Document pages (privacy, terms) — narrower for readability */
.doc {
  padding: 60px 24px 80px;
}
.doc .meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 32px;
}
.doc-banner {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 13.5px;
  line-height: 1.5;
  margin-bottom: 32px;
}
.doc-banner b { color: #7c2d12; }

/* CCPA / state-rights category table on privacy page */
.rights-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 28px;
  font-size: 14px;
}
.rights-table th,
.rights-table td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.rights-table th {
  background: var(--bg-alt);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--ink-soft);
}
.rights-table td:last-child {
  text-align: center;
  font-weight: 700;
  width: 80px;
}

/* ---- Footer ---- */
footer.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
  padding: 36px 24px 48px;
}
.footer-inner {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 13px;
  color: var(--muted);
}
.footer-inner a {
  color: var(--muted);
  text-decoration: none;
  margin-right: 16px;
}
.footer-inner a:hover {
  color: var(--ink);
  text-decoration: underline;
}
.footer-brand { font-weight: 700; color: var(--ink); }
.footer-links { display: flex; flex-wrap: wrap; }

/* Roblox trademark disclaimer — required visibility on every page where the
   brand is mentioned. Wording adapted from Roblox's own B2B gift card terms
   (the form they use to describe acceptable third-party usage). */
.footer-disclaimer {
  max-width: 980px;
  margin: 24px auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.55;
  font-style: italic;
}
/* Copyright line — sits below the trademark disclaimer. Standard
   "© <first-publication>–<current-year> <legal entity>" pattern. */
.footer-copyright {
  max-width: 980px;
  margin: 14px auto 0;
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.55;
}

/* ---- Mobile ---- */
@media (max-width: 720px) {
  section { padding: 56px 20px; }
  h1 { font-size: 30px; }
  h2 { font-size: 22px; }
  .nav-inner { padding: 12px 16px; }
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 12.5px; }
  .footer-inner { flex-direction: column; gap: 12px; }
}

/* ============================================================ */
/*   Auth-aware top-bar widget (block 5.5-product, 2026-05-08)   */
/*   Lives inside .nav-links on every landing page. Cookie-aware */
/*   via /api/auth/me. Renders Sign-in/Join when logged out, or  */
/*   an avatar chip with dropdown when logged in.                */
/* ============================================================ */

#growro-auth-bar {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
  margin-left: 10px;
  padding-left: 14px;
  border-left: 1px solid var(--line);
}
.growro-auth-bar-skeleton {
  display: inline-block;
  width: 64px;
  height: 28px;
  background: var(--bg-alt);
  border-radius: 6px;
}
.growro-auth-bar-signin {
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink) !important;
}
.growro-auth-bar-signin:hover { color: var(--green-1) !important; }
.growro-auth-bar-join {
  display: inline-block;
  padding: 7px 14px;
  background: var(--ink);
  color: white !important;
  text-decoration: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  transition: background 0.15s ease;
}
.growro-auth-bar-join:hover { background: var(--green-1); }

.growro-auth-bar-signed-in { position: relative; }
.growro-auth-bar-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px 5px 5px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  color: var(--ink);
  transition: border-color 0.15s ease;
}
.growro-auth-bar-chip:hover { border-color: var(--green-1); }
.growro-auth-bar-avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-1), var(--green-2));
  color: white;
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.growro-auth-bar-name {
  font-size: 13px;
  font-weight: 600;
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.growro-auth-bar-caret { color: var(--muted); font-size: 10px; }

.growro-auth-bar-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(20, 23, 31, 0.08);
  padding: 12px;
  z-index: 50;
}
.growro-auth-bar-menu[hidden] { display: none !important; }
.growro-auth-bar-email {
  font-size: 12px;
  color: var(--muted);
  padding: 4px 8px 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
  word-break: break-all;
}
.growro-auth-bar-link {
  display: block;
  width: 100%;
  padding: 8px 10px;
  text-align: left;
  text-decoration: none;
  color: var(--ink) !important;
  font-size: 13px;
  font-weight: 500;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 6px;
  font-family: inherit;
}
.growro-auth-bar-link:hover { background: var(--bg-alt); color: var(--green-1) !important; }
.growro-auth-bar-signout {
  border-top: 1px solid var(--line);
  margin-top: 4px;
  padding-top: 12px;
  color: var(--muted) !important;
}

@media (max-width: 720px) {
  #growro-auth-bar {
    margin-left: 6px;
    padding-left: 8px;
  }
  .growro-auth-bar-name { display: none; }
}
