/* ShareFund SaaS marketing — editorial cream + emerald, distinct from every other Khalid site */

:root {
  --c-bg: #F8F4EC;
  --c-bg-elev: #FFFFFF;
  --c-bg-warm: #EFE8DA;
  --c-bg-deep: #1A1410;
  --c-text: #1A1410;
  --c-text-soft: #3D332B;
  --c-text-mute: #6E5F52;
  --c-text-faint: #A39283;
  --c-line: #E2D7C4;
  --c-line-strong: #C8B89D;
  --c-emerald: #0F7B4F;
  --c-emerald-deep: #0A5B3A;
  --c-emerald-soft: #D7EAE0;
  --c-amber: #E89F4C;
  --c-amber-deep: #BB7A2A;
  --c-coral: #D86B4A;
  --c-ink: #0F0B08;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 18px;
  --r-xl: 28px;

  --shadow-sm: 0 1px 2px rgba(26, 20, 16, 0.06), 0 0 0 1px rgba(26, 20, 16, 0.04);
  --shadow-md: 0 6px 18px -8px rgba(26, 20, 16, 0.18), 0 0 0 1px rgba(26, 20, 16, 0.05);
  --shadow-lg: 0 24px 60px -20px rgba(26, 20, 16, 0.30), 0 8px 22px -12px rgba(26, 20, 16, 0.18);

  --font-serif: "Fraunces", "Cormorant Garamond", "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --container: 1180px;
  --pad: clamp(20px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Subtle paper grain texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(rgba(26,20,16,0.025) 1px, transparent 1px);
  background-size: 3px 3px;
  opacity: 0.6;
}

img { max-width: 100%; display: block; }
a { color: var(--c-emerald); text-decoration: none; }
a:hover { color: var(--c-emerald-deep); text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--c-ink);
  margin: 0 0 0.4em;
  font-feature-settings: "ss01", "ss02";
}
h1 { font-size: clamp(2.6rem, 5.6vw, 4.2rem); line-height: 1.04; font-weight: 500; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.15; }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); line-height: 1.25; font-weight: 600; }
h4 { font-size: 0.92rem; line-height: 1.3; font-family: var(--font-sans); font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--c-text-soft); }

p { margin: 0 0 1em; color: var(--c-text-soft); }
ul, ol { margin: 0 0 1.2em; padding-left: 1.4em; color: var(--c-text-soft); }
li { margin-bottom: 0.45em; }
li::marker { color: var(--c-emerald); }

strong { color: var(--c-text); font-weight: 600; }
em { font-style: italic; color: var(--c-text); }
hr { border: none; height: 1px; background: var(--c-line); margin: 56px 0; }

code, .mono { font-family: var(--font-mono); font-size: 0.92em; }

::selection { background: var(--c-emerald-soft); color: var(--c-emerald-deep); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
  position: relative;
  z-index: 1;
}

.row { display: flex; align-items: center; gap: 24px; }

/* Eyebrow tag — tiny serif marker, the editorial signature */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-emerald-deep);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--c-emerald);
}

/* Lead paragraph (under h1) */
.lead {
  font-size: clamp(1.08rem, 1.5vw, 1.22rem);
  line-height: 1.55;
  color: var(--c-text-soft);
  margin: 18px 0 0;
  max-width: 56ch;
  font-weight: 400;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.96rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}
.btn-primary {
  background: var(--c-emerald);
  color: #fff;
  border-color: var(--c-emerald);
}
.btn-primary:hover {
  background: var(--c-emerald-deep);
  border-color: var(--c-emerald-deep);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-ghost {
  background: transparent;
  color: var(--c-text);
  border-color: var(--c-line-strong);
}
.btn-ghost:hover {
  background: var(--c-bg-elev);
  border-color: var(--c-text);
  color: var(--c-text);
  text-decoration: none;
}
.btn-ink {
  background: var(--c-ink);
  color: var(--c-bg);
  border-color: var(--c-ink);
}
.btn-ink:hover { background: var(--c-text); color: var(--c-bg); text-decoration: none; }
.btn-sm { padding: 9px 16px; font-size: 0.86rem; }

.section { padding: clamp(60px, 9vw, 110px) 0; position: relative; z-index: 1; }
.section + .section { padding-top: 0; }
.section.bg-warm { background: var(--c-bg-warm); }
.section.bg-ink { background: var(--c-bg-deep); color: var(--c-bg); }
.section.bg-ink h1, .section.bg-ink h2, .section.bg-ink h3, .section.bg-ink h4 { color: #fff; }
.section.bg-ink p, .section.bg-ink li { color: rgba(248, 244, 236, 0.78); }
.section.bg-ink .eyebrow { color: var(--c-amber); }
.section.bg-ink .eyebrow::before { background: var(--c-amber); }
.section.bg-ink hr { background: rgba(255,255,255,0.10); }

@media (max-width: 760px) {
  .row { flex-direction: column; align-items: stretch; }
  h1 { font-size: clamp(2.2rem, 9vw, 2.8rem); }
}
