/* ============================================================
   GALBREU LLC — shared stylesheet
   Palette
     --paper   #FAFAF8  warm white background
     --ink     #182826  deep green-slate text
     --muted   #5C6B68  secondary text
     --accent  #0E7C7B  desert turquoise (links, marks)
     --copper  #A6683A  small secondary detail
     --line    #E3E5DF  hairlines
   Type
     Display: Archivo (expanded weights)
     Body:    Public Sans
     Mono:    IBM Plex Mono (registry data)
   ============================================================ */

:root {
  --paper: #FAFAF8;
  --paper-2: #F2F3EE;
  --ink: #182826;
  --muted: #5C6B68;
  --accent: #0E7C7B;
  --accent-dark: #0A5C5B;
  --copper: #A6683A;
  --line: #E3E5DF;
  --radius: 6px;
  --measure: 62ch;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: #fff; }

a { color: var(--accent-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }

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

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  display: grid;
  place-items: center;
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.brand-name {
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-stretch: 125%;
  letter-spacing: 0.04em;
  font-size: 1rem;
}

.brand-name span { color: var(--muted); font-weight: 500; }

.site-nav { display: flex; gap: 28px; align-items: center; }

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 500;
}

.site-nav a:hover { color: var(--ink); }

.nav-cta {
  color: var(--paper) !important;
  background: var(--ink);
  padding: 8px 16px;
  border-radius: var(--radius);
  font-weight: 600;
}

.nav-cta:hover { background: var(--accent-dark); }

@media (max-width: 720px) {
  .site-nav a:not(.nav-cta) { display: none; }
}

/* ---------- Hero ---------- */

.hero { padding: 96px 0 72px; border-bottom: 1px solid var(--line); }

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dark);
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 28px;
}

.hero-chip::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.hero h1 {
  font-family: "Archivo", sans-serif;
  font-stretch: 125%;
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  max-width: 16ch;
}

.hero p {
  margin-top: 24px;
  font-size: 1.1875rem;
  color: var(--muted);
  max-width: var(--measure);
}

.hero-actions { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 12px 22px;
  border-radius: var(--radius);
}

.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }

.btn-ghost { border: 1px solid var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-dark); }

/* ---------- Sections ---------- */

.section { padding: 80px 0; border-bottom: 1px solid var(--line); }

.eyebrow {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 14px;
}

.section h2 {
  font-family: "Archivo", sans-serif;
  font-stretch: 115%;
  font-weight: 700;
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  line-height: 1.15;
  margin-bottom: 20px;
}

.section > .wrap > p, .prose p { max-width: var(--measure); color: var(--ink); }
.section p + p { margin-top: 1em; }

.lede { font-size: 1.125rem; }

/* ---------- Registry card (signature element) ---------- */

.registry {
  margin-top: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}

.registry-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.registry-head strong { color: var(--ink); font-weight: 600; }

.registry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.registry-cell {
  padding: 20px;
  border-top: 1px solid var(--line);
}

.registry-grid .registry-cell:nth-child(-n+3) { border-top: 0; }
.registry-cell + .registry-cell { border-left: 1px solid var(--line); }
.registry-grid .registry-cell:nth-child(3n+1) { border-left: 0; }

.registry-cell dt {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.registry-cell dd { font-weight: 600; font-size: 0.9375rem; }

.status-active { color: var(--accent-dark); }

@media (max-width: 720px) {
  .registry-grid { grid-template-columns: 1fr 1fr; }
  .registry-grid .registry-cell:nth-child(3) { border-top: 1px solid var(--line); }
  .registry-grid .registry-cell:nth-child(3n+1) { border-left: 1px solid var(--line); }
  .registry-grid .registry-cell:nth-child(2n+1) { border-left: 0; }
}

/* ---------- Services ---------- */

.services {
  margin-top: 44px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 48px;
}

.service {
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.service h3 {
  font-family: "Archivo", sans-serif;
  font-stretch: 110%;
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.service h3::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
  flex: none;
}

.service p { color: var(--muted); font-size: 0.9688rem; }

@media (max-width: 720px) {
  .services { grid-template-columns: 1fr; }
}

/* ---------- Platform / Citook ---------- */

.platform-card {
  margin-top: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 36px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: start;
}

.platform-card h3 {
  font-family: "Archivo", sans-serif;
  font-stretch: 120%;
  font-weight: 700;
  font-size: 1.75rem;
  color: var(--accent-dark);
  margin-bottom: 14px;
}

.platform-card > div > p { color: var(--ink); max-width: 52ch; }

.platform-meta {
  border-left: 2px solid var(--accent);
  padding-left: 20px;
  font-size: 0.9375rem;
  color: var(--muted);
}

.platform-meta p + p { margin-top: 12px; }
.platform-meta strong { color: var(--ink); }

.ownership-note {
  margin-top: 24px;
  padding: 14px 18px;
  background: var(--paper-2);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 600;
}

@media (max-width: 820px) {
  .platform-card { grid-template-columns: 1fr; padding: 26px; }
}

/* ---------- Footer ---------- */

.site-footer { padding: 56px 0 40px; background: var(--ink); color: #C8D2CF; }

.site-footer a { color: #fff; }
.site-footer a:hover { color: #9FD6D5; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}

.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-mark { background: var(--paper); color: var(--ink); }
.footer-brand p { margin-top: 16px; font-size: 0.9063rem; max-width: 34ch; }

.footer-col h4 {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  color: #8FA09C;
  margin-bottom: 14px;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; font-size: 0.9375rem; }

.footer-legal {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  color: #8FA09C;
}

@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- Legal pages (privacy / terms / contact) ---------- */

.legal-main { padding: 72px 0 96px; }

.legal-main h1 {
  font-family: "Archivo", sans-serif;
  font-stretch: 120%;
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 2.8rem);
  margin-bottom: 8px;
}

.legal-updated {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 40px;
}

.prose h2 {
  font-family: "Archivo", sans-serif;
  font-stretch: 110%;
  font-weight: 700;
  font-size: 1.25rem;
  margin: 36px 0 12px;
}

.prose ul { margin: 12px 0 12px 22px; max-width: var(--measure); }
.prose li { margin-bottom: 6px; }
.prose p { margin-bottom: 12px; }
