/* thefamilyclan.com: same colours, type and feel as the app. No external requests (fonts are self-hosted). */

@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url('/assets/fonts/inter-400.woff') format('woff'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-display: swap; src: url('/assets/fonts/inter-600.woff') format('woff'); }
@font-face { font-family: 'Inter'; font-weight: 700; font-display: swap; src: url('/assets/fonts/inter-700.woff') format('woff'); }
@font-face { font-family: 'Inter'; font-weight: 800; font-display: swap; src: url('/assets/fonts/inter-800.woff') format('woff'); }
@font-face { font-family: 'Symbols'; font-display: block; src: url('/assets/fonts/symbols.woff') format('woff'); }

:root {
  --bg: #f4f0e9;
  --surface: #ffffff;
  --surface-muted: #eee9e1;
  --border: #e3dcd1;
  --text: #1a1a1a;
  --text-muted: #5f5a54;
  --primary: #ff6b35;
  --primary-text: #c2410c;
  --primary-button: #cf4a10;
  --primary-button-end: #b23c0b;
  --primary-tint: #ffede2;
  --success-text: #1e7a45;
  --success-tint: #dcf2e4;
  --secondary-text: #004e89;
  --secondary-tint: #dfe9f4;
  --warning-text: #9a5b00;
  --warning-tint: #fbeacb;
  --radius: 20px;
  --max: 1280px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12110f;
    --surface: #1c1a17;
    --surface-muted: #262320;
    --border: #34302b;
    --text: #f5f3ef;
    --text-muted: #b8b2a9;
    --primary-text: #ff9a6e;
    --primary-tint: #2b1a11;
    --success-text: #5fd893;
    --success-tint: #12271b;
    --secondary-text: #8cb8e8;
    --secondary-tint: #16212c;
    --warning-text: #f5b547;
    --warning-tint: #2a2112;
  }
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

a { color: var(--primary-text); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; display: block; }

.icon {
  font-family: 'Symbols';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  display: inline-block;
  font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  user-select: none;
}

.wrap { width: min(100% - 48px, var(--max)); margin-inline: auto; }
@media (max-width: 560px) { .wrap { width: min(100% - 32px, var(--max)); } }

/* Header */
.site-header { padding: 20px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 20px; }
.brand img { width: 40px; height: 40px; border-radius: 12px; }
.nav { display: flex; gap: 20px; font-weight: 600; font-size: 15px; }
.nav a { color: var(--text-muted); text-decoration: none; }
.nav a:hover { color: var(--text); }

/* Hero */
.hero { padding: 48px 0 32px; text-align: center; }
.hero img.app-icon { width: 104px; height: 104px; border-radius: 28px; margin: 0 auto 28px; box-shadow: 0 16px 40px rgb(207 74 16 / 0.35); }
.eyebrow { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--primary-tint); color: var(--primary-text); font-weight: 700; font-size: 14px; letter-spacing: 0.02em; margin-bottom: 20px; }
h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.08; letter-spacing: -0.02em; font-weight: 800; margin: 0 auto 18px; max-width: 16ch; }
.lead { font-size: clamp(18px, 2.4vw, 21px); color: var(--text-muted); max-width: 40ch; margin: 0 auto 32px; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 16px;
  font-weight: 700; font-size: 16px; text-decoration: none; border: 0; cursor: pointer;
  font-family: inherit;
}
.button.primary { background: linear-gradient(135deg, var(--primary-button), var(--primary-button-end)); color: #fff; box-shadow: 0 8px 22px rgb(207 74 16 / 0.3); }
.button.secondary { background: var(--surface); color: var(--text); border: 1.5px solid var(--border); }
.button[aria-disabled='true'] { opacity: 0.55; pointer-events: none; }
.note { color: var(--text-muted); font-size: 14px; margin-top: 14px; }

/* Features */
.section { padding: 56px 0; }
.section h2 { font-size: clamp(26px, 4vw, 36px); line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 12px; font-weight: 800; text-align: center; }
.section .lead { margin-bottom: 40px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.card h3 { margin: 16px 0 6px; font-size: 19px; }
.card p { margin: 0; color: var(--text-muted); font-size: 16px; }
.badge { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; }
.badge.primary { background: var(--primary-tint); color: var(--primary-text); }
.badge.success { background: var(--success-tint); color: var(--success-text); }
.badge.secondary { background: var(--secondary-tint); color: var(--secondary-text); }
.badge.warning { background: var(--warning-tint); color: var(--warning-text); }

.promise { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.promise div { display: flex; gap: 14px; align-items: flex-start; }
.promise .icon { color: var(--success-text); }
.promise p { margin: 0; color: var(--text-muted); font-size: 16px; }
.promise strong { color: var(--text); display: block; }

/* Long-form pages (privacy, terms) */
.doc { padding: 24px 0 64px; }
.doc .wrap { max-width: 760px; }
.doc h1 { text-align: left; margin: 16px 0 8px; max-width: none; font-size: clamp(30px, 5vw, 44px); }
.doc .updated { color: var(--text-muted); margin: 0 0 32px; }
.doc h2 { font-size: 22px; margin: 40px 0 10px; }
.doc h3 { font-size: 18px; margin: 24px 0 8px; }
.doc p, .doc li { color: var(--text); }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 16px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.doc th { font-weight: 700; background: var(--surface-muted); }
.summary { background: var(--primary-tint); border-radius: var(--radius); padding: 20px 24px; margin: 0 0 8px; }
.summary ul { margin: 8px 0 0; }
mark.todo { background: #fde68a; color: #1a1a1a; padding: 0 4px; border-radius: 4px; }

/* Invite page */
.invite { padding: 32px 0 64px; text-align: center; }
.invite .card { max-width: 520px; margin: 0 auto; padding: 32px 24px; }
.code {
  display: inline-flex; align-items: center; gap: 12px; margin: 8px 0 24px;
  font-size: 32px; font-weight: 800; letter-spacing: 0.08em;
  background: var(--surface-muted); border-radius: 16px; padding: 12px 20px;
}
.code button { background: none; border: 0; color: var(--primary-text); cursor: pointer; padding: 4px; }
.steps { text-align: left; margin: 24px auto 0; padding: 0; list-style: none; display: grid; gap: 14px; max-width: 420px; }
.steps li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-muted); }
.steps b { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--primary-tint); color: var(--primary-text); display: grid; place-items: center; font-size: 14px; }

/* Footer */
.site-footer { padding: 32px 0 48px; border-top: 1px solid var(--border); margin-top: 24px; color: var(--text-muted); font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.site-footer nav { display: flex; gap: 20px; }
.site-footer a { color: var(--text-muted); }

@media (max-width: 560px) {
  .nav { display: none; }
  .hero { padding-top: 24px; }
  .section { padding: 40px 0; }
}

/* Store badges */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  position: relative; display: inline-flex; align-items: center; gap: 12px; min-height: 58px; padding: 8px 20px 8px 16px;
  border-radius: 14px; background: #000; color: #fff; text-decoration: none; border: 1px solid #3a3a3a;
}
.store .store-logo { width: 26px; height: 26px; flex: none; }
.store span { display: flex; flex-direction: column; line-height: 1.1; font-weight: 600; font-size: 20px; letter-spacing: -0.01em; }
.store small { font-size: 11px; font-weight: 500; letter-spacing: 0.02em; opacity: 0.9; }
.store[aria-disabled='true'] { cursor: default; }
.store .soon {
  position: absolute; top: -9px; right: -8px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700;
  background: var(--primary-tint); color: var(--primary-text); border: 1px solid var(--bg);
}
