/* Shared styles for crm.123x.dev landing + {name}-crm SEO pages */
:root {
  --ink: #0e1612;
  --moss: #1c2c25;
  --leaf: #8fbf9f;
  --mist: #ecf3ee;
  --fog: #9bb5a8;
  --glow: #c5e0cf;
  --max: 1080px;
  --prose: 40rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--mist);
  font-family: Manrope, sans-serif;
  background:
    radial-gradient(1200px 700px at 12% -10%, rgba(143, 191, 159, 0.22), transparent 55%),
    radial-gradient(900px 600px at 100% 10%, rgba(60, 110, 90, 0.35), transparent 50%),
    linear-gradient(165deg, #08110d 0%, var(--ink) 42%, #132019 100%);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  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.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 0;
}

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

.wrap {
  position: relative;
  z-index: 1;
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0 0;
  animation: rise 0.7s ease both;
}

.brand {
  font-family: Fraunces, serif;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: var(--mist);
  text-decoration: none;
}

.brand span {
  color: var(--leaf);
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  font-size: 0.92rem;
  font-weight: 500;
}

.nav-links a {
  color: var(--fog);
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--mist);
}

.hero {
  padding: 3.5rem 0 3.25rem;
  display: grid;
  gap: 1rem;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  right: -8%;
  top: 8%;
  width: min(42vw, 360px);
  height: min(42vw, 360px);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(143, 191, 159, 0.18) 0%,
    rgba(143, 191, 159, 0.04) 45%,
    transparent 70%
  );
  pointer-events: none;
  animation: pulse-glow 4.5s ease-in-out infinite;
}

.kicker {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--leaf);
  animation: rise 0.8s 0.05s ease both;
}

.hero h1 {
  font-family: Fraunces, serif;
  font-size: clamp(2.4rem, 7vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.98;
  margin: 0;
  max-width: 14ch;
  color: var(--mist);
  animation: rise 0.8s 0.1s ease both;
}

.hero h1 em {
  font-style: normal;
  color: var(--leaf);
}

.hero .lede {
  max-width: 34rem;
  margin: 0;
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  line-height: 1.55;
  color: var(--fog);
  animation: rise 0.8s 0.18s ease both;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 0.5rem;
  animation: rise 0.8s 0.26s ease both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.85rem 1.35rem;
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--leaf);
  color: var(--ink);
}

.btn-primary:hover {
  background: var(--glow);
}

.btn-ghost {
  background: transparent;
  color: var(--mist);
  border-color: rgba(155, 181, 168, 0.35);
}

.btn-ghost:hover {
  border-color: var(--leaf);
}

.trust {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  color: var(--fog);
  animation: rise 0.8s 0.32s ease both;
}

section.block {
  padding: 3.25rem 0;
  border-top: 1px solid rgba(155, 181, 168, 0.14);
}

section.block h2 {
  font-family: Fraunces, serif;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
  font-weight: 700;
}

section.block > p,
.prose p {
  margin: 0 0 1rem;
  max-width: var(--prose);
  color: var(--fog);
  line-height: 1.65;
}

.prose ul {
  margin: 0 0 1.25rem;
  padding-left: 1.15rem;
  max-width: var(--prose);
  color: var(--fog);
  line-height: 1.6;
}

.prose li + li {
  margin-top: 0.4rem;
}

.table-wrap {
  margin: 0 0 1.25rem;
  max-width: var(--prose);
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
}

.table-wrap th,
.table-wrap td {
  text-align: left;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid rgba(155, 181, 168, 0.2);
  color: var(--fog);
  line-height: 1.5;
}

.table-wrap thead th {
  color: var(--leaf);
  font-family: Fraunces, serif;
  font-weight: 700;
  border-bottom: 1px solid rgba(143, 191, 159, 0.5);
}

.table-wrap tbody tr:last-child td {
  border-bottom: none;
}

@media (max-width: 719px) {
  .table-wrap thead {
    display: none;
  }
  .table-wrap tr {
    display: block;
    margin-bottom: 1rem;
    border: 1px solid rgba(155, 181, 168, 0.2);
    border-radius: 10px;
    padding: 0.5rem 0.9rem;
  }
  .table-wrap td {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    text-align: right;
    border-bottom: 1px solid rgba(155, 181, 168, 0.12);
  }
  .table-wrap td:last-child {
    border-bottom: none;
  }
  .table-wrap td::before {
    content: attr(data-label);
    color: var(--leaf);
    text-align: left;
    font-weight: 600;
    flex: 0 0 auto;
  }
}

.steps {
  display: grid;
  gap: 1.25rem;
  counter-reset: step;
}

@media (min-width: 720px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step {
  padding: 1.25rem 0 0;
  border-top: 1px solid rgba(155, 181, 168, 0.25);
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-family: Fraunces, serif;
  color: var(--leaf);
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
}

.step h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.step p {
  margin: 0;
  color: var(--fog);
  font-size: 0.95rem;
  line-height: 1.5;
}

.faq details {
  border-top: 1px solid rgba(155, 181, 168, 0.14);
  padding: 1rem 0;
  max-width: var(--prose);
}

.faq details:last-child {
  border-bottom: 1px solid rgba(155, 181, 168, 0.14);
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--mist);
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq details p {
  margin: 0.65rem 0 0;
  color: var(--fog);
  line-height: 1.55;
}

.related {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.75rem;
  margin-top: 1rem;
}

.related a {
  color: var(--fog);
  text-decoration: none;
  border-bottom: 1px solid rgba(155, 181, 168, 0.35);
  padding-bottom: 1px;
  font-size: 0.92rem;
}

.related a:hover {
  color: var(--leaf);
  border-color: var(--leaf);
}

.close {
  padding: 3.5rem 0 4rem;
  border-top: 1px solid rgba(155, 181, 168, 0.14);
}

.close h2 {
  font-family: Fraunces, serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.035em;
  margin: 0 0 0.75rem;
  max-width: 16ch;
  line-height: 1.15;
}

.close p {
  margin: 0 0 1.5rem;
  color: var(--fog);
  max-width: 32rem;
  line-height: 1.55;
}

.footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid rgba(155, 181, 168, 0.14);
  color: var(--fog);
  font-size: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
}

.footer a {
  color: var(--fog);
  text-decoration: none;
}

.footer a:hover {
  color: var(--leaf);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.06);
  }
}

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