/* =========================================================================
   ShareRound shared site styles
   Single source of truth for site-wide design tokens, top nav, and footer.
   Link this from every browseable page: <link rel="stylesheet" href="/css/site.css">
   Page-specific layout can live in each page's own <style> block.
   ========================================================================= */

:root {
  --cream: #FFF4DD;
  --cream-deep: #ffe8c0;
  --orange: #CA751A;
  --orange-dark: #a85e12;
  --orange-light: #f0a04a;
  --brown: #3d2000;
  --text: #2c1a00;
  --text-muted: #7a5c35;
  --card: #ffffff;
  --nav-height: 64px;
  /* Fonts — the single source of truth for the whole site. To change a font
     everywhere, edit these two values. The app renders with the platform
     system font (San Francisco on iOS, Roboto on Android); --font-mono is only
     used for fixed-width bits like the invite code. */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', 'Segoe UI Mono', 'Roboto Mono', Menlo, Consolas, monospace;
}

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

html, body {
  min-height: 100%;
  background-color: var(--cream);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

/* Form controls don't inherit font-family by default — make them, so the
   whole site's typography flows from the body font above. */
button, input, select, textarea { font-family: inherit; }

a { color: var(--orange); }

/* The <site-header>/<site-footer> custom elements are layout-transparent so
   their inner <header>/<footer> behave exactly as if written inline (keeps
   the sticky nav sticking and the flex-column pages pushing the footer down). */
site-header, site-footer { display: contents; }

/* ── Top navigation ─────────────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: rgba(255, 244, 221, 0.9);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid rgba(202, 117, 26, 0.15);
}

.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  height: var(--nav-height);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(202, 117, 26, 0.25);
}

.nav-wordmark {
  font-family: var(--font-sans);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-link:hover { background: rgba(202, 117, 26, 0.1); color: var(--orange-dark); }

.nav-link.is-active {
  color: var(--orange);
  background: rgba(202, 117, 26, 0.12);
  font-weight: 600;
}

/* Not-yet-built items: visible in the nav but not clickable */
.nav-link-soon {
  color: #b8977a;
  cursor: default;
}

.nav-link-soon:hover { background: none; color: #b8977a; }

.soon-badge {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--orange);
  background: #fff5e6;
  border: 1px solid rgba(202, 117, 26, 0.25);
  border-radius: 20px;
  padding: 2px 7px;
  line-height: 1;
}

/* ── Shared footer ──────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid rgba(202, 117, 26, 0.15);
  margin-top: 39px;
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 24px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.footer-inner a { color: var(--orange); text-decoration: none; }
.footer-inner a:hover { text-decoration: underline; }
.footer-meta { color: #b8977a; margin-top: 14px; }

/* Footer link row */
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
}

.footer-links a,
.footer-links .footer-link-soon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 500;
}

.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--orange); text-decoration: underline; }

/* How-To / Contact placeholders: visible but not yet clickable */
.footer-link-soon { color: #b8977a; cursor: default; }

/* ── Shared buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: 12px;
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background 0.18s ease, transform 0.15s ease, box-shadow 0.18s ease;
}

.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 4px 16px rgba(202, 117, 26, 0.3);
}

.btn-primary:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(202, 117, 26, 0.38);
}

.btn-secondary {
  background: var(--cream);
  color: var(--orange);
  border: 1.5px solid rgba(202, 117, 26, 0.3);
}

.btn-secondary:hover {
  background: var(--cream-deep);
  border-color: var(--orange);
  transform: translateY(-1px);
}

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

/* ── Hero banner illustration + headline (home & download pages) ────── */
.hero-banner {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  animation: fadeUp 0.7s ease 0.15s both;
}

.hero-banner img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-title {
  width: 100%;
  margin: 5px 0 0;
  padding: 0 24px;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--brown);
  line-height: 1.1;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
  animation: fadeUp 0.7s ease 0.2s both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Legal pages (Terms of Use, Privacy Policy) ─────────────────────── */
.legal {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto;
  padding: 56px 24px 24px;
}

.legal h1 {
  font-family: var(--font-sans);
  font-size: clamp(1.9rem, 4.5vw, 2.4rem);
  font-weight: 700;
  color: var(--brown);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 12px;
}

.legal .legal-updated {
  font-size: 0.9rem;
  color: #b8977a;
  margin-bottom: 24px;
}

.legal .legal-intro {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 8px;
}

.legal h2 {
  font-family: var(--font-sans);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--brown);
  margin: 34px 0 12px;
}

.legal p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.72;
  margin-bottom: 14px;
}

.legal ul {
  margin: 0 0 14px;
  padding-left: 1.35rem;
}

.legal li {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.72;
  margin-bottom: 8px;
}

.legal a { color: var(--orange); }

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 560px) {
  .nav-inner { padding: 0 16px; gap: 8px; }
  .nav-wordmark { font-size: 1.2rem; }
  /* Keep the nav uncluttered on phones: hide the not-yet-live items */
  .nav-link-soon { display: none; }
  .nav-link { padding: 8px 10px; font-size: 0.9rem; }
  .legal { padding-top: 40px; }
}
