/* Barkada website — shared styles. Tokens copied from Barkada_Brand_Guide.html
   (the app's own design system source of truth) so the site matches the app,
   not a separate guess at brand colors. */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #EDE3D0;
  --surface: #FBF6EA;
  --surface-muted: #EFE6D2;
  --border: #E0D3B8;
  --border-accent: #E9C4AE;
  --ink: #3A322C;
  --ink-soft: #6B6055;
  --ink-faint: #9A8E7F;
  --accent: #C9765A;
  --accent-tint: #F6E4D8;
  --accent-dark: #B0603F;
  --sage: #7C8B6F;
  --sage-dark: #5F6E52;
  --danger: #A34D3A;
  --white: #ffffff;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.5;
}

h1, h2, h3, .wordmark {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  margin: 0;
}

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

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

header.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; max-width: 720px; margin: 0 auto;
}
header.site-header .brand { display: flex; align-items: center; gap: 10px; }
header.site-header .brand img { width: 32px; height: 32px; border-radius: 9px; }
header.site-header .brand span { font-size: 19px; }
header.site-header nav a {
  color: var(--ink-soft); text-decoration: none; font-size: 13px; font-weight: 600;
  margin-left: 20px;
}

.hero {
  text-align: center; padding: 48px 24px 40px;
}
.hero img.hero-icon {
  width: 88px; height: 88px; border-radius: 24px; margin-bottom: 22px;
  box-shadow: 0 8px 24px rgba(58,50,44,0.15);
}
.hero h1 { font-size: 40px; line-height: 1.15; color: var(--ink); }
.hero .tagline { font-size: 17px; color: var(--ink-soft); margin-top: 14px; max-width: 480px; margin-left: auto; margin-right: auto; }

.cta-row {
  display: flex; gap: 12px; justify-content: center; margin-top: 30px; flex-wrap: wrap;
}
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: 14px; font-weight: 700; font-size: 14px;
  text-decoration: none; border: 2px solid transparent;
}
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); }
.btn[aria-disabled="true"] { opacity: 0.55; pointer-events: none; }

.section {
  background: var(--surface); border: 2px solid var(--border); border-radius: 20px;
  padding: 32px; margin: 20px 0;
}
.section h2 { font-size: 22px; margin-bottom: 14px; }
.section p { color: var(--ink-soft); font-size: 15px; }

/* Hero feature (Barkada Type) -- distinct tinted card so it reads as the
   lead feature, not a fourth peer in the grid below. Same accent-tint/
   border-accent pairing the app's own theme tokens already use for
   "this card matters more" treatment. */
.feature-hero {
  background: var(--accent-tint); border: 2px solid var(--border-accent); border-radius: 16px;
  padding: 24px; margin-top: 8px; margin-bottom: 16px; text-align: left;
}
.feature-hero .icon { font-size: 30px; margin-bottom: 8px; display: block; }
.feature-hero h3 { font-size: 18px; margin-bottom: 6px; color: var(--accent-dark); }
.feature-hero p { font-size: 14px; margin: 0; color: var(--ink-soft); }

.feature-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 8px;
}
.feature { padding: 6px 0; }
.feature .icon { font-size: 22px; margin-bottom: 6px; display: block; }
.feature h3 { font-size: 15px; margin-bottom: 4px; }
.feature p { font-size: 13px; margin: 0; }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }

footer.site-footer {
  text-align: center; padding: 36px 24px 48px; color: var(--ink-faint); font-size: 12px;
}
footer.site-footer a { color: var(--ink-soft); text-decoration: none; margin: 0 8px; }
footer.site-footer a:hover { text-decoration: underline; }

/* Invite preview page */
.invite-card {
  background: var(--surface); border: 2px solid var(--border-accent); border-radius: 24px;
  padding: 40px 32px; text-align: center; margin: 60px auto 0; max-width: 420px;
}
.invite-card .group-icon {
  width: 64px; height: 64px; border-radius: 18px; background: var(--accent-tint);
  display: flex; align-items: center; justify-content: center; font-size: 30px;
  margin: 0 auto 18px;
}
.invite-card h1 { font-size: 24px; margin-bottom: 8px; }
.invite-card .sub { color: var(--ink-soft); font-size: 14px; margin-bottom: 22px; }
.invite-card .code-box {
  background: var(--surface-muted); border: 1px dashed var(--border);
  border-radius: 12px; padding: 10px 14px; font-family: monospace; font-size: 15px;
  letter-spacing: 2px; margin-top: 18px; color: var(--ink-soft);
}
.status-msg { font-size: 13px; color: var(--danger); margin-top: 10px; }
.skeleton { color: var(--ink-faint); font-size: 13px; }

/* Legal pages */
.legal h1 { font-size: 26px; margin-bottom: 6px; }
.legal .updated { color: var(--ink-faint); font-size: 12px; margin-bottom: 24px; }
.legal h2 { font-size: 17px; margin-top: 26px; margin-bottom: 8px; }
.legal p, .legal li { color: var(--ink-soft); font-size: 14px; line-height: 1.7; }
.legal .placeholder-note {
  background: var(--accent-tint); border: 1px solid var(--border-accent); border-radius: 12px;
  padding: 14px 16px; font-size: 13px; color: var(--ink); margin-bottom: 24px;
}
