/* ShareFund SaaS marketing — components */

/* ========== HEADER ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: rgba(248, 244, 236, 0.78);
  border-bottom: 1px solid rgba(26, 20, 16, 0.06);
}
.site-header .row {
  padding: 16px 0;
  gap: 32px;
}
.site-header .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--c-ink);
}
.site-header .brand img { width: 28px; height: 28px; object-fit: contain; }
.site-header .brand span {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.site-header nav.primary {
  display: flex;
  gap: 28px;
  align-items: center;
}
.site-header nav.primary a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--c-text-soft);
  position: relative;
}
.site-header nav.primary a:hover {
  color: var(--c-ink);
  text-decoration: none;
}
.site-header .actions {
  margin-left: auto;
  display: flex;
  gap: 10px;
  align-items: center;
}
.site-header .actions .btn-ghost { border-color: transparent; padding: 9px 14px; }
.site-header .actions .btn-ghost:hover { background: var(--c-bg-warm); border-color: transparent; }

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--c-line);
  border-radius: var(--r-sm);
  padding: 6px;
  cursor: pointer;
  color: var(--c-text);
}
.menu-toggle svg { width: 22px; height: 22px; }

@media (max-width: 880px) {
  .site-header .row { flex-direction: row; align-items: center; gap: 12px; }
  .site-header nav.primary { display: none; }
  .site-header .actions .btn-ghost { display: none; }
  .menu-toggle { display: inline-flex; }
}

/* ========== HERO ========== */
.hero {
  padding: clamp(60px, 9vw, 130px) 0 clamp(60px, 9vw, 110px);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -200px;
  right: -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(15,123,79,0.10), transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -100px;
  left: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(232,159,76,0.10), transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.hero .row {
  position: relative;
  z-index: 1;
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
}
.hero > .container > .row > div:first-child { flex: 1.1; min-width: 0; }
.hero > .container > .row > div:last-child { flex: 0.9; display: flex; justify-content: center; }
.hero h1 .accent { color: var(--c-emerald); font-style: italic; font-weight: 500; }
.hero .lead { max-width: 56ch; }
.hero .ctas {
  margin-top: 36px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero .reassure {
  margin-top: 36px;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  font-size: 0.86rem;
  color: var(--c-text-mute);
  font-weight: 500;
}
.hero .reassure span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero .reassure span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-emerald);
}

@media (max-width: 960px) {
  .hero .row { flex-direction: column; align-items: stretch; }
  .hero > .container > .row > div:last-child { margin-top: 24px; }
}

/* ========== PHONE MOCKUP ========== */
.phone {
  --w: 290px;
  width: var(--w);
  aspect-ratio: 290 / 600;
  background: linear-gradient(155deg, #1A1410 0%, #0F0B08 100%);
  border-radius: 44px;
  padding: 12px;
  position: relative;
  box-shadow:
    0 0 0 2px rgba(26,20,16,0.85),
    0 30px 70px -20px rgba(26,20,16,0.45),
    0 12px 30px -10px rgba(26,20,16,0.30),
    inset 0 0 0 1.5px rgba(255,255,255,0.06);
  transform: rotate(-3deg);
  transition: transform 0.4s ease;
}
.phone:hover { transform: rotate(-1.5deg) translateY(-4px); }
.phone::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 92px;
  height: 26px;
  background: #0A0806;
  border-radius: 14px;
  z-index: 3;
}
.phone::after {
  content: "";
  position: absolute;
  right: -3px;
  top: 110px;
  width: 3px;
  height: 50px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,0.9), rgba(0,0,0,0.6));
  border-radius: 0 2px 2px 0;
}
.phone-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(170deg, #F8F4EC 0%, #EFE8DA 100%);
  border-radius: 32px;
  overflow: hidden;
  position: relative;
  padding: 54px 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.phone-status {
  position: absolute;
  top: 18px;
  left: 22px;
  right: 22px;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-sans);
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--c-ink);
  z-index: 2;
}
.phone-greet {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  color: var(--c-text-mute);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}
.phone-total {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--c-ink);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-top: 2px;
}
.phone-delta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--c-emerald-deep);
  margin-top: 4px;
}
.phone-delta::before {
  content: "\25B2";
  font-size: 0.6rem;
}
.phone-buckets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 4px;
}
.phone-bucket {
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(26,20,16,0.06);
  border-radius: 10px;
  padding: 8px 10px;
}
.phone-bucket .k {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-text-mute);
}
.phone-bucket .k::before {
  content: "\2022";
  margin-right: 4px;
  font-size: 1rem;
  vertical-align: -1px;
}
.phone-bucket.b-a .k::before { color: var(--c-emerald); }
.phone-bucket.b-l .k::before { color: var(--c-amber); }
.phone-bucket.b-p .k::before { color: var(--c-coral); }
.phone-bucket.b-r .k::before { color: #6E5F52; }
.phone-bucket .v {
  font-family: var(--font-serif);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--c-ink);
  margin-top: 2px;
}
.phone-card {
  background: var(--c-ink);
  color: #F8F4EC;
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.phone-card .label {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-amber);
}
.phone-card .title {
  font-family: var(--font-serif);
  font-size: 0.92rem;
  font-weight: 600;
  color: #F8F4EC;
}
.phone-card .meta {
  font-size: 0.68rem;
  color: rgba(248,244,236,0.62);
  margin-top: 2px;
}
.phone-feed {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.phone-feed-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  padding: 6px 2px;
  border-bottom: 1px solid rgba(26,20,16,0.06);
}
.phone-feed-item:last-child { border-bottom: 0; }
.phone-feed-item .left { color: var(--c-text-soft); font-weight: 500; }
.phone-feed-item .amt {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--c-emerald-deep);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 480px) {
  .phone { --w: 250px; }
}

/* ========== PAGE-INTRO ========== */
.page-intro {
  padding: clamp(60px, 8vw, 110px) 0 clamp(40px, 6vw, 60px);
  border-bottom: 1px solid var(--c-line);
  background: var(--c-bg);
  position: relative;
}
.page-intro .lead { max-width: 56ch; }

/* ========== STATS / NUMBERS ========== */
.numbers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0;
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}
.numbers .num {
  padding: 36px 24px;
  border-right: 1px solid var(--c-line);
}
.numbers .num:last-child { border-right: 0; }
.numbers .num .v {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.6vw, 2.6rem);
  font-weight: 500;
  color: var(--c-ink);
  letter-spacing: -0.02em;
  line-height: 1;
}
.numbers .num .k {
  font-size: 0.82rem;
  color: var(--c-text-mute);
  margin-top: 12px;
  font-weight: 500;
}
@media (max-width: 760px) {
  .numbers .num { border-right: 0; border-bottom: 1px solid var(--c-line); }
  .numbers .num:last-child { border-bottom: 0; }
}

/* ========== EDITORIAL GRID (steps/cards) ========== */
.editorial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 36px;
  margin-top: 48px;
}
.editorial-grid.cols-2 {
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 760px) {
  .editorial-grid.cols-2 { grid-template-columns: 1fr; gap: 28px; }
}
.editorial-card {
  position: relative;
  padding: 28px 4px;
  border-top: 1px solid var(--c-line-strong);
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1), border-top-color 0.35s ease;
  animation: card-rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.editorial-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--c-emerald);
  transition: width 0.55s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.editorial-card:hover {
  transform: translateY(-4px);
}
.editorial-card:hover::before {
  width: 64px;
}
.editorial-card .num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-emerald-deep);
  margin-bottom: 14px;
  display: inline-block;
  transition: color 0.35s ease, letter-spacing 0.35s ease, transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.editorial-card:hover .num {
  color: var(--c-amber-deep);
  letter-spacing: 0.18em;
  transform: translateX(3px);
}
.editorial-card h3 {
  margin-bottom: 10px;
  transition: color 0.35s ease;
}
.editorial-card:hover h3 {
  color: var(--c-emerald-deep);
}
.editorial-card p {
  color: var(--c-text-soft);
  font-size: 0.98rem;
}
.editorial-card:nth-child(1) { animation-delay: 0.05s; }
.editorial-card:nth-child(2) { animation-delay: 0.15s; }
.editorial-card:nth-child(3) { animation-delay: 0.25s; }
.editorial-card:nth-child(4) { animation-delay: 0.35s; }
.editorial-card:nth-child(5) { animation-delay: 0.45s; }
.editorial-card:nth-child(6) { animation-delay: 0.55s; }

@keyframes card-rise {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .editorial-card,
  .editorial-card::before,
  .editorial-card .num,
  .editorial-card h3 { animation: none !important; transition: none !important; }
}

/* ========== PROSE ========== */
.prose {
  max-width: 720px;
  margin: 0 auto;
}
.prose h2 { margin-top: 56px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 36px; }
.prose p, .prose li { font-size: 1.02rem; }
.prose ul, .prose ol { padding-left: 1.5em; }
.prose ul li::marker { color: var(--c-amber-deep); }

/* ========== SPLIT BAR ========== */
.split-bar {
  display: grid;
  grid-template-columns: 85fr 10fr 5fr;
  height: 60px;
  border-radius: 10px;
  overflow: hidden;
  margin: 32px 0 28px;
  box-shadow: var(--shadow-md);
}
.split-bar .a { background: linear-gradient(135deg, var(--c-emerald), var(--c-emerald-deep)); }
.split-bar .b { background: var(--c-ink); }
.split-bar .c { background: var(--c-amber); }
.split-legend {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.split-legend .item .lbl { font-weight: 600; font-size: 0.95rem; color: var(--c-text); }
.split-legend .item .sub { font-size: 0.85rem; color: var(--c-text-mute); margin-top: 4px; }
.split-legend .item .dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; vertical-align: middle; }
.split-legend .item.a .dot { background: var(--c-emerald); }
.split-legend .item.b .dot { background: var(--c-ink); }
.split-legend .item.c .dot { background: var(--c-amber); }

/* ========== QUOTE BLOCK ========== */
.quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  line-height: 1.4;
  color: var(--c-ink);
  border-left: 3px solid var(--c-emerald);
  padding: 4px 0 4px 28px;
  margin: 48px 0;
  max-width: 720px;
}
.quote cite {
  display: block;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 0.88rem;
  color: var(--c-text-mute);
  font-weight: 500;
  margin-top: 14px;
  letter-spacing: 0.02em;
}

/* ========== CTA BAND ========== */
.cta-band {
  background: var(--c-ink);
  color: var(--c-bg);
  border-radius: var(--r-xl);
  padding: clamp(40px, 6vw, 72px) clamp(28px, 5vw, 56px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(15,123,79,0.30), transparent 60%);
  pointer-events: none;
}
.cta-band::after {
  content: "";
  position: absolute;
  bottom: -120px;
  left: -120px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(232,159,76,0.20), transparent 60%);
  pointer-events: none;
}
.cta-band h2 { color: #fff; max-width: 18ch; position: relative; z-index: 1; }
.cta-band p { color: rgba(248,244,236,0.78); max-width: 48ch; position: relative; z-index: 1; }
.cta-band .ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
  position: relative;
  z-index: 1;
}
.cta-band .btn-primary { background: var(--c-amber); border-color: var(--c-amber); color: var(--c-ink); }
.cta-band .btn-primary:hover { background: #fff; border-color: #fff; color: var(--c-ink); }
.cta-band .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.30); }
.cta-band .btn-ghost:hover { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.55); }

/* ========== FAQ ========== */
.faq-list { display: flex; flex-direction: column; gap: 2px; }
.faq-item {
  background: transparent;
  border-bottom: 1px solid var(--c-line);
  padding: 0;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 0;
  font-weight: 600;
  color: var(--c-ink);
  font-size: 1.02rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--c-emerald);
  line-height: 1;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item .body {
  padding: 0 0 24px;
  color: var(--c-text-soft);
  font-size: 0.98rem;
  line-height: 1.65;
  max-width: 64ch;
}
.faq-section-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--c-ink);
  margin: 48px 0 6px;
  font-weight: 600;
}
.faq-section-title:first-child { margin-top: 0; }

/* ========== FOOTER ========== */
.site-footer {
  background: var(--c-ink);
  color: rgba(248,244,236,0.78);
  padding: 72px 0 32px;
  margin-top: 80px;
  position: relative;
  z-index: 1;
}
.site-footer .row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.site-footer .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.site-footer .brand img { width: 28px; height: 28px; filter: brightness(0) invert(1); opacity: 0.95; }
.site-footer .brand span {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  font-weight: 600;
  color: #fff;
}
.site-footer .tag { font-size: 0.92rem; color: rgba(248,244,236,0.62); max-width: 36ch; }
.site-footer h4 {
  color: rgba(248,244,236,0.95);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 18px;
  font-family: var(--font-sans);
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer ul a {
  color: rgba(248,244,236,0.68);
  font-size: 0.94rem;
  text-decoration: none;
}
.site-footer ul a:hover { color: var(--c-amber); text-decoration: none; }
.site-footer .legal {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.10);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 0.84rem;
  color: rgba(248,244,236,0.55);
}

@media (max-width: 760px) {
  .site-footer .row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .site-footer .row { grid-template-columns: 1fr; }
}

/* ========== UTILITY ========== */
.center { text-align: center; }
.mxauto { margin-left: auto; margin-right: auto; }
.maxw-720 { max-width: 720px; }
.eyebrow-amber { color: var(--c-amber); }
.eyebrow-amber::before { background: var(--c-amber); }
