/* Familiar - Remember Everyone
 * Obsidian Glass (Platinum & Emerald) Static Stylesheet
 * Zero-build-step, mobile-first, WCAG AA contrast
 */

:root {
  --bg-obsidian: #08090a;
  --bg-surface: rgba(20, 22, 26, 0.80);
  --bg-surface-hover: rgba(28, 31, 37, 0.88);
  --bg-elevated: rgba(255, 255, 255, 0.04);

  --border-hairline: rgba(255, 255, 255, 0.10);
  --border-specular: rgba(255, 255, 255, 0.22);
  --border-emerald: rgba(16, 185, 129, 0.32);

  --text-primary: #f4f6f8;
  --text-secondary: #b4bcc8;
  --text-muted: #8b95a5;

  --emerald-400: #34d399;
  --emerald-500: #10b981;
  --emerald-600: #059669;
  --emerald-glow: rgba(16, 185, 129, 0.16);
  --platinum-glow: rgba(226, 232, 240, 0.08);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-pill: 9999px;

  --font-sans: 'Plus Jakarta Sans', 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --max-width: 980px;
  --prose-width: 740px;
}

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

html {
  background-color: var(--bg-obsidian);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg-obsidian);
  background-image:
    radial-gradient(ellipse 80% 55% at 50% -10%, var(--platinum-glow), transparent 65%),
    radial-gradient(ellipse 60% 45% at 85% 15%, var(--emerald-glow), transparent 60%),
    radial-gradient(ellipse 50% 40% at 10% 85%, rgba(16, 185, 129, 0.08), transparent 65%);
  background-attachment: fixed;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
}

a {
  color: var(--emerald-400);
  text-decoration: none;
  transition: color 0.18s ease, opacity 0.18s ease;
}

a:hover,
a:focus-visible {
  color: #6ee7b7;
  text-decoration: underline;
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 2px solid var(--emerald-400);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Layout */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.container--prose {
  max-width: var(--prose-width);
}

main {
  flex: 1;
  padding-bottom: 72px;
}

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(8, 9, 10, 0.76);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-hairline);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand:hover {
  color: var(--text-primary);
  text-decoration: none;
}

.brand__icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--border-hairline);
  object-fit: cover;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.92rem;
}

.nav a {
  color: var(--text-secondary);
  font-weight: 500;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text-primary);
  text-decoration: none;
}

/* Glass Card */
.glass-card {
  position: relative;
  background: var(--bg-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow:
    inset 0 1px 0 0 var(--border-specular),
    0 18px 40px -24px rgba(0, 0, 0, 0.85);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.glass-card--interactive:hover {
  background: var(--bg-surface-hover);
  border-color: rgba(255, 255, 255, 0.16);
}

.glass-card--emerald {
  border-color: var(--border-emerald);
  box-shadow:
    inset 0 1px 0 0 rgba(52, 211, 153, 0.35),
    0 20px 44px -24px rgba(16, 185, 129, 0.28);
}

/* Hero */
.hero {
  padding: 64px 0 48px;
  text-align: center;
}

.hero__icon-wrap {
  display: inline-flex;
  padding: 6px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-hairline);
  box-shadow:
    inset 0 1px 0 0 var(--border-specular),
    0 20px 50px -12px rgba(16, 185, 129, 0.28);
  margin-bottom: 24px;
}

.hero__icon {
  width: 84px;
  height: 84px;
  border-radius: 20px;
  display: block;
  object-fit: cover;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid var(--border-emerald);
  color: var(--emerald-400);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}

.pill__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald-400);
  box-shadow: 0 0 10px var(--emerald-400);
}

.hero__title {
  margin: 0 auto 16px;
  max-width: 14ch;
  font-size: clamp(2.4rem, 6vw, 3.85rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__subtitle {
  margin: 0 auto 30px;
  max-width: 56ch;
  font-size: clamp(1.02rem, 2.2vw, 1.18rem);
  color: var(--text-secondary);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn--primary {
  background: linear-gradient(180deg, #10b981 0%, #059669 100%);
  color: #04120c;
  border-color: rgba(110, 231, 183, 0.4);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.35),
    0 10px 26px -10px rgba(16, 185, 129, 0.65);
}

.btn--primary:hover {
  background: linear-gradient(180deg, #34d399 0%, #10b981 100%);
  color: #03110b;
}

.btn--secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border-color: var(--border-hairline);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.12);
}

.btn--secondary:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.20);
  color: #ffffff;
}

/* Sections */
.section {
  padding: 28px 0;
}

.section__header {
  margin-bottom: 24px;
}

.section__eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--emerald-400);
  margin: 0 0 8px;
}

.section__title {
  margin: 0 0 8px;
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

.section__desc {
  margin: 0;
  color: var(--text-secondary);
  max-width: 60ch;
}

/* Feature Grid */
.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 760px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid var(--border-emerald);
  color: var(--emerald-400);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 16px;
}

.feature-card__title {
  margin: 0 0 10px;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}

.feature-card__body {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.feature-card__meta {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-hairline);
  font-size: 0.84rem;
  color: var(--text-muted);
}

/* Support & FAQ */
.support-banner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

@media (min-width: 680px) {
  .support-banner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}

.faq-item__q {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.faq-item__a {
  margin: 0;
  font-size: 0.94rem;
  color: var(--text-secondary);
}

/* Legal / Prose Pages */
.page-header {
  padding: 48px 0 24px;
}

.page-header__title {
  margin: 0 0 10px;
  font-size: clamp(1.9rem, 4.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.page-header__meta {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.prose h2 {
  margin: 28px 0 10px;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p {
  margin: 0 0 14px;
  color: var(--text-secondary);
}

.prose ul {
  margin: 0 0 16px;
  padding-left: 20px;
  color: var(--text-secondary);
}

.prose li {
  margin-bottom: 8px;
}

.prose strong {
  color: var(--text-primary);
}

.prose code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-hairline);
  color: var(--emerald-400);
}

/* Callback / Centered Card */
.center-stage {
  min-height: calc(100vh - 140px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
}

.callback-card {
  width: 100%;
  max-width: 460px;
  text-align: center;
}

.callback-card__icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  border: 1px solid var(--border-hairline);
  margin: 0 auto 18px;
  display: block;
}

.callback-card__title {
  margin: 0 0 10px;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.callback-card__body {
  margin: 0 0 24px;
  color: var(--text-secondary);
  font-size: 0.96rem;
}

.callback-card__hint {
  margin: 18px 0 0;
  font-size: 0.84rem;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-hairline);
  padding: 28px 0 36px;
  background: rgba(8, 9, 10, 0.6);
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

@media (min-width: 640px) {
  .site-footer__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.site-footer__links a {
  color: var(--text-secondary);
}

.site-footer__links a:hover {
  color: var(--text-primary);
}
