/* ================================================
   FORUMLY — SHARED STYLESHEET
   Editorial meets product. Dark slate / vivid orange
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,500;0,600;0,700;0,800;1,600&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600;9..40,700&display=swap');

/* ── Tokens ── */
:root {
  --dark:   #233D4D;
  --orange: #FE7F2D;
  --yellow: #FCCA46;
  --sage:   #A1C181;
  --teal:   #619B8A;
  --white:  #FFFFFF;
  --black:  #111111;
  --warm:   #F7F5F2;
  --muted:  #556676;
  --border: rgba(0,0,0,0.08);

  --font-display: 'Poppins', system-ui, sans-serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --w: 1240px;
  --pad: clamp(20px, 5vw, 64px);
  --sv: clamp(48px, 7vw, 96px);
  --r-sm: 3px;
  --r-md: 8px;
  --r-lg: 16px;
  --r-xl: 28px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── Base ── */
body {
  font-family: var(--font-body);
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.72;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  padding-top: 72px;
}

/* ── Type utilities ── */
.eyebrow {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  display: block;
}
/* Keep yellow eyebrows on dark/navy backgrounds */
.sec--dark .eyebrow { color: var(--yellow); }
.eyebrow--dark { color: var(--muted); }

.display {
  font-family: var(--font-display);
  font-size: clamp(44px, 6vw, 92px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.022em;
}

.heading-1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.018em;
}

.heading-2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.heading-3 {
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 600;
  line-height: 1.25;
}

.lead {
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.7;
  color: var(--muted);
}

.lead--white { color: rgba(255,255,255,0.72); }

/* ── Layout ── */
.wrap {
  max-width: var(--w);
  margin: 0 auto;
  padding: 0 var(--pad);
}

section { position: relative; }

.sec { padding: var(--sv) 0; }
.sec--sm { padding: clamp(48px, 6vw, 80px) 0; }

.sec--dark {
  background: var(--dark);
  color: var(--white);
}
.sec--warm { background: var(--warm); }
.sec--teal { background: var(--teal); color: var(--white); }

/* subtle noise on dark sections */
.sec--dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
  mix-blend-mode: overlay;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  transition: all 0.18s ease;
  white-space: nowrap;
  cursor: pointer;
}

.btn-primary {
  background: var(--orange);
  color: var(--black);
  border: 2px solid var(--orange);
}
.btn-primary:hover { background: #e96e22; border-color: #e96e22; transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.38);
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.06); }

.btn-outline--dark {
  background: transparent;
  color: var(--dark);
  border: 2px solid rgba(35,61,77,0.3);
}
.btn-outline--dark:hover { border-color: var(--dark); background: rgba(35,61,77,0.04); }

.btn-lg { padding: 16px 36px; font-size: 16px; }
.btn-sm { padding: 10px 18px; font-size: 13px; }
.btn-full { width: 100%; justify-content: center; }

/* ── Navigation ── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: 72px;
  background: var(--dark);
  display: flex;
  align-items: center;
  transition: box-shadow 0.3s;
}
.site-nav.scrolled { box-shadow: 0 2px 32px rgba(0,0,0,0.28); }

.nav-inner {
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
  max-width: var(--w);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
  margin-right: 40px;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-logo em { color: var(--orange); font-style: normal; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
}
.nav-links a {
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  transition: color 0.18s;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
  flex-shrink: 0;
}
.nav-login {
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  transition: color 0.18s;
}
.nav-login:hover { color: var(--white); }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  margin-left: auto;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.25s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Phone Frame ── */
.phone {
  width: 240px;
  aspect-ratio: 9 / 19.5;
  border-radius: 40px;
  background: #0f0f0f;
  box-shadow:
    0 0 0 1.5px rgba(255,255,255,0.08),
    0 0 0 3px rgba(0,0,0,0.6),
    0 8px 24px rgba(0,0,0,0.12);
  overflow: hidden;
  flex-shrink: 0;
}
.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.phone--lg { width: 300px; }
.phone--sm { width: 190px; }

/* ── Stats ── */
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(42px, 5.5vw, 76px);
  font-weight: 800;
  color: var(--yellow);
  line-height: 1;
  display: block;
}
.stat-label {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
  margin-top: 6px;
}
.stats-bar { padding: 72px 0; }
.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat-cell {
  padding: 0 32px;
  border-right: 1px solid rgba(255,255,255,0.1);
  text-align: center;
}
.stat-cell:last-child { border-right: none; }

/* ── Benefit / Feature Cards ── */
.benefit-num {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 800;
  color: var(--yellow);
  line-height: 1;
  margin-bottom: 16px;
  opacity: 0.85;
}

/* ── Divider ── */
.rule {
  height: 1px;
  background: var(--border);
}
.rule--white { background: rgba(255,255,255,0.1); }

/* ── Checklist ── */
.checklist { display: flex; flex-direction: column; gap: 12px; }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  line-height: 1.55;
}
.checklist li::before {
  content: '✓';
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--sage);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

/* ── Partner logos strip ── */
.partner-strip {
  padding: 28px 0;
  border-top: 1px solid var(--border);
}
.partner-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.partner-lede {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.6;
  white-space: nowrap;
}
.partner-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--muted);
  opacity: 0.45;
  white-space: nowrap;
  transition: color 0.2s, opacity 0.2s;
  text-decoration: none;
}
.partner-name:hover { color: var(--brand-color, var(--orange)); opacity: 1; }

/* ── Footer ── */
.site-footer {
  background: var(--dark);
  color: var(--white);
  padding: 72px 0 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 64px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 28px;
}

.footer-brand {}
.footer-logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}
.footer-logo em { color: var(--orange); font-style: normal; }
.footer-tag {
  font-size: 14px;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
  max-width: 260px;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer-col h5 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  transition: color 0.18s;
}
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,0.3);
}

/* ── Scroll animation ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.in { opacity: 1; transform: none; }

/* ── Responsive ── */
@media (max-width: 860px) {
  .stats-bar { padding: 36px 0 10px; }
  .stats-inner { grid-template-columns: repeat(4, 1fr); }
  .stat-cell { padding: 16px 8px; border-right: 1px solid rgba(255,255,255,0.1); border-bottom: none; }
  .stat-cell:last-child { border-right: none; }
  .stat-num { font-size: clamp(22px, 5.5vw, 42px); }
  .stat-label { font-size: 10px; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-right { display: none; }
  .hamburger { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--dark);
    padding: 28px var(--pad) 36px;
    gap: 22px;
    border-top: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 16px 40px rgba(0,0,0,0.3);
  }
  .nav-links.open a { font-size: 17px; color: rgba(255,255,255,0.85); }
  .nav-links.open a:hover { color: var(--white); }

  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .footer-nav { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: column; gap: 6px; text-align: center; }

  .phone { width: 190px; }
  .phone--lg { width: 230px; }
  .phone--sm { width: 150px; }
}

@media (max-width: 480px) {
  .phone { width: 160px; }
  .phone--lg { width: 190px; }

  .footer-nav { grid-template-columns: 1fr 1fr; }

  .btn { padding: 14px 20px; }
  .btn-lg { padding: 15px 24px; font-size: 15px; }
}
