/* OpenSocial — the holding company site.
   Neutral look: white or black canvas, system font, one action blue (plus a violet used only
   in homepage gradients). No logos.
   All page content is centred. */

:root {
  --bg: #ffffff;
  --fg: #0a0a0a;
  --muted: #6b6b6b;
  --surface: #f5f5f5;
  --surface-high: #efefef;
  --divider: #e6e6e6;
  --outline: #dbdbdb;
  --action: #0095f6;
  --action-pressed: #1877f2;
  --action-soft: #e6f4fe;
  --accent-2: #7b61ff;
  --success: #1a9e4b;
  --radius-card: 18px;
  --radius-btn: 8px;
  --max: 1120px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000;
    --fg: #f5f5f5;
    --muted: #a8a8a8;
    --surface: #121212;
    --surface-high: #1c1c1c;
    --divider: #262626;
    --outline: #363636;
    --action-soft: #0b2a40;
    --accent-2: #9b87ff;
    --success: #3ecf73;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #000000;
  --fg: #f5f5f5;
  --muted: #a8a8a8;
  --surface: #121212;
  --surface-high: #1c1c1c;
  --divider: #262626;
  --outline: #363636;
  --action-soft: #0b2a40;
  --accent-2: #9b87ff;
  --success: #3ecf73;
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 50; background: var(--bg); padding: 8px 12px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--divider);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -0.03em; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { text-decoration: none; font-size: 15px; font-weight: 500; padding: 8px 12px; border-radius: var(--radius-btn); color: var(--muted); }
.nav a:hover { color: var(--fg); background: var(--surface); }
.nav a[aria-current="page"] { color: var(--fg); font-weight: 650; }

.menu { display: none; margin-left: auto; position: relative; }
.menu summary { list-style: none; cursor: pointer; padding: 8px; border-radius: var(--radius-btn); }
.menu summary::-webkit-details-marker { display: none; }
.menu summary svg { width: 24px; height: 24px; display: block; }
.menu[open] summary { background: var(--surface); }
.menu .sheet {
  position: absolute; right: 0; top: 48px; min-width: 200px; padding: 8px;
  background: var(--bg); border: 1px solid var(--divider); border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0,0,0,.14);
  display: flex; flex-direction: column;
}
.menu .sheet a { text-decoration: none; padding: 10px 12px; border-radius: 10px; font-weight: 500; }
.menu .sheet a:hover { background: var(--surface); }

@media (max-width: 760px) {
  .nav { display: none; }
  .menu { display: block; }
}

/* ---------- centred content ---------- */
main, .site-footer { text-align: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px; border-radius: var(--radius-btn);
  font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer;
  border: 0; background: var(--surface-high); color: var(--fg);
}
.btn:hover { background: var(--outline); }
.btn.primary { background: var(--action); color: #fff; }
.btn.primary:hover { background: var(--action-pressed); }
.btn.sm { height: 36px; padding: 0 14px; font-size: 14px; }
.link { color: var(--action); font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; }

/* ---------- sections ---------- */
section { padding: 72px 0; }
section + section { border-top: 1px solid var(--divider); }
.eyebrow { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 14px; }
.h1 { font-size: clamp(38px, 6.4vw, 68px); font-weight: 800; letter-spacing: -0.035em; }
.h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; }
.lede { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 640px; margin: 20px auto 0; }
.hero { padding: 96px 0 72px; }
.hero .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.section-head { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-bottom: 32px; }

.logo-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 44px; }
.logo-strip a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border: 1px solid var(--divider); border-radius: 999px; text-decoration: none; font-size: 14px; font-weight: 600; }
.logo-strip a:hover { background: var(--surface); }

/* ---------- product cards ---------- */
.grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.grid > * { flex: 1 1 300px; max-width: 360px; }
.card {
  display: flex; flex-direction: column; gap: 14px;
  border: 1px solid var(--divider); border-radius: var(--radius-card);
  padding: 24px; text-decoration: none; background: var(--bg);
  transition: border-color .15s, transform .15s;
}
a.card:hover { border-color: var(--outline); transform: translateY(-2px); }
.card .top { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.card h3 { font-size: 20px; font-weight: 750; }
.card .domain { font-size: 14px; color: var(--muted); }
.card p { color: var(--muted); margin: 0; font-size: 15px; }
.card .foot { margin-top: auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }

.pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--surface-high); font-size: 12.5px; font-weight: 600; color: var(--muted); }
.pill.live { color: var(--success); }
.pill.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------- product detail rows ---------- */
.product { max-width: 720px; margin: 0 auto; padding: 44px 0; border-top: 1px solid var(--divider); }
.product:first-of-type { border-top: 0; padding-top: 8px; }
.product h2 { font-size: 30px; font-weight: 800; }
.product .tagline { font-size: 18px; color: var(--muted); margin: 6px 0 18px; }
.product ul { margin: 0 0 22px; padding: 0; list-style: none; }
.product li { margin-bottom: 6px; }
.product .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.product .meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-bottom: 20px; }

/* ---------- tiles ---------- */
.tiles { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.tiles > * { flex: 1 1 240px; max-width: 300px; }
.tile { background: var(--surface); border-radius: var(--radius-card); padding: 24px; }
.tile .n { font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 10px; }
.tile h3 { font-size: 18px; font-weight: 750; margin-bottom: 8px; }
.tile p { color: var(--muted); margin: 0; font-size: 15px; }

.split { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.prose { font-size: 17px; max-width: 720px; margin: 0 auto; }
.prose ul { list-style: none; padding: 0; }
.prose p { margin-bottom: 1.1em; }
.prose h2 { font-size: 24px; font-weight: 800; margin: 44px 0 12px; }
.prose h2:first-child { margin-top: 0; }

.cta { background: var(--surface); border-radius: 24px; padding: 48px; display: flex; flex-direction: column; gap: 24px; align-items: center; }
.cta .muted { margin-left: auto !important; margin-right: auto !important; }
@media (max-width: 600px) { .cta { padding: 28px; } }

.toc { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 28px 0 8px; }
.toc a { text-decoration: none; font-size: 14px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--surface-high); }
.toc a:hover { background: var(--outline); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--divider); padding: 48px 0 40px; font-size: 14px; color: var(--muted); }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h4 { margin: 0 0 12px; font-size: 13px; color: var(--fg); text-transform: uppercase; letter-spacing: .06em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--fg); }
.site-footer .legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--divider); display: flex; flex-direction: column; align-items: center; gap: 6px; }
@media (max-width: 700px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } .site-footer .about { grid-column: 1 / -1; } }
